Complete canonical_root for attestation_data

This commit is contained in:
Paul Hauner 2019-02-05 12:41:56 +11:00
parent cbb84c0d69
commit 87a326d8a2
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -43,10 +43,8 @@ impl AttestationData {
}
}
// TODO: Implement this as a merkle root, once tree_ssz is implemented.
// https://github.com/sigp/lighthouse/issues/92
pub fn canonical_root(&self) -> Hash256 {
Hash256::zero()
Hash256::from(&self.hash_tree_root()[..])
}
pub fn signable_message(&self, custody_bit: bool) -> Vec<u8> {