Commit Graph

1 Commits

Author SHA1 Message Date
Mamy Ratsimbazafy 4f87e747d8
[Ready] Hash to curve draft 7 + BLS signature draft 2 (#58)
* dup the draft 5 to allow having both at the same time

* Move to a stashe folder

* implement expand_message_xmd

* implement the new hashToField

* And done? (besides tests)

* Add Eth2 suite

* Change pseudo_random_bytes to uniform_bytes - https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve/pull/263/files

* For now use Py-ECC as reference (https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve/issues/265)

* Add expandMessage official test suite + fix termination detection https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve/pull/266

* Introduce official vectors in H2C

* Fix hash2curve sign0

* Pass all H2C test vectors current and futures

* Setup eth v12 test vectors

* Pass tests and properly handle aggregation with zero signature - https://github.com/ethereum/eth2.0-specs/issues/1713

* Introduce a switch to toggle v0.11 or v0.12 signatures

* Fix domain sepratation tag for v0.11.x

* Re-skip the buggy v0.11.x aggregation tests

* change default to 0.11.x
2020-05-28 10:19:21 +02:00