Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Transcript of the Schnorr Multisig Transaction 2b5fe26f6f903021b343da52d8d8b316c88986c480cfd6fc80ffbc027cbd2039
{
"privatekey": "a145c109b44521329421227a7d29b4bcbb4e75a37743435d2978c02cbb45842f",
"otherpubkeys": [
"03a0422f8642ac84303ec54029beeefd8cbdb4406ddfc82ae42f5f2034af090ff0",
"0363ef3146fa919573b87cdaaed9aa64124a258768232f4ce9b2e4989290bc6141"
],
"aggaddress": "bitcoincash:qr2n5jt6sfnd06ts25l9dqg2sycc8q6qvv6eyk65lq",
"note": "First multisig!"
}
{
"privatekey": "3c33570f986612912464cc61259ceeeba18c2c494e9de505a78c4222277d1b56",
"otherpubkeys": [
"03a0422f8642ac84303ec54029beeefd8cbdb4406ddfc82ae42f5f2034af090ff0",
"03c833af835c9152049396d75ddbb0f643aa0c9145985919d670a174341334edcb"
],
"aggaddress": "bitcoincash:qr2n5jt6sfnd06ts25l9dqg2sycc8q6qvv6eyk65lq",
"note": ""
}
{
"privatekey": "8426999585720f236608b8a7112759f93269acf1124b0f82edbfa862cc8a6d0d",
"otherpubkeys": [
"0363ef3146fa919573b87cdaaed9aa64124a258768232f4ce9b2e4989290bc6141",
"03c833af835c9152049396d75ddbb0f643aa0c9145985919d670a174341334edcb"
],
"aggaddress": "bitcoincash:qr2n5jt6sfnd06ts25l9dqg2sycc8q6qvv6eyk65lq",
"note": "with Checky and Chris"
}
checksum0@Finney:~/schnorrfun$ ./setup.py
********************
Schnorr multisigger!
********************
Warning: this is for DEMONSTRATION and does not necessarily use safe/secure
techniques. Beware, funds can be easily lost!
==Setup phase 1==
Share your pubkey hash:::
c619ef0f6f68e33f80b46c4c7c9ed91c40451c5f
Enter pubkey hashes of other players, separated by spaces:
7a4af200ff83d1bdd522ff2b23864db830c424f3 e7b67afe5e29303d24f7137c34c7e9478c973c10
Total players: 3
==Setup phase 2==
Share your pubkey:::
03c833af835c9152049396d75ddbb0f643aa0c9145985919d670a174341334edcb
Enter pubkeys of other players, separated by spaces:
03a0422f8642ac84303ec54029beeefd8cbdb4406ddfc82ae42f5f2034af090ff0 0363ef3146fa919573b87cdaaed9aa64124a258768232f4ce9b2e4989290bc6141
==Setup results==
Aggregate pubkey: 02ff08fda3ea73d50eb7c52f82b55d7883e1843c7e6c80ba0daf08032f2e88692e
Aggregate address: bitcoincash:qr2n5jt6sfnd06ts25l9dqg2sycc8q6qvv6eyk65lq
Please confirm the above address with each other, before continuing.
Add a note to self (optional): First multisig!
Wrote setup data to mysigningdata.json.
Back it up and keep it private if you care about the funds involved.
checksum0@Finney:~/schnorrfun$ ./sign.py
********************
Schnorr multisigger!
********************
Warning: this is for DEMONSTRATION and does not necessarily use safe/secure
techniques. Beware, funds can be easily lost!
Defaulting to load mysigningdata.json
Data note: 'First multisig!'
Enter raw transaction hex:
01000000016377d5d92f7244deddab0c3cf0268d2005eee238491fa6c8cb40e43b0e98245e0100000000feffffff020000000000000000866a4c834243482069732061626f757420676976696e672070656f706c65207468652066726565646f6d20746f206d616b65207468656972206f776e2063686f696365732c20746f20707572737565207468656972206f776e2068617070696e6573732c20686f7765766572207468657920696e646976696475616c6c7920736565206669742e3a9598000000000017a914785ca29645c56f51ff2581dd29e812764fe79636871ae60800
Signing 5e24980e3be440cbc8a61f4938e2ee05208d26f03c0cabddde44722fd9d57763:0
Enter the value (in satoshis) of this input: 10000000
Signing digest: 298f437260b3e3a3c3abf0dfeb549dcdf9e7152e4e2c274bba0643332c4c1912
==Sign phase 1==
Share your promise:
A8gzr4NckVIEk5bXXduw9kOqDJFFmFkZ1nChdDQTNO3LKY9DcmCz46PDq_Df61SdzfnnFS5OLCdLugZDMyxMGRJDYo7zsJLZlIhh8ZGToBHAdJaIrcasxJH0eGXw_63sGyrFUzPkJh6JGIaAI7RVW8dINC04zmiPh08jOxjobpdX6C8OPerbsTXCpbAaSVD19ZaxGVk=
Enter promises of other players, one per line:
A6BCL4ZCrIQwPsVAKb7u_Yy9tEBt38gq5C9fIDSvCQ_wKY9DcmCz46PDq_Df61SdzfnnFS5OLCdLugZDMyxMGRLTRhDZw7ejbdJvxrGCEmVxcqJcDeGAW4_zB9RgFkUmzCoIYwVE9dWo5_48YZlpZxOm-iPHB4DCVqe-GC6_TO-iZ4kCXqsHsX5B2biDFYJQCexw95w=
Promise received from 03a0422f8642ac84303ec54029beeefd8cbdb4406ddfc82ae42f5f2034af090ff0: d34610d9c3b7a36dd26fc6b18212657172a25c0d
A2PvMUb6kZVzuHzartmqZBJKJYdoIy9M6bLkmJKQvGFBKY9DcmCz46PDq_Df61SdzfnnFS5OLCdLugZDMyxMGRJ6JByLW3KnvV0W1R6Ld5V-gBzaRIzImW2cRmov1dxfloBJ5wo2Sjv-ZS9Bo6Hc0web4RQzrn_PDxO8QCiLxYKyQ82Jpqym7JmObCsY2CtVO3Rwj1M=
Promise received from 0363ef3146fa919573b87cdaaed9aa64124a258768232f4ce9b2e4989290bc6141: 7a241c8b5b72a7bd5d16d51e8b77957e801cda44
Promises complete.
==Sign phase 2==
Share your R:
0332319289fbb8b52a28c44c74ecfdcf63f9cad79b346f70632f8b24473411bc84
Enter R of other players, one per line:
(2 remaining) 03bdfedbee686f435d51feadcecdaafb455a18ad191d9119e3d99875fa8bd0aca2
(1 remaining) 0233783061c690bdfb29840c54c25d07f0482f97b5b9c6386c5e48af248c1b79e2
Combined point (+1): 03f7f9f9ca507031b26c972fc23ab9b052843f7c3b3ee4e29acdd4dc09dbc03add
==Sign phase 3==
Share your key:s :
03c833af835c9152049396d75ddbb0f643aa0c9145985919d670a174341334edcb:0x9ad56d9de943d8ce617a148cc579aef44116d41f08e6996f8f57da6ce0172038
Enter key:s of other players, one per line:
(2 remaining) 0363ef3146fa919573b87cdaaed9aa64124a258768232f4ce9b2e4989290bc6141:0xfea084ccbe9739859270a4323d5faaadad46ac1ea05f68310a88fadd84be9d7a
(1 remaining) 03a0422f8642ac84303ec54029beeefd8cbdb4406ddfc82ae42f5f2034af090ff0:0x607a8b9bf576ee4b6a02d7e83eebc8985d036ae2f1fc4dd2d6bbc8336c69dd4f
==Results==
Transaction Schnorr signature:
f7f9f9ca507031b26c972fc23ab9b052843f7c3b3ee4e29acdd4dc09dbc03addf9f07e069d52009f5ded90a741c5223b90b20e39ebf9af37b0ca3ef1010959c041
Transaction result:
01000000016377d5d92f7244deddab0c3cf0268d2005eee238491fa6c8cb40e43b0e98245e010000006441f7f9f9ca507031b26c972fc23ab9b052843f7c3b3ee4e29acdd4dc09dbc03addf9f07e069d52009f5ded90a741c5223b90b20e39ebf9af37b0ca3ef1010959c0412102ff08fda3ea73d50eb7c52f82b55d7883e1843c7e6c80ba0daf08032f2e88692efeffffff020000000000000000866a4c834243482069732061626f757420676976696e672070656f706c65207468652066726565646f6d20746f206d616b65207468656972206f776e2063686f696365732c20746f20707572737565207468656972206f776e2068617070696e6573732c20686f7765766572207468657920696e646976696475616c6c7920736565206669742e3a9598000000000017a914785ca29645c56f51ff2581dd29e812764fe79636871ae60800
checksum0@Finney:~/schnorrfun$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment