1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-12 02:49:02 +00:00
trezor-firmware/mocks/trezor/crypto/bip32.py

13 lines
355 B
Python
Raw Normal View History

2016-10-07 11:27:43 +00:00
2016-10-18 12:32:37 +00:00
# ../extmod/modtrezorcrypto/modtrezorcrypto-bip32.h
def deserialize(value: str) -> HDNode:
'''
Construct a BIP0032 HD node from a base58-serialized value.
'''
2016-10-07 11:27:43 +00:00
# ../extmod/modtrezorcrypto/modtrezorcrypto-bip32.h
def from_seed(seed: bytes, curve_name: str) -> HDNode:
'''
Construct a BIP0032 HD node from a BIP0039 seed value.
'''