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

The type of the shared anchor.

The type of the per-spend anchor.

Implementors