def check_list(language, vectors, verbose=False): for v in vectors: bip39 = BIP39(entropy=unhexlify(v[0])) code = bip39.to_mnemonic() seed = hexlify(bip39.to_seed(mnemonic=code, passphrase="TREZOR")) if sys.version >= "3": seed = seed.decode("utf8") assert BIP39.check(v[1]) is True assert v[1] == code assert v[2] == seed print(code, "Ok")
async def about(self, params=None): voting = { "masterkey": MASTER_KEY, "masterkey_file": KEYFILE, "key_check": BIP39.check(MASTER_KEY), } await fill_motions() voting["bgvp_motions"] = BGVP_MOTIONS self.render("about.html", bismuth=self.bismuth_vars, version=__version__, voting=voting)