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§
Sourcefn get_ctv_hash(&self, input_index: u32) -> Hash
fn get_ctv_hash(&self, input_index: u32) -> Hash
Uses BIP-119 Logic to compute a CTV Hash
Sourcefn total_amount(&self) -> Amount
fn total_amount(&self) -> Amount
Gets the total amount a transaction creates in outputs.