[][src]Trait zebra_chain::serialization::ZcashDeserialize

pub trait ZcashDeserialize: Sized {
    fn zcash_deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>;
}

Consensus-critical serialization for Zcash.

This trait provides a generic deserialization for consensus-critical formats, such as network messages, transactions, blocks, etc. It is intended for use only in consensus-critical contexts; in other contexts, such as internal storage, it would be preferable to use Serde.

Required methods

fn zcash_deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>

Try to read self from the given reader.

This function has a zcash_ prefix to alert the reader that the serialization in use is consensus-critical serialization, rather than some other kind of serialization.

Loading content...

Implementations on Foreign Types

impl ZcashDeserialize for PublicKey[src]

impl<T: ZcashDeserialize> ZcashDeserialize for Vec<T>[src]

impl<P: ZkSnarkProof> ZcashDeserialize for Option<JoinSplitData<P>>[src]

impl<T> ZcashDeserialize for Arc<T> where
    T: ZcashDeserialize
[src]

Loading content...

Implementors

impl ZcashDeserialize for TransparentAddress[src]

impl ZcashDeserialize for Transaction[src]

impl ZcashDeserialize for TransparentInput[src]

impl ZcashDeserialize for LockTime[src]

impl ZcashDeserialize for SproutShieldedAddress[src]

impl ZcashDeserialize for Block[src]

impl ZcashDeserialize for BlockHeader[src]

impl ZcashDeserialize for BlockHeaderHash[src]

impl ZcashDeserialize for EquihashSolution[src]

impl ZcashDeserialize for IncomingViewingKey[src]

impl ZcashDeserialize for SpendingKey[src]

impl ZcashDeserialize for SaplingNoteCommitmentTree[src]

impl ZcashDeserialize for zebra_chain::notes::sapling::EncryptedCiphertext[src]

impl ZcashDeserialize for OutCiphertext[src]

impl ZcashDeserialize for zebra_chain::notes::sprout::EncryptedCiphertext[src]

impl ZcashDeserialize for zebra_chain::nullifier::sapling::Nullifier[src]

impl ZcashDeserialize for zebra_chain::nullifier::sprout::Nullifier[src]

impl ZcashDeserialize for Bctv14Proof[src]

impl ZcashDeserialize for Groth16Proof[src]

impl ZcashDeserialize for OutPoint[src]

impl ZcashDeserialize for Output[src]

impl ZcashDeserialize for Spend[src]

impl ZcashDeserialize for TransparentOutput[src]

impl ZcashDeserialize for MAC[src]

impl ZcashDeserialize for Script[src]

impl<P: ZkSnarkProof> ZcashDeserialize for JoinSplit<P>[src]

Loading content...