Fixes for new Schnorrkel API (#2015)

* Fixes for new Schnorrkel API

* Include specific commit hash for schnorrkel
This commit is contained in:
Gav Wood authored and Bastian Köcher committed 2019-03-16 14:46:47 +01:00
1 parent d743a8b71f
commit 7bb1412d15
4 files changed
+4 -6

No files matched your search

+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")]