zebra_chain::sapling::shielded_data

Trait AnchorVariant

source
pub trait AnchorVariant {
    type Shared: Clone + Debug + DeserializeOwned + Serialize + Eq + PartialEq;
    type PerSpend: Clone + Debug + DeserializeOwned + Serialize + Eq + PartialEq;
}
Expand description

A type trait to handle structural differences between V4 and V5 Sapling Transaction anchors.

In Transaction V4, anchors are per-Spend. In Transaction V5, there is a single transaction anchor for all Spends in a transaction.

Required Associated Types§

source

type Shared: Clone + Debug + DeserializeOwned + Serialize + Eq + PartialEq

The type of the shared anchor.

source

type PerSpend: Clone + Debug + DeserializeOwned + Serialize + Eq + PartialEq

The type of the per-spend anchor.

Implementors§