Closed janus closed 5 years ago
Please what is the reason behind the use of LittleEndian during secret key generation.
setLittleEndian (s) { this._setter(mod.blsSecretKeySetLittleEndian, s) } setByCSPRNG () { const a = new Uint8Array(BLS_SECRETKEY_SIZE) crypto.getRandomValues(a) this.setLittleEndian(a) }```
The reason is that it ensures that the value is less than r.
Thanks a million
Please what is the reason behind the use of LittleEndian during secret key generation.