mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
fix blocksign.py test
This commit is contained in:
parent
5f37adb392
commit
e05bc1646a
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class BlockSignTest(BitcoinTestFramework):
|
||||||
k = key.ECKey()
|
k = key.ECKey()
|
||||||
pk_bytes = hashlib.sha256(str(random.getrandbits(256)).encode('utf-8')).digest()
|
pk_bytes = hashlib.sha256(str(random.getrandbits(256)).encode('utf-8')).digest()
|
||||||
#k.set_secretbytes(pk_bytes)
|
#k.set_secretbytes(pk_bytes)
|
||||||
k.set(pk_bytes, True)
|
k.set(pk_bytes, False)
|
||||||
w = wif(pk_bytes)
|
w = wif(pk_bytes)
|
||||||
print("generated key {}: \n pub: {}\n wif: {}".format(
|
print("generated key {}: \n pub: {}\n wif: {}".format(
|
||||||
i+1, k.get_pubkey().get_bytes().hex(), w))
|
i+1, k.get_pubkey().get_bytes().hex(), w))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue