Skip to main content

commit

Function commit 

Source
pub fn commit(secret: &[u8], salt: &[u8; 32]) -> Vec<u8> 
Expand description

The Envelope. Locks a secret without revealing it.

Returns a 32-byte commitment. Compare with open output using ==.