aztec-packages
aztec-packages copied to clipboard
Aztec.nr: SecretAndhash struct
struct SecretAndHash {
secret: Field,
hash: Field,
}
impl SecretAndHash {
fn random() -> Self {
let secret = unsafe_rand();
let hash = compute_secret_hash(secret);
SecretAndHash { secret, hash }
}
}
Thanks Oleh for the feedback