Test vectors for spec v0.8.1

This commit is contained in:
Zahary Karadjov 2019-07-21 16:36:04 +03:00
parent 1cd94463a7
commit 15f620ba62
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
20 changed files with 58 additions and 18 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.json filter=lfs diff=lfs merge=lfs -text

View File

@ -1 +1,3 @@
{"title":"BLS aggregate pubkeys","summary":"BLS Aggregate public keys","forks_timeline":"mainnet","forks":["phase0"],"config":"mainnet","runner":"bls","handler":"aggregate_pubkeys","test_cases":[{"input":["0xa491d1b0ecd9bb917989f0e74f0dea0422eac4a873e5e2644f368dffb9a6e20fd6e10c1b77654d067c0618f6e5a7f79a","0xb301803f8b5ac4a1133581fc676dfedc60d891dd5fa99028805e5ea5b08d3491af75d0707adab3b70c6a6a580217bf81","0xb53d21a4cfd562c469cc81514d4ce5a6b577d8403d32a394dc265dd190b47fa9f829fdd7963afdf972e5e77854051f6f"],"output":"0xa095608b35495ca05002b7b5966729dd1ed096568cf2ff24f3318468e0f3495361414a78ebc09574489bc79e48fca969"}]} version https://git-lfs.github.com/spec/v1
oid sha256:1ec55c907510ace39efebdedf79c8ac613f6d9e187d4e8d459198e3336923f5f
size 725

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1,3 @@
{"title":"BLS private key to pubkey","summary":"BLS Convert private key to public key","forks_timeline":"mainnet","forks":["phase0"],"config":"mainnet","runner":"bls","handler":"priv_to_pub","test_cases":[{"input":"0x263dbd792f5b1be47ed85f8938c0f29586af0d3ac7b977f21c278fe1462040e3","output":"0xa491d1b0ecd9bb917989f0e74f0dea0422eac4a873e5e2644f368dffb9a6e20fd6e10c1b77654d067c0618f6e5a7f79a"},{"input":"0x47b8192d77bf871b62e87859d653922725724a5c031afeabc60bcef5ff665138","output":"0xb301803f8b5ac4a1133581fc676dfedc60d891dd5fa99028805e5ea5b08d3491af75d0707adab3b70c6a6a580217bf81"},{"input":"0x328388aff0d4a5b7dc9205abd374e7e98f3cd9f3418edb4eafda5fb16473d216","output":"0xb53d21a4cfd562c469cc81514d4ce5a6b577d8403d32a394dc265dd190b47fa9f829fdd7963afdf972e5e77854051f6f"}]} version https://git-lfs.github.com/spec/v1
oid sha256:4e8a7de19f8bbe994efd23337e3d552c693eecf69a0b2a7f87be09af67392777
size 895

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1,3 @@
{"title":"UInt Bounds","summary":"Integers right at or beyond the bounds of the allowed value range","forks_timeline":"mainnet","forks":["phase0"],"config":"mainnet","runner":"ssz","handler":"uint","test_cases":[{"type":"uint8","valid":true,"value":"0","ssz":"0x00","tags":["atomic","uint","uint_lower_bound"]},{"type":"uint8","valid":true,"value":"255","ssz":"0xff","tags":["atomic","uint","uint_upper_bound"]},{"type":"uint16","valid":true,"value":"0","ssz":"0x0000","tags":["atomic","uint","uint_lower_bound"]},{"type":"uint16","valid":true,"value":"65535","ssz":"0xffff","tags":["atomic","uint","uint_upper_bound"]},{"type":"uint32","valid":true,"value":"0","ssz":"0x00000000","tags":["atomic","uint","uint_lower_bound"]},{"type":"uint32","valid":true,"value":"4294967295","ssz":"0xffffffff","tags":["atomic","uint","uint_upper_bound"]},{"type":"uint64","valid":true,"value":"0","ssz":"0x0000000000000000","tags":["atomic","uint","uint_lower_bound"]},{"type":"uint64","valid":true,"value":"18446744073709551615","ssz":"0xffffffffffffffff","tags":["atomic","uint","uint_upper_bound"]},{"type":"uint128","valid":true,"value":"0","ssz":"0x00000000000000000000000000000000","tags":["atomic","uint","uint_lower_bound"]},{"type":"uint128","valid":true,"value":"340282366920938463463374607431768211455","ssz":"0xffffffffffffffffffffffffffffffff","tags":["atomic","uint","uint_upper_bound"]},{"type":"uint256","valid":true,"value":"0","ssz":"0x0000000000000000000000000000000000000000000000000000000000000000","tags":["atomic","uint","uint_lower_bound"]},{"type":"uint256","valid":true,"value":"115792089237316195423570985008687907853269984665640564039457584007913129639935","ssz":"0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff","tags":["atomic","uint","uint_upper_bound"]},{"type":"uint8","valid":false,"value":"-1","tags":["atomic","uint","uint_underflow"]},{"type":"uint8","valid":false,"value":"256","tags":["atomic","uint","uint_overflow"]},{"type":"uint16","valid":false,"value":"-1","tags":["atomic","uint","uint_underflow"]},{"type":"uint16","valid":false,"value":"65536","tags":["atomic","uint","uint_overflow"]},{"type":"uint32","valid":false,"value":"-1","tags":["atomic","uint","uint_underflow"]},{"type":"uint32","valid":false,"value":"4294967296","tags":["atomic","uint","uint_overflow"]},{"type":"uint64","valid":false,"value":"-1","tags":["atomic","uint","uint_underflow"]},{"type":"uint64","valid":false,"value":"18446744073709551616","tags":["atomic","uint","uint_overflow"]},{"type":"uint128","valid":false,"value":"-1","tags":["atomic","uint","uint_underflow"]},{"type":"uint128","valid":false,"value":"340282366920938463463374607431768211456","tags":["atomic","uint","uint_overflow"]},{"type":"uint256","valid":false,"value":"-1","tags":["atomic","uint","uint_underflow"]},{"type":"uint256","valid":false,"value":"115792089237316195423570985008687907853269984665640564039457584007913129639936","tags":["atomic","uint","uint_overflow"]}]} version https://git-lfs.github.com/spec/v1
oid sha256:9fe542c6d47aa90f82761e40f7b4ee7bbb0e25abf1c7bfdfceb34ae4ea905e70
size 4939

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:946329a940f979c6e89acda2c70c5b73ac1e8738bd14d4534b324d123cdcca98
size 175847581

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long