Trait sapio_base::util::CTVHash[][src]

pub trait CTVHash {
    fn get_ctv_hash(&self, input_index: u32) -> Hash;
fn total_amount(&self) -> Amount; }

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

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

Uses BIP-119 Logic to compute a CTV Hash

fn total_amount(&self) -> Amount[src]

Gets the total amount a transaction creates in outputs.

Loading content...

Implementations on Foreign Types

impl CTVHash for Transaction[src]

Loading content...


Loading content...