[−][src]Trait schnorrkel::derive::Derivation
Key types that support "hierarchical deterministic" key derivation
Required methods
fn derived_key<T>(&self, t: T, cc: ChainCode) -> (Self, ChainCode) where
T: SigningTranscript + Clone,
T: SigningTranscript + Clone,
Derive key with subkey identified by a byte array
presented via a SigningTranscript
, and a chain code.
Provided methods
fn derived_key_simple<B: AsRef<[u8]>>(
&self,
cc: ChainCode,
i: B
) -> (Self, ChainCode)
&self,
cc: ChainCode,
i: B
) -> (Self, ChainCode)
Derive key with subkey identified by a byte array
and a chain code. We do not include a context here
becuase the chain code could serve this purpose.
We support only Shake256 here for simplicity, and
the reasons discussed in lib.rs
, and
https://github.com/rust-lang/rust/issues/36887
Implementors
impl Derivation for Keypair
[src]
fn derived_key<T>(&self, t: T, cc: ChainCode) -> (Keypair, ChainCode) where
T: SigningTranscript + Clone,
[src]
T: SigningTranscript + Clone,
impl Derivation for PublicKey
[src]
fn derived_key<T>(&self, t: T, cc: ChainCode) -> (PublicKey, ChainCode) where
T: SigningTranscript + Clone,
[src]
T: SigningTranscript + Clone,
impl Derivation for SecretKey
[src]
fn derived_key<T>(&self, t: T, cc: ChainCode) -> (SecretKey, ChainCode) where
T: SigningTranscript + Clone,
[src]
T: SigningTranscript + Clone,