pub trait MerkleProofSerializer {
    fn serialize<T: Hasher>(proof: &MerkleProof<T>) -> Vec<u8>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; fn deserialize<T: Hasher>(bytes: &[u8]) -> Result<MerkleProof<T>, Error>; }
Expand description

Trait representing a Merkle proof serializer. Used in MerkleProof::serialize and MerkleProof::deserialize.

The library provides some built-in implementations of this trait - check proof_serializers module.

Required Methods

Serialize data from MerkleProof into a binary

Deserialize data produced by MerkleProofSerializer::serialize back into MerkleProof

Implementors