From 5b15ff7c1d2c1636bbab1b623e42e6a02f9aa028 Mon Sep 17 00:00:00 2001 From: Davie Li Date: Thu, 25 Apr 2024 02:32:49 +0000 Subject: [PATCH] lib: Change Cert.hash type --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d218a83..a98a0af 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -121,7 +121,7 @@ pub struct Cert { pub authenticity: AuthCert, pub membership: MembershipProof, pub salt: Salt, - pub hash: Vec, + pub hash: [u8; 32], } impl Cert { @@ -135,7 +135,7 @@ impl Cert { authenticity: auth, membership: mem, salt: salt, - hash: h.finalize().to_vec(), + hash: h.finalize().into(), } } }