You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/mocks/generated/trezorcrypto/cardano.pyi

27 lines
785 B

from typing import *
from trezorcrypto.bip32 import HDNode
def derive_icarus(
mnemonic: str,
passphrase: str,
trezor_derivation: bool,
callback: Callable[[int, int], None] | None = None,
) -> bytes:
"""
Derives a Cardano master secret from a mnemonic and passphrase using the
Icarus derivation scheme.
If `trezor_derivation` is True, the Icarus-Trezor variant is used (see
CIP-3).
"""
def from_secret(secret: bytes) -> HDNode:
"""
Creates a Cardano HD node from a master secret.
"""
def from_seed_slip23(seed: bytes) -> HDNode:
"""
Creates a Cardano HD node from a seed via SLIP-23 derivation.
"""
def from_seed_ledger(seed: bytes) -> HDNode:
"""
Creates a Cardano HD node from a seed via Ledger derivation.
"""