bitcoinjs-lib/test/fixtures/base58.json

75 lines
1.4 KiB
JSON
Raw Normal View History

2014-05-18 11:47:39 +02:00
{
"valid": [
{
"hex": "",
"string": ""
2014-04-19 21:41:20 +02:00
},
{
"hex": "61",
"string": "2g"
2014-04-19 21:41:20 +02:00
},
{
"hex": "626262",
"string": "a3gV"
2014-04-19 21:41:20 +02:00
},
{
"hex": "636363",
"string": "aPEr"
2014-04-19 21:41:20 +02:00
},
{
"hex": "73696d706c792061206c6f6e6720737472696e67",
"string": "2cFupjhnEsSn59qHXstmK2ffpLv2"
2014-04-19 21:41:20 +02:00
},
{
"hex": "00eb15231dfceb60925886b67d065299925915aeb172c06647",
"string": "1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L"
2014-04-19 21:41:20 +02:00
},
{
"hex": "516b6fcd0f",
"string": "ABnLTmg"
2014-04-19 21:41:20 +02:00
},
{
"hex": "bf4f89001e670274dd",
"string": "3SEo3LWLoPntC"
2014-04-19 21:41:20 +02:00
},
{
"hex": "572e4794",
"string": "3EFU7m"
2014-04-19 21:41:20 +02:00
},
{
"hex": "ecac89cad93923c02321",
"string": "EJDM8drfXA6uyA"
2014-04-19 21:41:20 +02:00
},
{
"hex": "10c8511e",
"string": "Rt5zm"
2014-04-19 21:41:20 +02:00
},
{
"hex": "00000000000000000000",
"string": "1111111111"
}
],
"invalid": [
{
"description": "non-base58 string",
"string": "invalid"
2014-04-19 21:41:20 +02:00
},
{
"description": "non-base58 alphabet",
"string": "c2F0b3NoaQo="
2014-04-19 21:41:20 +02:00
},
{
"description": "leading whitespace",
"string": " 1111111111"
2014-04-19 21:41:20 +02:00
},
{
"description": "trailing whitespace",
"string": "1111111111 "
2014-04-19 21:41:20 +02:00
},
{
"description": "unexpected character after whitespace",
"string": " \t\n\u000b\f\r skip \r\f\u000b\n\t a"
2014-04-19 21:41:20 +02:00
}
]
2014-04-23 23:22:10 +02:00
}