Closed blukat29 closed 10 months ago
@kjhman21 @aidan-kwon This PR is a fix to match with implementation. PTAL.
@kjhman21 Klaytn v1.12.0 is already implemented in the new spec (this PR; 32-byte big-endian bytes) (https://github.com/klaytn/klaytn/blob/v1.12.0/consensus/istanbul/backend/randao_test.go#L20).
The specs before & after this PR are incompatible, but the previous spec has never been instantiated.
Modify KIP-114 spec's implementation detail.
block_number_to_bytes()
from an 8-byte big-endian bytes to a 32-byte big-endian bytes.RANDOM
opcode semantic to return the current block's, not latest block's.Reason
bls.VerifySignature
expects 32 bytes message (following the Prysm's convention)