bitcoinjs-lib/test/fixtures/bufferutils.json

118 lines
2.3 KiB
JSON
Raw Normal View History

2014-05-18 11:47:39 +02:00
{
2014-05-01 11:38:18 +02:00
"valid": [
{
"dec": 0,
"hex64": "0000000000000000",
"hexVI": "00",
"hexPD": "00"
2014-05-01 11:38:18 +02:00
},
{
"dec": 1,
"hex64": "0100000000000000",
"hexVI": "01",
"hexPD": "01"
2014-05-01 11:38:18 +02:00
},
{
"dec": 252,
"hex64": "fc00000000000000",
"hexVI": "fc",
"hexPD": "4cfc"
2014-05-01 11:38:18 +02:00
},
{
"dec": 253,
"hex64": "fd00000000000000",
"hexVI": "fdfd00",
"hexPD": "4cfd"
2014-05-01 11:38:18 +02:00
},
{
"dec": 254,
"hex64": "fe00000000000000",
"hexVI": "fdfe00",
"hexPD": "4cfe"
2014-05-01 11:38:18 +02:00
},
{
"dec": 255,
"hex64": "ff00000000000000",
"hexVI": "fdff00",
2016-08-31 05:40:11 +02:00
"hexPD": "4cff"
},
{
"dec": 65534,
"hex64": "feff000000000000",
"hexVI": "fdfeff",
"hexPD": "4dfeff"
},
2014-05-01 11:38:18 +02:00
{
"dec": 65535,
"hex64": "ffff000000000000",
"hexVI": "fdffff",
2016-08-31 05:40:11 +02:00
"hexPD": "4dffff"
2014-05-01 11:38:18 +02:00
},
{
"dec": 65536,
"hex64": "0000010000000000",
"hexVI": "fe00000100",
"hexPD": "4e00000100"
2014-05-01 11:38:18 +02:00
},
{
"dec": 65537,
"hex64": "0100010000000000",
"hexVI": "fe01000100",
"hexPD": "4e01000100"
2014-05-01 11:38:18 +02:00
},
{
"dec": 4294967295,
"hex64": "ffffffff00000000",
"hexVI": "feffffffff",
"hexPD": "4effffffff"
2014-05-01 11:38:18 +02:00
},
{
"dec": 4294967296,
"hex64": "0000000001000000",
"hexVI": "ff0000000001000000"
},
{
"dec": 4294967297,
"hex64": "0100000001000000",
"hexVI": "ff0100000001000000"
},
{
"dec": 9007199254740991,
"hex64": "ffffffffffff1f00",
"hexVI": "ffffffffffffff1f00"
}
],
"invalid": {
"readUInt64LE": [
{
"description": "n === 2^53",
2016-10-06 12:53:48 +02:00
"exception": "RangeError: value out of range",
"hex64": "0000000000002000",
"hexVI": "ff0000000000000020",
"dec": 9007199254740992
},
{
"description": "n > 2^53",
2016-10-06 12:53:48 +02:00
"exception": "RangeError: value out of range",
"hex64": "0100000000002000",
"hexVI": "ff0100000000000020",
"dec": 9007199254740993
}
],
"readPushDataInt": [
{
"description": "OP_PUSHDATA1, no size",
"hexPD": "4c"
},
{
"description": "OP_PUSHDATA2, no size",
"hexPD": "4d"
},
{
"description": "OP_PUSHDATA4, no size",
"hexPD": "4e"
}
]
}
2014-05-01 11:38:18 +02:00
}