Closed mratsim closed 4 years ago
Removing good first issue tag. The L = ceil((1.5 * ceil(log2(r))) / 8)
step part to pass as info
param to HKDF-Expand is non-trivial given that r (the prime order) seems to be 52435875175126190479447740508185965837690552500527637822603658699938581184513
closed by #36
The current key generation predates the draft standard which is likely to be adopted (though it expired on Feb 9)
Implementation
https://github.com/status-im/nim-blscurve/blob/501f1fc3a0d2ab7954dc294d571ffd7aa969d55d/blscurve/common.nim#L834-L883
https://github.com/status-im/nim-blscurve/blob/501f1fc3a0d2ab7954dc294d571ffd7aa969d55d/blscurve/bls.nim#L90-L98
Draft standard
https://tools.ietf.org/html/draft-irtf-cfrg-bls-signature-00#section-2.3
HKDF with extract/expand step separation is already implemented as part of the hash_to_curve PR.