mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-04 11:08:05 +01:00
65 lines
2.1 KiB
JSON
65 lines
2.1 KiB
JSON
|
{
|
||
|
"error_test_cases": [
|
||
|
{
|
||
|
"address": {},
|
||
|
"error": "missing chain params HRP"
|
||
|
},
|
||
|
{
|
||
|
"address": {
|
||
|
"chain_params_hrp": "bc"
|
||
|
},
|
||
|
"error": "invalid chain params HRP"
|
||
|
},
|
||
|
{
|
||
|
"address": {
|
||
|
"chain_params_hrp": "tapbc"
|
||
|
},
|
||
|
"error": "missing asset ID"
|
||
|
},
|
||
|
{
|
||
|
"address": {
|
||
|
"chain_params_hrp": "tapbc",
|
||
|
"asset_id": "0000000000000000000000000000000000000000000000000000000000000000"
|
||
|
},
|
||
|
"error": "missing script key"
|
||
|
},
|
||
|
{
|
||
|
"address": {
|
||
|
"chain_params_hrp": "tapbc",
|
||
|
"asset_id": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"script_key": "0000000000000000000000000000000000000000000000000000000000000000"
|
||
|
},
|
||
|
"error": "invalid script key length",
|
||
|
"comment": "script key must be 33 bytes (compressed)"
|
||
|
},
|
||
|
{
|
||
|
"address": {
|
||
|
"chain_params_hrp": "tapbc",
|
||
|
"asset_id": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"script_key": "000000000000000000000000000000000000000000000000000000000000000000"
|
||
|
},
|
||
|
"error": "missing internal key"
|
||
|
},
|
||
|
{
|
||
|
"address": {
|
||
|
"chain_params_hrp": "tapbc",
|
||
|
"asset_id": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"script_key": "000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"internal_key": "0000000000000000000000000000000000000000000000000000000000000000"
|
||
|
},
|
||
|
"error": "invalid internal key length",
|
||
|
"comment": "internal key must be 33 bytes (compressed)"
|
||
|
},
|
||
|
{
|
||
|
"address": {
|
||
|
"chain_params_hrp": "tapbc",
|
||
|
"asset_id": "0000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"script_key": "000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"internal_key": "000000000000000000000000000000000000000000000000000000000000000000",
|
||
|
"group_key": "0000000000000000000000000000000000000000000000000000000000000000"
|
||
|
},
|
||
|
"error": "invalid group key length",
|
||
|
"comment": "group key must be 33 bytes (compressed)"
|
||
|
}
|
||
|
]
|
||
|
}
|