Simplify lock tx script.

Raise version.
This commit is contained in:
tecnovert
2020-12-11 00:43:36 +02:00
parent 2979b3e244
commit 8c372cc5dc
7 changed files with 159 additions and 313 deletions

View File

@@ -182,6 +182,16 @@ class Test(unittest.TestCase):
assert(vk_encrypt == recovered_key)
def test_sign_compact(self):
coin_settings = {'rpcport': 0, 'rpcauth': 'none', 'blocks_confirmed': 1, 'conf_target': 1}
ci = BTCInterface(coin_settings, 'regtest')
vk = i2b(ci.getNewSecretKey())
pk = ci.getPubkey(vk)
sig = ci.signCompact(vk, 'test signing message')
assert(len(sig) == 64)
ci.verifyCompact(pk, 'test signing message', sig)
def test_dleag(self):
coin_settings = {'rpcport': 0, 'walletrpcport': 0, 'walletrpcauth': 'none', 'blocks_confirmed': 1, 'conf_target': 1}
ci = XMRInterface(coin_settings, 'regtest')