lib: Change Cert.hash type
This commit is contained in:
parent
e7b5968942
commit
5b15ff7c1d
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue