Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bip0032/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ secp256k1 = { version = "0.31", default-features = false, features = ["alloc"],
# nist256p1 libraries (SLIP-0010 extension)
###############################################################################
# https://github.com/RustCrypto/elliptic-curves/tree/master/p256
p256 = { version = "0.13", default-features = false, features = ["alloc"], optional = true }
p256 = { version = "0.14", default-features = false, features = ["alloc"], optional = true }

###############################################################################
# ed25519 libraries (SLIP-0010 extension)
Expand Down
4 changes: 2 additions & 2 deletions bip0032/src/curve/nist256p1/backends/p256.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use p256::{
AffinePoint, NonZeroScalar, ProjectivePoint, PublicKey, SecretKey,
elliptic_curve::sec1::ToEncodedPoint,
elliptic_curve::sec1::ToSec1Point,
};
use zeroize::Zeroizing;

Expand All @@ -20,7 +20,7 @@ impl CurvePublicKey for PublicKey {
}

fn to_bytes(&self) -> Self::Bytes {
let encoded = self.to_encoded_point(true);
let encoded = self.to_sec1_point(true);
let mut out = [0u8; 33];
out.copy_from_slice(encoded.as_bytes());
out
Expand Down
Loading