Trait iop_keyvault::Subtree[][src]

pub trait Subtree {
    type Suite: KeyDerivationCrypto;
    fn name(&self) -> &'static str;
fn master(
        &self,
        seed: &Seed
    ) -> <Self::Suite as KeyDerivationCrypto>::ExtendedPrivateKey;
fn key_id(
        &self,
        pk: &<Self::Suite as AsymmetricCrypto>::PublicKey
    ) -> <Self::Suite as AsymmetricCrypto>::KeyId; }

The operations required to support SLIP-0010

Associated Types

type Suite: KeyDerivationCrypto[src]

The crypto suite used by the network

Loading content...

Required methods

fn name(&self) -> &'static str[src]

the name of the network shown on the UI or in Debug info

fn master(
    &self,
    seed: &Seed
) -> <Self::Suite as KeyDerivationCrypto>::ExtendedPrivateKey
[src]

Calculate the master extended private key in the crypto suite used by the network

fn key_id(
    &self,
    pk: &<Self::Suite as AsymmetricCrypto>::PublicKey
) -> <Self::Suite as AsymmetricCrypto>::KeyId
[src]

Calculate the key identifier from the public key based on the rules used by the network

Loading content...

Trait Implementations

impl<C: KeyDerivationCrypto + 'static> Debug for &dyn Subtree<Suite = C>[src]

Implementors

impl Subtree for MorpheusSubtree[src]

type Suite = Ed25519

impl Subtree for iop_keyvault::secp256k1::ark::Devnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::ark::Mainnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::ark::Testnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::btc::Mainnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::btc::Testnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::hyd::Devnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::hyd::Mainnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::hyd::Testnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::iop::Mainnet[src]

type Suite = Secp256k1

impl Subtree for iop_keyvault::secp256k1::iop::Testnet[src]

type Suite = Secp256k1

Loading content...