Function akd_core::crypto::compute_fresh_azks_value
source · pub fn compute_fresh_azks_value(
commitment_key: &[u8],
label: &NodeLabel,
version: u64,
value: &AkdValue
) -> AzksValue
Expand description
Used by the server to produce a commitment for an AkdLabel, version, and AkdValue
nonce = H(commitment_key, label, version, i2osp_array(value)) commmitment = H(i2osp_array(value), i2osp_array(nonce))
The nonce value is used to create a hiding and binding commitment using a cryptographic hash function. Note that it is derived from the label, version, and value (even though the binding to value is somewhat optional).
Note that this commitment needs to be a hash function (random oracle) output