pub trait KeyDerivationCrypto: AsymmetricCrypto {
type ExtendedPrivateKey: ExtendedPrivateKey<Self>;
type ExtendedPublicKey: ExtendedPublicKey<Self>;
// Required method
fn master(seed: &Seed) -> Self::ExtendedPrivateKey;
}Expand description
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.
Required Associated Types§
Sourcetype ExtendedPrivateKey: ExtendedPrivateKey<Self>
type ExtendedPrivateKey: ExtendedPrivateKey<Self>
See ExtendedPrivateKey for more details.
Sourcetype ExtendedPublicKey: ExtendedPublicKey<Self>
type ExtendedPublicKey: ExtendedPublicKey<Self>
See ExtendedPublicKey for more details.
Required Methods§
Sourcefn master(seed: &Seed) -> Self::ExtendedPrivateKey
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.