Added another multisig test with compressed pubkey

This commit is contained in:
Francis Lam 2014-01-02 13:50:22 -05:00
parent 3f52f559eb
commit 3a8ec0078b

View file

@ -409,6 +409,53 @@ var multiSigTests = []multiSigTest{
}, },
}, },
}, },
// from real tx: 691dd277dc0e90a462a3d652a1171686de49cf19067cd33c7df0392833fb986a, vout 44
{script: []byte{
btcscript.OP_1, btcscript.OP_DATA_65,
0x34, 0x63, 0x33, 0x65, 0x63, 0x32, 0x35, 0x39,
0x63, 0x37, 0x34, 0x64, 0x61, 0x63, 0x65, 0x36,
0x66, 0x64, 0x30, 0x38, 0x38, 0x62, 0x34, 0x34,
0x63, 0x65, 0x66, 0x38, 0x63, 0x0a, 0x63, 0x36,
0x36, 0x62, 0x63, 0x31, 0x39, 0x39, 0x36, 0x63,
0x38, 0x62, 0x39, 0x34, 0x61, 0x33, 0x38, 0x31,
0x31, 0x62, 0x33, 0x36, 0x35, 0x36, 0x31, 0x38,
0x66, 0x65, 0x31, 0x65, 0x39, 0x62, 0x31, 0x62,
0x35, btcscript.OP_DATA_65,
0x36, 0x63, 0x61, 0x63, 0x63, 0x65, 0x39, 0x39,
0x33, 0x61, 0x33, 0x39, 0x38, 0x38, 0x61, 0x34,
0x36, 0x39, 0x66, 0x63, 0x63, 0x36, 0x64, 0x36,
0x64, 0x61, 0x62, 0x66, 0x64, 0x0a, 0x32, 0x36,
0x36, 0x33, 0x63, 0x66, 0x61, 0x39, 0x63, 0x66,
0x34, 0x63, 0x30, 0x33, 0x63, 0x36, 0x30, 0x39,
0x63, 0x35, 0x39, 0x33, 0x63, 0x33, 0x65, 0x39,
0x31, 0x66, 0x65, 0x64, 0x65, 0x37, 0x30, 0x32,
0x39, btcscript.OP_DATA_33,
0x31, 0x32, 0x33, 0x64, 0x64, 0x34, 0x32, 0x64,
0x32, 0x35, 0x36, 0x33, 0x39, 0x64, 0x33, 0x38,
0x61, 0x36, 0x63, 0x66, 0x35, 0x30, 0x61, 0x62,
0x34, 0x63, 0x64, 0x34, 0x34, 0x0a, 0x00, 0x00,
0x00, btcscript.OP_3, btcscript.OP_CHECK_MULTISIG},
class: btcscript.ScriptMultiSig,
reqSigs: 1,
addrhashes: [][]byte{
[]byte{
0xfb, 0xf0, 0x08, 0x0b, 0xc5, 0xf9, 0xd7, 0x2a,
0x9e, 0x64, 0x6f, 0x16, 0x46, 0x46, 0x1c, 0x43,
0x19, 0xc3, 0xb6, 0xd4,
},
[]byte{
0xc6, 0x00, 0xe7, 0x69, 0xc3, 0xae, 0x20, 0xd4,
0xa0, 0x50, 0x08, 0xd1, 0xe3, 0xad, 0x06, 0x33,
0xf2, 0x7b, 0x77, 0xa2,
},
[]byte{
0xad, 0x34, 0x62, 0xcb, 0xa3, 0x5b, 0xee, 0x04,
0xef, 0xd4, 0x20, 0x8c, 0xcd, 0x7f, 0x41, 0xf4,
0xc8, 0x55, 0xf2, 0x73,
},
},
},
} }
func TestMultiSigs(t *testing.T) { func TestMultiSigs(t *testing.T) {