[][src]Trait exonum_btc_anchoring::blockchain::transactions::BtcAnchoringInterface

pub trait BtcAnchoringInterface<Ctx> {
    type Output;
    fn sign_input(&self, context: Ctx, arg: SignInput) -> Self::Output;
fn add_funds(&self, context: Ctx, arg: AddFunds) -> Self::Output; }

Exonum BTC anchoring transactions.

Associated Types

type Output

Value output by the interface.

Loading content...

Required methods

fn sign_input(&self, context: Ctx, arg: SignInput) -> Self::Output

Signs a single input of the anchoring transaction proposal.

fn add_funds(&self, context: Ctx, arg: AddFunds) -> Self::Output

Add funds via suitable funding transaction.

Bitcoin transaction should have output with value to the current anchoring address. The transaction will be applied if 2/3+1 anchoring nodes sent it.

Loading content...

Trait Implementations

impl<'a> Interface<'a> for dyn BtcAnchoringInterface<ExecutionContext<'a>, Output = Result<(), ExecutionError>>[src]

Implementors

impl<'_> BtcAnchoringInterface<ExecutionContext<'_>> for BtcAnchoringService[src]

type Output = Result<(), ExecutionError>

impl<Ctx, T: GenericCall<Ctx>> BtcAnchoringInterface<Ctx> for T[src]

type Output = <T as GenericCall<Ctx>>::Output

Loading content...