status-im / nim-blscurve

Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381
Apache License 2.0
26 stars 11 forks source link

Alternate streaming scheme #11

Closed mratsim closed 6 years ago

mratsim commented 6 years ago

In Shasper spec, validators will have a bls_proof_of_possession see https://github.com/ethereum/eth2.0-specs/blob/master/specs/casper_sharding_v2.1.md#pow-main-chain-changes and https://github.com/ethereum/eth2.0-specs/blob/master/specs/casper_sharding_v2.1.md#routine-for-adding-a-validator

This means that we do not need to build a big sequence of validator keys and then sort, we can directly loop other the validators sequence.

Actually it's probably require to sign in that order.

cheatfate commented 6 years ago

@mratsim i have already made it, this type of sorting.

mratsim commented 6 years ago

closed by https://github.com/status-im/nim-milagro-crypto/commit/5164e10c465bad00c465556082bf0983a956a5f1