pub trait BitcoinTransactionAdapter<Block: BlockT> {
// Required methods
fn extrinsic_to_bitcoin_transaction(
extrinsics: &Block::Extrinsic,
) -> Transaction;
fn bitcoin_transaction_into_extrinsic(
btc_tx: Transaction,
) -> Block::Extrinsic;
}
Expand description
Trait for converting between Substrate extrinsics and Bitcoin transactions.
Required Methods§
sourcefn extrinsic_to_bitcoin_transaction(
extrinsics: &Block::Extrinsic,
) -> Transaction
fn extrinsic_to_bitcoin_transaction( extrinsics: &Block::Extrinsic, ) -> Transaction
Converts Substrate extrinsic to Bitcoin transaction.
sourcefn bitcoin_transaction_into_extrinsic(btc_tx: Transaction) -> Block::Extrinsic
fn bitcoin_transaction_into_extrinsic(btc_tx: Transaction) -> Block::Extrinsic
Converts a Bitcoin transaction into a Substrate extrinsic.
Object Safety§
This trait is not object safe.