8514bbfabd
By removing Address.Error, we remove a code smell. This part of the code base was also not under any form of test. Test data and tests have therefore been added verifying its behaviour in both Wallet and Address tests.
59 lines
1.9 KiB
JSON
59 lines
1.9 KiB
JSON
{
|
|
"valid": [
|
|
{
|
|
"description": "pubKeyHash",
|
|
"network": "bitcoin",
|
|
"version": 0,
|
|
"hex": "751e76e8199196d454941c45d1b3a323f1433bd6",
|
|
"base58check": "1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH",
|
|
"script": "76a914751e76e8199196d454941c45d1b3a323f1433bd688ac"
|
|
},
|
|
{
|
|
"description": "scriptHash",
|
|
"network": "bitcoin",
|
|
"version": 5,
|
|
"hex": "cd7b44d0b03f2d026d1e586d7ae18903b0d385f6",
|
|
"base58check": "3LRW7jeCvQCRdPF8S3yUCfRAx4eqXFmdcr",
|
|
"script": "a914cd7b44d0b03f2d026d1e586d7ae18903b0d385f687"
|
|
},
|
|
{
|
|
"description": "pubKeyHash",
|
|
"network": "testnet",
|
|
"version": 111,
|
|
"hex": "751e76e8199196d454941c45d1b3a323f1433bd6",
|
|
"base58check": "mrCDrCybB6J1vRfbwM5hemdJz73FwDBC8r",
|
|
"script": "76a914751e76e8199196d454941c45d1b3a323f1433bd688ac"
|
|
},
|
|
{
|
|
"description": "scriptHash",
|
|
"network": "testnet",
|
|
"version": 196,
|
|
"hex": "cd7b44d0b03f2d026d1e586d7ae18903b0d385f6",
|
|
"base58check": "2NByiBUaEXrhmqAsg7BbLpcQSAQs1EDwt5w",
|
|
"script": "a914cd7b44d0b03f2d026d1e586d7ae18903b0d385f687"
|
|
}
|
|
],
|
|
"invalid": {
|
|
"fromScriptPubKey": [
|
|
{
|
|
"description": "pubkey has no matching Address",
|
|
"hex": "21031f1e68f82112b373f0fe980b3a89d212d2b5c01fb51eb25acb8b4c4b4299ce95ac"
|
|
},
|
|
{
|
|
"description": "multisig has no matching Address",
|
|
"hex": "5121032487c2a32f7c8d57d2a93906a6457afd00697925b0e6e145d89af6d3bca330162102308673d16987eaa010e540901cc6fe3695e758c19f46ce604e174dac315e685a52ae"
|
|
},
|
|
{
|
|
"description": "nulldata has no matching Address",
|
|
"hex": "6a2606deadbeef03f895a2ad89fb6d696497af486cb7c644a27aa568c7a18dd06113401115185474"
|
|
}
|
|
],
|
|
"toScriptPubKey": [
|
|
{
|
|
"description": "24kPZCmVgzfkpGdXExy56234MRHrsqQxNWE has no matching script",
|
|
"hex": "751e76e8199196d454941c45d1b3a323f1433bd6",
|
|
"version": 153
|
|
}
|
|
]
|
|
}
|
|
}
|