mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-25 11:59:56 +00:00
Fixes for new Schnorrkel API (#2015)
* Fixes for new Schnorrkel API * Include specific commit hash for schnorrkel
This commit is contained in:
1 parent
d743a8b71f
commit
7bb1412d15
4 files changed
+4
-6
No files matched your search
@@ -21,8 +21,6 @@
|
||||
//! for this to work.
|
||||
// end::description[]
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use blake2_rfc;
|
||||
#[cfg(feature = "std")]
|
||||
use rand::rngs::OsRng;
|
||||
#[cfg(feature = "std")]
|
||||
@@ -366,7 +364,7 @@ impl AsRef<schnorrkel::Keypair> for Pair {
|
||||
/// Derive a single hard junction.
|
||||
#[cfg(feature = "std")]
|
||||
fn derive_hard_junction(secret: &SecretKey, cc: &[u8; CHAIN_CODE_LENGTH]) -> SecretKey {
|
||||
secret.hard_derive_mini_secret_key(signing_context(b"SchnorrRistrettoHDKD").bytes(&cc[..])).expand()
|
||||
secret.hard_derive_mini_secret_key(Some(ChainCode(cc.clone())), b"").0.expand()
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
|
||||
Reference in new issue
Block a user