Fixes for new Schnorrkel API (#2015)

* Fixes for new Schnorrkel API

* Include specific commit hash for schnorrkel
This commit is contained in:
Gav Wood
2019-03-16 14:46:47 +01:00
committed by Bastian Köcher
parent d743a8b71f
commit 7bb1412d15
4 changed files with 4 additions and 6 deletions
+1 -3
View File
@@ -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")]