diff --git a/crates/starknet-types-core/Cargo.toml b/crates/starknet-types-core/Cargo.toml index 6007e7e..7b13548 100644 --- a/crates/starknet-types-core/Cargo.toml +++ b/crates/starknet-types-core/Cargo.toml @@ -21,7 +21,7 @@ arbitrary = { version = "1.3.0", optional = true, default-features = false } num-traits = { version = "0.2.16", default-features = false } [features] -default = ["std", "serde", "curve", "hash"] +default = ["std", "serde", "curve"] curve = [] hash = ["dep:lambdaworks-crypto"] std = [] diff --git a/crates/starknet-types-core/src/curve/affine_point.rs b/crates/starknet-types-core/src/curve/affine_point.rs index 3e674d0..0b78bca 100644 --- a/crates/starknet-types-core/src/curve/affine_point.rs +++ b/crates/starknet-types-core/src/curve/affine_point.rs @@ -4,7 +4,6 @@ use lambdaworks_math::cyclic_group::IsGroup; use lambdaworks_math::elliptic_curve::short_weierstrass::curves::stark_curve::StarkCurve; use lambdaworks_math::elliptic_curve::short_weierstrass::point::ShortWeierstrassProjectivePoint; use lambdaworks_math::elliptic_curve::traits::FromAffine; - /// Represents a point on the Stark elliptic curve. /// Doc: https://docs.starkware.co/starkex/crypto/stark-curve.html #[repr(transparent)] diff --git a/crates/starknet-types-core/src/hash/mod.rs b/crates/starknet-types-core/src/hash/mod.rs index 5445b5f..ed33d07 100644 --- a/crates/starknet-types-core/src/hash/mod.rs +++ b/crates/starknet-types-core/src/hash/mod.rs @@ -1,2 +1,5 @@ -pub mod pedersen; -pub mod traits; +mod pedersen; +mod traits; + +pub use self::pedersen::*; +pub use self::traits::*;