Quantcast
Channel: Is the `addmultisignature` API call dependent on order of public keys in the array? Or is it lexicographically sorted? - Bitcoin Stack Exchange
Viewing all articles
Browse latest Browse all 2

Is the `addmultisignature` API call dependent on order of public keys in the array? Or is it lexicographically sorted?

$
0
0

Say Alice and Bob are part of a partnership business that accepts Bitcoin. They store all their main funds in cold storage until the end of 3 months, when they cash out and use a new address. This cold storage is in a single address.

Both Alice and Bob have full nodes, running Bitcoin Core. They use the console feature to generate a 2-of-2 P2SH multisig address, using addmultisignature.

They exchange each other's public keys, and input them as arguments.

If Alice used the following syntax:

addmultisignature 2 '[<alice's key>,<bob's key>]'

and Bob used:

addmultisignature 2 '[<bob's key>,<alice's key>]'

Will they end up with the script hash and address?

Follow up questions:

Can you give certain keys more "weighting" by specifying them more than once?

Does the same logic apply to SegWit (P2WSH) multisigs?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images