feat: Add mechanism to retain original CBOR (#110)

This commit is contained in:
Santiago Carmuega 2022-06-03 21:43:18 -03:00 committed by GitHub
parent e4784f444d
commit 4ea3e134c0
5 changed files with 102 additions and 29 deletions

View file

@ -36,3 +36,7 @@ pub enum Era {
Mary, // multi-assets
Alonzo, // smart-contracts
}
pub trait ToHash<const BYTES: usize> {
fn to_hash(&self) -> pallas_crypto::hash::Hash<BYTES>;
}