lib: Change Cert.hash type

This commit is contained in:
Davie Li 2024-04-25 02:32:49 +00:00
parent e7b5968942
commit 5b15ff7c1d

View file

@ -121,7 +121,7 @@ pub struct Cert {
pub authenticity: AuthCert, pub authenticity: AuthCert,
pub membership: MembershipProof, pub membership: MembershipProof,
pub salt: Salt, pub salt: Salt,
pub hash: Vec<u8>, pub hash: [u8; 32],
} }
impl Cert { impl Cert {
@ -135,7 +135,7 @@ impl Cert {
authenticity: auth, authenticity: auth,
membership: mem, membership: mem,
salt: salt, salt: salt,
hash: h.finalize().to_vec(), hash: h.finalize().into(),
} }
} }
} }