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

39 lines
997 B

from typing import *
from trezorcrypto.bip32 import HDNode
# extmod/modtrezorcrypto/modtrezorcrypto-cardano.h
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).
"""
# extmod/modtrezorcrypto/modtrezorcrypto-cardano.h
def from_secret(secret: bytes) -> HDNode:
"""
Creates a Cardano HD node from a master secret.
"""
# extmod/modtrezorcrypto/modtrezorcrypto-cardano.h
def from_seed_slip23(seed: bytes) -> HDNode:
"""
Creates a Cardano HD node from a seed via SLIP-23 derivation.
"""
# extmod/modtrezorcrypto/modtrezorcrypto-cardano.h
def from_seed_ledger(seed: bytes) -> HDNode:
"""
Creates a Cardano HD node from a seed via Ledger derivation.
"""