mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
14 lines
339 B
Python
14 lines
339 B
Python
|
from typing import *
|
||
|
|
||
|
# extmod/modtrezorcrypto/modtrezorcrypto-nem.h
|
||
|
def validate_address(address: str, network: int) -> bool:
|
||
|
'''
|
||
|
Validate a NEM address
|
||
|
'''
|
||
|
|
||
|
# extmod/modtrezorcrypto/modtrezorcrypto-nem.h
|
||
|
def compute_address(public_key: bytes, network: int) -> str:
|
||
|
'''
|
||
|
Compute a NEM address from a public key
|
||
|
'''
|