From f3e7ad33c8b9a5b54af77a3a87d776d55d92bfde Mon Sep 17 00:00:00 2001 From: i1i1 Date: Mon, 23 May 2022 17:26:33 +0300 Subject: [PATCH] Update changelog --- core/CHANGELOG.md | 2 ++ core/src/identity.rs | 2 +- core/src/identity/sr25519.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 3a2cffea52a..786b3fec87a 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -1,8 +1,10 @@ # 0.33.0 [unreleased] - Have methods on `Transport` take `&mut self` instead of `self`. See [PR 2529]. +- Add support for sr25519 keys. See [PR 2671]. [PR 2529]: https://github.com/libp2p/rust-libp2p/pull/2529 +[PR 2671]: https://github.com/libp2p/rust-libp2p/pull2671/ # 0.32.1 diff --git a/core/src/identity.rs b/core/src/identity.rs index a114b649f49..140dad260c3 100644 --- a/core/src/identity.rs +++ b/core/src/identity.rs @@ -79,7 +79,7 @@ pub enum Keypair { #[cfg(feature = "ecdsa")] Ecdsa(ecdsa::Keypair), /// An Sr25519 keypair. - #[cfg(feature = "ecdsa")] + #[cfg(feature = "sr25519")] Sr25519(sr25519::Keypair), } diff --git a/core/src/identity/sr25519.rs b/core/src/identity/sr25519.rs index 477882f3ea6..1cb54f5537c 100644 --- a/core/src/identity/sr25519.rs +++ b/core/src/identity/sr25519.rs @@ -24,7 +24,7 @@ use super::error::DecodingError; use core::fmt; use zeroize::Zeroize; -const SIGNING_CTX: &[u8] = b"rust-libp2p"; +const SIGNING_CTX: &[u8] = b"libp2p"; // TODO: We need this because `schnorrkel` errors doesn't implement `std::error::Error` #[derive(Clone, Debug)]