Trait CTVHash

Source
pub trait CTVHash {
    // Required methods
    fn get_ctv_hash(&self, input_index: u32) -> Hash;
    fn total_amount(&self) -> Amount;
}
Expand description

Any type which can generate a CTVHash. Allows some decoupling in the future if some types will not be literal transactions. TODO: Rename to something like Transaction Extension Features

Required Methods§

Source

fn get_ctv_hash(&self, input_index: u32) -> Hash

Uses BIP-119 Logic to compute a CTV Hash

Source

fn total_amount(&self) -> Amount

Gets the total amount a transaction creates in outputs.

Implementations on Foreign Types§

Source§

impl CTVHash for Transaction

Source§

fn get_ctv_hash(&self, input_index: u32) -> Hash

Source§

fn total_amount(&self) -> Amount

Implementors§