The Zcash Community Group is interested in creating a multi-signature address to require multiple members to sign off on any single transaction.
Is the above call appropriate to achieve this? Are there other calls that are relevant? Is there an example using this call? How do individual z-addresses interact with the multi-signature address? Is the functionality of the multi-signature address limited relative to a typical z-address?
Thank you in advance for helping us
2 Likes
hanh
August 23, 2021, 9:20am
2
The short story: Multisignature addresses do not support z-addresses.
Find answers to important questions about Zcash, how it differs from other cryptocurrencies like Bitcoin, transaction types, mining, upgrades, community and more.
Est. reading time: 1 minute
Does Zcash have multi-signature transactions?
Yes, transparent addresses support multi-signature transactions but shielded addresses do not yet. You can see the difference between single-signature and multi-signature transparent addresses with their starting characters: “t1” and “t3” respectively.
3 Likes
We successfully created a multi-sig address and added it to our full node wallet (Zcash Address t3JbNWu81oUZFZJW7yTT8cZAF7VLHD5FyPC )
ubuntu@ubuntu:~$ zcash-cli validateaddress t3JbNWu81oUZFZJW7yTT8cZAF7VLHD5FyPC
{
“isvalid”: true,
“address”: “t3JbNWu81oUZFZJW7yTT8cZAF7VLHD5FyPC”,
“scriptPubKey”: “a9140054ccd9ab688c8c2b4a49371281ed7812d2ff4f87”,
“ismine”: false,
“iswatchonly”: false,
“isscript”: true,
“script”: “multisig”,
“hex”: “522103742f5537d830a0ad335fdc5a98179cd65033042ae1dcb5788de1ea4dd153a4062102e579c1a3386028d1bf02fd489bb8bf71da55c52e65a83a963e564a430727efb752ae”,
“addresses”: [
“t1ZiQS28FD8z917A5GhN7f1VQdkKaV2UHAv”,
“t1dj91i8tzzXL86bJkawg8WDzzVGXg9y5Th”
],
“sigsrequired”: 2,
“account”: “”
}
How do we spend money from this new multisig address? We tried z_sendmany
2 Likes
hanh
September 6, 2021, 5:45am
4
Zsendmany is for sending shielded zec to multiple recipients.
You can follow this step by step example from bitcoin.
TwoOfThree.sh
# Raw transaction API example work-through
# Send coins to a 2-of-3 multisig, then spend them.
#
# For this example, I'm using these three keypairs (public/private)
# 0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86 / 5JaTXbAUmfPYZFRwrYaALK48fN6sFJp4rHqq2QSXs8ucfpE4yQU
# 04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a986818a7cb624532f062c1d1f8722084861c5c3291ccffef4ec6874 / 5Jb7fCeh1Wtm4yBBg3q3XbT6B525i17kVhy3vMC9AqfR6FH2qGk
# 048d2455d2403e08708fc1f556002f1b6cd83f992d085097f9974ab08a28838f07896fbab08f39495e15fa6fad6edbfb1e754e35fa1c7844c41f322a1863d46213 / 5JFjmGo5Fww9p8gvx48qBYDJNAzR9pmH5S389axMtDyPT8ddqmw
# First: combine the three keys into a multisig address:
./bitcoind createmultisig 2 '["0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86","04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a986818a7cb624532f062c1d1f8722084861c5c3291ccffef4ec6874","048d2455d2403e08708fc1f556002f1b6cd83f992d085097f9974ab08a28838f07896fbab08f39495e15fa6fad6edbfb1e754e35fa1c7844c41f322a1863d46213"]'
This file has been truncated. show original
It should be very similar for zcash.
Be careful, the change output is not created for you !!
1 Like
What’s the worst that can happen?
hanh
September 6, 2021, 6:08am
6
The change goes to the miner.