compute_secret_hash

Function compute_secret_hash 

Source
pub fn compute_secret_hash(secret: &Fr) -> Fr
Expand description

Hash a secret for use in L1-L2 message flow and TransparentNote.

secret_hash = poseidon2([secret], SECRET_HASH)

Mirrors TS computeSecretHash(secret).