pub fn commit_field(salt_hex: &str, value: &Value) -> Result<String, CanonError>
v0 reference commitment: sha256(salt_bytes || 0x7c || JCS(value)).
sha256(salt_bytes || 0x7c || JCS(value))
salt_hex is the hex-encoded random salt. The delimiter 0x7c is |.
salt_hex
0x7c
|