Chapter 3 assessment 6
Assessment
Bob and Alice and Carol create an account where either Alice or Carol can spend funds on their own, but Bob must have a countersignature from either Alice or Carol. Which script achieves this functionality? The solution generated by the wallet when Bob is spending money is:
OP_1 <alice/carol_sig> <bob_sig>
Dan and Evelyn want a wallet signed by a 2of2 multisig that incorporates public key hashing so that their keys don't need to be written into the output when it is created. The script must check that the solution they provide is a valid 2of2 multisig evaluation. Use of both separate and combined hashes to check the pre-defined public keys are valid approaches. The required input solution is:
OP_1 <dan_signature> <evelyn_signature> OP_2 <dan_pk> <evelyn_pk>
Which script does NOT correctly achieve this functionality?
From the perspective of the protocol, (e.g. ignoring usage rules/node policies) what is the maximum number of signatures that can be checked using OP_CHECKMULTISIG?
When a 3of5 signature check is performed using OP_CHECKMULTISIG, how many data items are consumed from the stack?
Last updated