diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2019-04-15 16:49:18 -0700 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-06-21 08:51:41 -0400 |
commit | d9fc969e71c1f0f0a2404c3bb08aad78b6ac7a39 (patch) | |
tree | 15be22d14365e5bd4cec98d34c9586d56df52615 /test/functional/feature_assumevalid.py | |
parent | 23ba460c1abe1e089c64e87abe919e87a320b32d (diff) | |
download | bitcoin-d9fc969e71c1f0f0a2404c3bb08aad78b6ac7a39.tar.xz |
Pure python EC
This removes the dependency on OpenSSL for the interaction tests, by providing a pure-Python
toy implementation of secp256k1.
Github-Pull: #15826
Rebased-From: 8c7b9324ca3f3ffb178bea56a96ea23f7e0383cb
Diffstat (limited to 'test/functional/feature_assumevalid.py')
-rwxr-xr-x | test/functional/feature_assumevalid.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/feature_assumevalid.py b/test/functional/feature_assumevalid.py index 0eb3dd440b..7d6a56919d 100755 --- a/test/functional/feature_assumevalid.py +++ b/test/functional/feature_assumevalid.py @@ -32,7 +32,7 @@ Start three nodes: import time from test_framework.blocktools import (create_block, create_coinbase) -from test_framework.key import CECKey +from test_framework.key import ECKey from test_framework.messages import ( CBlockHeader, COutPoint, @@ -104,9 +104,9 @@ class AssumeValidTest(BitcoinTestFramework): self.blocks = [] # Get a pubkey for the coinbase TXO - coinbase_key = CECKey() - coinbase_key.set_secretbytes(b"horsebattery") - coinbase_pubkey = coinbase_key.get_pubkey() + coinbase_key = ECKey() + coinbase_key.generate() + coinbase_pubkey = coinbase_key.get_pubkey().get_bytes() # Create the first block with a coinbase output to our key height = 1 |