Skip to content

Commit

Permalink
Drop hash-to-curve v5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Jul 15, 2020
1 parent 1a18d0d commit a6c2145
Show file tree
Hide file tree
Showing 58 changed files with 25 additions and 1,399 deletions.
5 changes: 1 addition & 4 deletions blscurve.nim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,4 @@ export
derive_master_secretKey,
derive_child_secretKey

export BLS_ETH2_SPEC
static: doAssert: BLS_ETH2_SPEC=="v0.11.x" or BLS_ETH2_SPEC=="v0.12.x"
# Pass -d:BLS_ETH2_SPEC="v0.11.x"
# For testnets that use the old BLS draft (schlesi, witti)
const BLS_ETH2_SPEC* = "v0.12.x (deprecated)"
5 changes: 1 addition & 4 deletions blscurve.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ task test, "Run all tests":
# test "", "blscurve/hash_to_curve.nim"

# Internal BLS API - IETF standard
# test "", "tests/hash_to_curve_v5.nim"
# test "", "tests/hash_to_curve_v7.nim"

# Public BLS API - IETF standard / Ethereum2.0 v0.10.x ~ v0.11.x
test "-d:BLS_ETH2_SPEC=\"v0.11.x\"", "tests/eth2_vectors.nim"
# Public BLS API - IETF standard / Ethereum2.0 v0.12.x
test "-d:BLS_ETH2_SPEC=\"v0.12.x\"", "tests/eth2_vectors.nim"
test "", "tests/eth2_vectors.nim"

# key Derivation - EIP 2333
test "", "tests/eip2333_key_derivation.nim"
Expand Down
4 changes: 0 additions & 4 deletions blscurve/draft_v5/README.md

This file was deleted.

363 changes: 0 additions & 363 deletions blscurve/draft_v5/hash_to_curve_draft_v5.md

This file was deleted.

Loading

0 comments on commit a6c2145

Please sign in to comment.