Module ex3_merkle::proof_serializers
source · Expand description
This module contains built-in implementations of the MerkleProofSerializer
trait.
Serializers are used in MerkleProof::serialize
and MerkleProof::deserialize
Structs
- Serializes proof data to bytes with a direct hash order - hashes are concatenated from left to right, bottom to top.
- Serializes proof data to bytes with a reverse hash order - hashes are concatenated from top to bottom, right to left.
Traits
- Trait representing a Merkle proof serializer. Used in
MerkleProof::serialize
andMerkleProof::deserialize
.