Module akd::crypto

source ·
Expand description

Functions for performing the core cryptographic operations for AKD

Functions

Used by the server to produce a commitment for an AkdLabel, version, and AkdValue
Computes the parent hash from the children hashes and labels
Given the top-level hash, compute the “actual” root hash that is published by the directory maintainer
AZKS value corresponding to an empty node
The value stored in the root node upon initialization, with no children
Used by the server to produce a commitment nonce for an AkdLabel, version, and AkdValue. Computes nonce = H(commitment key || label)
Hash a commit and epoch together to get the leaf’s hash value
Similar to commit_fresh_value, but used for stale values.