Skip to content

Commit 4be502a

Browse files
committed
tests: add non-canonical pubkey fixtures
1 parent abac254 commit 4be502a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/fixtures/script.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,20 @@
178178
],
179179
"isPubKeyInput": [
180180
{
181-
"description": "non-canonical signature",
181+
"description": "non-canonical signature (too long)",
182182
"scriptSig": "304402207515cf147d201f411092e6be5a64a6006f9308fad7b2a8fdaab22cd86ce764c202200974b8aca7bf51dbf54150d3884e1ae04f675637b926ec33bf7593ffffffffffffffff"
183183
}
184184
],
185+
"isPubKeyOutput": [
186+
{
187+
"description": "non-canonical pubkey (too short)",
188+
"scriptPubKey": "02359c6e3f04cefbf089cf1d6670dc47c3fb4df68e2bad1fa5a369f9ce OP_CHECKSIG"
189+
},
190+
{
191+
"description": "non-canonical pubkey (too long)",
192+
"scriptPubKey": "02359c6e3f04cefbf089cf1d6670dc47c3fb4df68e2bad1fa5a369f9ce4b42bbd1ffffff OP_CHECKSIG"
193+
}
194+
],
185195
"isMultisigOutput": [
186196
{
187197
"description": "OP_CHECKMULTISIG not found",

0 commit comments

Comments
 (0)