Skip to main content

Module zip317

Module zip317 

Source
Expand description

Change strategies designed to implement the ZIP 317 fee rules.

Change selection in ZIP 317 requires careful handling of low-valued inputs to ensure that inputs added to a transaction do not cause fees to rise by an amount greater than their value.

Structs§

MultiOutputChangeStrategy
A change strategy that attempts to split the change value into some number of equal-sized notes as dictated by the included SplitPolicy value.
SingleOutputChangeStrategy
A change strategy that proposes change as a single output. The output pool is chosen as the most current pool that avoids unnecessary pool-crossing (with a specified fallback when the transaction has no shielded inputs). Fee calculation is delegated to the provided fee rule.

Traits§

Zip317FeeRule
An extension to the [FeeRule] trait that exposes methods required for ZIP 317 fee calculation.