Skip to main content

amf_commit

Function amf_commit 

Source
pub fn amf_commit(frank_key: Vec<u8>, msg: Vec<u8>) -> Result<Vec<u8>, AmfError>
Expand description

Per-message binding commitment: HMAC-SHA256(frankKey, plaintext). Selective disclosure — the frankKey is fresh per message, so revealing one message’s key/commitment reveals nothing else.