[][src]Trait iop_keyvault::KeyDerivationCrypto

pub trait KeyDerivationCrypto: AsymmetricCrypto {
    type ExtendedPrivateKey: ExtendedPrivateKey<Self>;
    type ExtendedPublicKey: ExtendedPublicKey<Self>;
    fn master(seed: &Seed) -> Self::ExtendedPrivateKey;
}

An implementation of this trait defines a family of types that fit together to extend AsymmetricCrypto with the ability to have a hierarchical deterministic wallet, so a tree of private and public keys all derived from a single master secret.

Associated Types

type ExtendedPrivateKey: ExtendedPrivateKey<Self>

See ExtendedPrivateKey for more details.

type ExtendedPublicKey: ExtendedPublicKey<Self>

See ExtendedPublicKey for more details.

Loading content...

Required methods

fn master(seed: &Seed) -> Self::ExtendedPrivateKey

Does not seem to completely belong here, but calculates the master extended private key - the root of a hierarchical deterministic wallet - from a given seed. All other keys are derived from this one extended private key.

Loading content...

Implementors

Loading content...