Replies: 1 comment 4 replies
-
I'm assuming the above code is irrelevant to the following code in EIP4788.sol. // Validator's BLS public key is verified against the hash tree root within Validator chunks
bytes32 pubKeyHashTreeRoot = sha256(abi.encodePacked(validatorBLSPubKey, bytes16(0))); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the key is calculated as
bytes32 key = keccak256(abi.encodePacked(bytes16(0), pubKey))
. I believe we can simplify this by usingbytes32 key = keccak256(pubKey)
directly, as it removes unnecessary encoding steps while still providing a unique hash for the public key.Beta Was this translation helpful? Give feedback.
All reactions