ProvidesOutputs

Trait ProvidesOutputs 

Source
pub trait ProvidesOutputs: Sync {
    // Required methods
    fn output_indexes(
        &self,
        hash: [u8; 32],
    ) -> impl Send + Future<Output = Result<Vec<u64>, InterfaceError>>;
    fn ringct_outputs(
        &self,
        indexes: &[u64],
    ) -> impl Send + Future<Output = Result<Vec<RingCtOutputInformation>, InterfaceError>>;
}
Expand description

Provides information about outputs.

Required Methods§

Source

fn output_indexes( &self, hash: [u8; 32], ) -> impl Send + Future<Output = Result<Vec<u64>, InterfaceError>>

Get the indexes for this transaction’s outputs on the blockchain.

No validation is performed.

Source

fn ringct_outputs( &self, indexes: &[u64], ) -> impl Send + Future<Output = Result<Vec<RingCtOutputInformation>, InterfaceError>>

Get the specified outputs from the RingCT (zero-amount) pool.

No validation of the outputs is performed other than confirming the correct amount is returned.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§