Skip to main content

commit_field

Function commit_field 

Source
pub fn commit_field(salt_hex: &str, value: &Value) -> Result<String, CanonError>
Expand description

v0 reference commitment: sha256(salt_bytes || 0x7c || JCS(value)).

salt_hex is the hex-encoded random salt. The delimiter 0x7c is |.