for _ in range(mnemonic_length):
mnemonic_list.append('')
- entropy_bytes = bytes.fromhex(entropy_str)
+ entropy_bytes = bytes.fromhex(entropy_str[:32])
checksum = hashlib.sha256(entropy_bytes).hexdigest()[:1]
- new_entropy_str = "0" + entropy_str + checksum
+ new_entropy_str = "0" + entropy_str[:32] + checksum
new_entropy_bytes = bytes.fromhex(new_entropy_str)
new_entropy_int = int.from_bytes(new_entropy_bytes, byteorder='big')
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Bytom</title>
+ <title>Bytom Kit</title>
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/main.css">
<script src="./node_modules/jquery/dist/jquery.min.js"></script>
<body>
<nav class="navbar navbar-default">
<div class="navbar-header">
- <a href="#" class="navbar-brand">Bytom</a>
+ <a href="#" class="navbar-brand">Bytom Kit</a>
</div>
</nav>
<div class="panel panel-default sc-bd">