add failing tests for redeem.network derivation
This commit is contained in:
parent
6927f74b7a
commit
1b4dc48d75
2 changed files with 36 additions and 0 deletions
18
test/fixtures/p2sh.json
vendored
18
test/fixtures/p2sh.json
vendored
|
@ -166,6 +166,24 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "p2sh-p2pkh, out (network derived from redeem)",
|
||||
"arguments": {
|
||||
"redeem": {
|
||||
"address": "this is P2PKH context, unknown and ignored by P2SH",
|
||||
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
||||
"network": "testnet"
|
||||
}
|
||||
},
|
||||
"expected": {
|
||||
"address": "2N7nfc7zeWuADtpdR4MrR7Wq3dzr7LxTCgS",
|
||||
"hash": "9f840a5fc02407ef0ad499c2ec0eb0b942fb0086",
|
||||
"output": "OP_HASH160 9f840a5fc02407ef0ad499c2ec0eb0b942fb0086 OP_EQUAL",
|
||||
"input": null,
|
||||
"witness": null,
|
||||
"network": "testnet"
|
||||
}
|
||||
}
|
||||
],
|
||||
"invalid": [
|
||||
|
|
18
test/fixtures/p2wsh.json
vendored
18
test/fixtures/p2wsh.json
vendored
|
@ -179,6 +179,24 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "p2wsh-p2pkh, out (network derived from redeem)",
|
||||
"arguments": {
|
||||
"redeem": {
|
||||
"address": "this is P2PKH context, unknown and ignored by p2wsh",
|
||||
"output": "OP_DUP OP_HASH160 c30afa58ae0673b00a45b5c17dff4633780f1400 OP_EQUALVERIFY OP_CHECKSIG",
|
||||
"network": "testnet"
|
||||
}
|
||||
},
|
||||
"expected": {
|
||||
"address": "tb1qusxlgq9quu27ucxs7a2fg8nv0pycdzvxsjk9npyupupxw3y892ssaskm8v",
|
||||
"hash": "e40df400a0e715ee60d0f754941e6c784986898684ac59849c0f026744872aa1",
|
||||
"output": "OP_0 e40df400a0e715ee60d0f754941e6c784986898684ac59849c0f026744872aa1",
|
||||
"input": null,
|
||||
"witness": null,
|
||||
"network": "testnet"
|
||||
}
|
||||
}
|
||||
],
|
||||
"invalid": [
|
||||
|
|
Loading…
Add table
Reference in a new issue