@ -664,7 +664,30 @@ nSequences are max.
[ "0 0 0x02 0x0000" , "CHECKMULTISIGVERIFY 1" , "" ] ,
[ "0 0 0x02 0x0000" , "CHECKMULTISIGVERIFY 1" , "" ] ,
[ "0 0x02 0x0000 0" , "CHECKMULTISIGVERIFY 1" , "" ] ,
[ "0 0x02 0x0000 0" , "CHECKMULTISIGVERIFY 1" , "" ] ,
[ "
C H E C K M U L T I S I G e v a l u a t i o n o r d e r t e s t s . C H E C K M U L T I S I G e v a l u a t e s s i g n a t u r e s a n d
p u b k e y s i n a s p e c i f i c o r d e r , a n d w i l l e x i t e a r l y i f t h e n u m b e r o f s i g n a t u r e s
l e f t t o c h e c k i s g r e a t e r t h a n t h e n u m b e r o f k e y s l e f t . A s S T R I C T E N C f a i l s t h e
s c r i p t w h e n i t r e a c h e s a n i n v a l i d l y e n c o d e d s i g n a t u r e o r p u b k e y , w e c a n u s e i t
t o t e s t t h e e x a c t o r d e r i n w h i c h s i g n a t u r e s a n d p u b k e y s a r e e v a l u a t e d b y
d i s t i n g u i s h i n g C H E C K M U L T I S I G r e t u r n i n g false o n t h e s t a c k a n d t h e s c r i p t a s a
w h o l e f a i l i n g .
S e e a l s o t h e c o r r e s p o n d i n g i n v e r t e d v e r s i o n s o f t h e s e t e s t s i n s c r i p t _ i n v a l i d . j s o n
" ] ,
[
"0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501" ,
"2 0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT" ,
"STRICTENC" ,
"2-of-2 CHECKMULTISIG NOT with the second pubkey invalid, and both signatures validly encoded. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid pubkey."
] ,
[
"0 0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501" ,
"2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT" ,
"STRICTENC" ,
"2-of-2 CHECKMULTISIG NOT with both pubkeys valid, but second signature invalid. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid signature."
] ,
[ "Automatically generated test cases" ] ,
[
[
"0x47 0x3044022053205076a7bb13d2db3162a2d97d8197631f829b065948b7019b15482af819a902204328dcc02c994ca086b1226d0d5f1674d23cfae0d846143df812b81cab3391e801" ,
"0x47 0x3044022053205076a7bb13d2db3162a2d97d8197631f829b065948b7019b15482af819a902204328dcc02c994ca086b1226d0d5f1674d23cfae0d846143df812b81cab3391e801" ,
"0x41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG" ,
"0x41 0x0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8 CHECKSIG" ,
@ -761,30 +784,6 @@ nSequences are max.
"STRICTENC" ,
"STRICTENC" ,
"1-of-2 with the second 1 hybrid pubkey"
"1-of-2 with the second 1 hybrid pubkey"
] ,
] ,
[ "
C H E C K M U L T I S I G e v a l u a t i o n o r d e r t e s t s . C H E C K M U L T I S I G e v a l u a t e s s i g n a t u r e s a n d
p u b k e y s i n a s p e c i f i c o r d e r , a n d w i l l e x i t e a r l y i f t h e n u m b e r o f s i g n a t u r e s
l e f t t o c h e c k i s g r e a t e r t h a n t h e n u m b e r o f k e y s l e f t . A s S T R I C T E N C f a i l s t h e
s c r i p t w h e n i t r e a c h e s a n i n v a l i d l y e n c o d e d s i g n a t u r e o r p u b k e y , w e c a n u s e i t
t o t e s t t h e e x a c t o r d e r i n w h i c h s i g n a t u r e s a n d p u b k e y s a r e e v a l u a t e d b y
d i s t i n g u i s h i n g C H E C K M U L T I S I G r e t u r n i n g false o n t h e s t a c k a n d t h e s c r i p t a s a
w h o l e f a i l i n g .
S e e a l s o t h e c o r r e s p o n d i n g i n v e r t e d v e r s i o n s o f t h e s e t e s t s i n s c r i p t _ i n v a l i d . j s o n
" ] ,
[
"0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501" ,
"2 0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT" ,
"STRICTENC" ,
"2-of-2 CHECKMULTISIG NOT with the second pubkey invalid, and both signatures validly encoded. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid pubkey."
] ,
[
"0 0 0x47 0x3044022044dc17b0887c161bb67ba9635bf758735bdde503e4b0a0987f587f14a4e1143d022009a215772d49a85dae40d8ca03955af26ad3978a0ff965faa12915e9586249a501" ,
"2 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 0x21 0x02865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac0 2 CHECKMULTISIG NOT" ,
"STRICTENC" ,
"2-of-2 CHECKMULTISIG NOT with both pubkeys valid, but second signature invalid. Valid pubkey fails, and CHECKMULTISIG exits early, prior to evaluation of second invalid signature."
] ,
[
[
"0x47 0x304402201c215cb13e4954e60ce4f6de74941904c771f998de7b1d9627e82a1949fde517022031c2197455f3dbecbb78321201308d7b039424e38d480772d7cd4eb465a083f405" ,
"0x47 0x304402201c215cb13e4954e60ce4f6de74941904c771f998de7b1d9627e82a1949fde517022031c2197455f3dbecbb78321201308d7b039424e38d480772d7cd4eb465a083f405" ,
"0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG" ,
"0x41 0x048282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f5150811f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf CHECKSIG" ,