1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-04 03:03:53 +01:00
bitcoin-bips/bip-tap-addr/address_tlv_encoding_error_cases.json
2023-09-06 11:41:38 -07:00

65 lines
No EOL
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)"
}
]
}