diff --git a/auto_migrate/config_generate_contract.sh b/auto_migrate/config_generate_contract.sh index f96540f..bd48c58 100755 --- a/auto_migrate/config_generate_contract.sh +++ b/auto_migrate/config_generate_contract.sh @@ -146,6 +146,7 @@ disable_periodic = true [secretstore] disable = false disable_acl_check = true +service_contract = \"registry\" self_secret = \"${secret[i]}\" nodes = [$ssnodes] interface = \"local\" diff --git a/sign_test/generate_signature.py b/sign_test/generate_signature.py new file mode 100755 index 0000000..82b95f1 --- /dev/null +++ b/sign_test/generate_signature.py @@ -0,0 +1,12 @@ +#!/usr/bin/python2.7 +import secp256k1 # install by typing `pip install secp256k1` + +key_id = bytes(bytearray.fromhex('0000000000000000000000000000000000000000000000000000000000000001')) +sk = secp256k1.PrivateKey() +sig_raw = sk.ecdsa_sign_recoverable(key_id, raw=True) +sig_der = sk.ecdsa_recoverable_serialize(sig_raw) +pub_der = sk.pubkey.serialize(compressed=False) + +print 'SECRET: ' + ''.join('{:02x}'.format(ord(c)) for c in sk.private_key) +print 'PUBLIC: ' + ''.join('{:02x}'.format(ord(c)) for c in pub_der[1:]) +print 'SIGNATURE: ' + ''.join('{:02x}'.format(ord(c)) for c in sig_der[0]) + '{:02x}'.format(sig_der[1]) \ No newline at end of file