cleanup README from deprecated eth2.0-tests (state test) mentions.

This commit is contained in:
Mamy André-Ratsimbazafy 2019-06-21 10:36:02 +02:00
parent 470513eddf
commit d44da85c86
No known key found for this signature in database
GPG Key ID: 7B88AD1FE79492E1
1 changed files with 1 additions and 25 deletions

View File

@ -30,34 +30,10 @@ This repository allows use to workaround the current following limitations:
which allows well-tested serialization and deserialization into and from Ethereum types.
- [NimYAML](https://nimyaml.org) uses int by default for numerals and cannot deserialize
18446744073709551615 (2^64-1), the FAR_FUTURE_SLOT constant.
- Eth2.0 tests currently uses an invalid BLS signature https://github.com/ethereum/eth2.0-tests/issues/27
- All those workarounds requires an intermediate reformatted JSON file, but the tests are huge (100k+ lines)
and will cause review issues in the main repo.
Only state tests are worked on at the moment.
## State tests conversion.
Note on serialization hacks:
### FAR_FUTURE_SLOT (18446744073709551615)
The FAR_FUTURE_SLOT (18446744073709551615) has been rewritten as a string **in the YAML file**
as it's 2^64-1 and Nim by default try to parse it into a int64 (which can represents up to 2^63-1).
The YAML file is then converted to JSON for easy input to the json serialization/deserialization
with beacon chain type support.
"18446744073709551615" is then replaced again by uint64 18446744073709551615.
### Compressed signature
In `latest_block_header` field, the signatures and randao_reveals are
`"0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"`
but that is not a valid compressed BLS signature, the zero signature should be:
`"0xc00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"`
### Commands
## Commands
You can compile and run the `batch_convert.nim` file to convert the supported tests.
It needs to be run from the root of this project directory.