diff --git a/eth2/utils/bls/src/public_key.rs b/eth2/utils/bls/src/public_key.rs index 3ab2b60bbb..ffe710d2da 100644 --- a/eth2/utils/bls/src/public_key.rs +++ b/eth2/utils/bls/src/public_key.rs @@ -93,7 +93,11 @@ impl PartialEq for PublicKey { impl Hash for PublicKey { fn hash(&self, state: &mut H) { - ssz_encode(self).hash(state) + // Note: this is not necessarily the consensus-ready hash. Instead, it is designed to be + // optimally fast for internal usage. + // + // To hash for consensus purposes, use the SSZ-encoded bytes. + self.0.as_bytes().hash(state) } }