Bargad v1.0.1 Bargad.Merkle View Source
Link to this section Summary
Link to this section Functions
Link to this function
build(tree, data)
View Source
build(Bargad.Types.tree(), Bargad.Types.values()) :: Bargad.Types.tree()
build(Bargad.Types.tree(), pos_integer()) :: Bargad.Types.audit_proof()
build(Bargad.Types.tree(), pos_integer()) :: Bargad.Types.audit_proof()
Link to this function
consistency_proof(tree, m)
View Source
consistency_proof(Bargad.Types.tree(), pos_integer()) :: Bargad.Types.consistency_proof()
Link to this function
insert(tree, x)
View Source
insert(Bargad.Types.tree(), binary()) :: Bargad.Types.tree()
insert(Bargad.Types.tree(), binary()) :: Bargad.Types.tree()
Link to this function
new(tree_type, tree_name, hash_function, backend)
View Source
new( Bargad.Types.tree_type(), binary(), Bargad.Types.hash_algorithm(), Bargad.Types.backend() ) :: Bargad.Types.tree()
Link to this function
verify_audit_proof(tree, proof)
View Source
verify_audit_proof(Bargad.Types.tree(), Bargad.Types.audit_proof()) :: boolean()
Link to this function
verify_consistency_proof(tree, proof, old_root_hash)
View Source
verify_consistency_proof( Bargad.Types.tree(), Bargad.Types.consistency_proof(), binary() ) :: binary()