Finish binding Tendermint, bar the P2P layer

This commit is contained in:
Luke Parker
2023-04-12 18:04:28 -04:00
parent 997dd611d5
commit 03a6470a5b
7 changed files with 192 additions and 37 deletions

View File

@@ -48,7 +48,7 @@ impl ReadWrite for BlockHeader {
}
impl BlockHeader {
fn hash(&self) -> [u8; 32] {
pub fn hash(&self) -> [u8; 32] {
Blake2s256::digest([b"tributary_block".as_ref(), &self.serialize()].concat()).into()
}
}