Skip to content

Commit f5cb971

Browse files
chore(deps): update p256 requirement from 0.13 to 0.14 in /bip0032 (#154)
* chore(deps): update p256 requirement from 0.13 to 0.14 in /bip0032 Updates the requirements on [p256](https://github.com/RustCrypto/elliptic-curves) to permit the latest version. - [Commits](RustCrypto/elliptic-curves@primeorder/v0.13.0...p256/v0.14.0) --- updated-dependencies: - dependency-name: p256 dependency-version: 0.14.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * fix --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: koushiro <koushiro.cqx@gmail.com>
1 parent 522c5b2 commit f5cb971

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bip0032/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ secp256k1 = { version = "0.31", default-features = false, features = ["alloc"],
6969
# nist256p1 libraries (SLIP-0010 extension)
7070
###############################################################################
7171
# https://github.com/RustCrypto/elliptic-curves/tree/master/p256
72-
p256 = { version = "0.13", default-features = false, features = ["alloc"], optional = true }
72+
p256 = { version = "0.14", default-features = false, features = ["alloc"], optional = true }
7373

7474
###############################################################################
7575
# ed25519 libraries (SLIP-0010 extension)

bip0032/src/curve/nist256p1/backends/p256.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use p256::{
22
AffinePoint, NonZeroScalar, ProjectivePoint, PublicKey, SecretKey,
3-
elliptic_curve::sec1::ToEncodedPoint,
3+
elliptic_curve::sec1::ToSec1Point,
44
};
55
use zeroize::Zeroizing;
66

@@ -20,7 +20,7 @@ impl CurvePublicKey for PublicKey {
2020
}
2121

2222
fn to_bytes(&self) -> Self::Bytes {
23-
let encoded = self.to_encoded_point(true);
23+
let encoded = self.to_sec1_point(true);
2424
let mut out = [0u8; 33];
2525
out.copy_from_slice(encoded.as_bytes());
2626
out

0 commit comments

Comments
 (0)