def get_seed(encrypted_master_secret: bytes, passphrase: str): mnemonic._start_progress() identifier = storage.get_slip39_identifier() iteration_exponent = storage.get_slip39_iteration_exponent() master_secret = slip39.decrypt(identifier, iteration_exponent, encrypted_master_secret, passphrase) mnemonic._stop_progress() return master_secret
def get_seed(secret: bytes, passphrase: str, progress_bar=True): if progress_bar: mnemonic._start_progress() seed = bip39.seed(secret.decode(), passphrase, mnemonic._render_progress) mnemonic._stop_progress() else: seed = bip39.seed(secret.decode(), passphrase) return seed
def get_seed(encrypted_master_secret: bytes, passphrase: str, progress_bar: bool = True) -> bytes: if progress_bar: mnemonic._start_progress() identifier = storage.slip39.get_identifier() iteration_exponent = storage.slip39.get_iteration_exponent() master_secret = slip39.decrypt(identifier, iteration_exponent, encrypted_master_secret, passphrase) if progress_bar: mnemonic._stop_progress() return master_secret
def get_seed(secret: bytes, passphrase: str): mnemonic._start_progress() seed = bip39.seed(secret.decode(), passphrase, mnemonic._render_progress) mnemonic._stop_progress() return seed