Function akd::client::key_history_verify

source ·
pub fn key_history_verify<H: Hasher>(
    vrf_pk: &VRFPublicKey,
    root_hash: H::Digest,
    current_epoch: u64,
    akd_key: AkdLabel,
    proof: HistoryProof<H>,
    allow_tombstones: bool
) -> Result<Vec<bool>, AkdError>
Expand description

Verifies a key history proof, given the corresponding sequence of hashes. Returns a vector of whether the validity of a hash could be verified. When false, the value <=> hash validity at the position could not be verified because the value has been removed (“tombstoned”) from the storage layer.