[][src]Trait schnorrkel::derive::Derivation

pub trait Derivation: Sized {
    fn derived_key<T>(&self, t: T, cc: ChainCode) -> (Self, ChainCode)
    where
        T: SigningTranscript
; fn derived_key_simple<B: AsRef<[u8]>>(
        &self,
        cc: ChainCode,
        i: B
    ) -> (Self, ChainCode) { ... }
fn derived_key_simple_rng<B, R>(
        &self,
        cc: ChainCode,
        i: B,
        rng: R
    ) -> (Self, ChainCode)
    where
        B: AsRef<[u8]>,
        R: RngCore + CryptoRng
, { ... } }

Key types that support "hierarchical deterministic" key derivation

Required methods

fn derived_key<T>(&self, t: T, cc: ChainCode) -> (Self, ChainCode) where
    T: SigningTranscript

Derive key with subkey identified by a byte array presented via a SigningTranscript, and a chain code.

Loading content...

Provided methods

fn derived_key_simple<B: AsRef<[u8]>>(
    &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.

fn derived_key_simple_rng<B, R>(
    &self,
    cc: ChainCode,
    i: B,
    rng: R
) -> (Self, ChainCode) where
    B: AsRef<[u8]>,
    R: RngCore + CryptoRng

Derive key with subkey identified by a byte array and a chain code, and with external ranodmnesses.

Loading content...

Implementors

impl Derivation for Keypair[src]

impl Derivation for PublicKey[src]

impl Derivation for SecretKey[src]

Loading content...