verify_multi_proof_update

Function verify_multi_proof_update 

Source
pub fn verify_multi_proof_update<H: NodeHasher>(
    proof: &VerifiedMultiProof,
    ops: Vec<(KeyPath, Option<ValueHash>)>,
) -> Result<Node, MultiVerifyUpdateError>
Expand description

Verify an update operation against a verified multi-proof. This follows a similar algorithm to the multi-item update, but without altering any backing storage.

ops should contain all updates to be processed. It should be sorted (ascending) by keypath, without duplicates.

All provided operations should have a key-path which is in scope for the multi proof.

Returns the root of the trie obtained after application of the given updates in the paths vector. In case the paths is empty, prev_root is returned.