Skip to content

Commit 2177213

Browse files
authored
ref: remove ct_ prefix in crypto library (#846)
Remove confusing "ct_" prefix for constant functions
1 parent f7ae492 commit 2177213

File tree

13 files changed

+176
-176
lines changed

13 files changed

+176
-176
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Changed (Breaking)
1515

1616
- Updated the `UUPSUpgradeable` logic for determining where the call originated. #810
17+
- Prefix `ct_` removed for constant functions at `openzeppelin-crypto`. #846
1718

1819
### Fixed
1920

examples/eddsa/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use alloc::vec::Vec;
88
use openzeppelin_crypto::{
99
curve::te::instance::curve25519::Curve25519FqParam,
1010
eddsa::{AffinePoint, Scalar, Signature, VerifyingKey},
11-
field::{fp::Fp256, prime::PrimeField},
11+
field::fp::Fp256,
1212
};
1313
use stylus_sdk::{abi::Bytes, prelude::*};
1414

examples/eddsa/tests/eddsa.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use eyre::Result;
66
use openzeppelin_crypto::{
77
curve::CurveGroup,
88
eddsa::{Signature, SigningKey, VerifyingKey},
9-
field::prime::PrimeField,
109
};
1110

1211
use crate::abi::EddsaExample;

examples/pedersen/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use alloc::vec::Vec;
77
use openzeppelin_crypto::{
88
arithmetic::uint::U256,
99
curve::sw::instance::starknet::StarknetCurveConfig,
10-
field::prime::PrimeField,
1110
pedersen::{instance::starknet::StarknetPedersenParams, Pedersen},
1211
};
1312
use stylus_sdk::prelude::*;

examples/poseidon/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use alloc::vec::Vec;
66

77
use openzeppelin_crypto::{
88
arithmetic::uint::U256,
9-
field::{instance::FpBN256, prime::PrimeField},
9+
field::instance::FpBN256,
1010
poseidon2::{instance::bn256::BN256Params, Poseidon2},
1111
};
1212
use stylus_sdk::prelude::*;

0 commit comments

Comments
 (0)