Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

TransactionEncoderImpl

Implementation of the Bitcoin transaction encoder trait.

Provides concrete implementations for all Bitcoin transaction encoding operations, including support for both legacy and SegWit transaction formats.

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl

pub impl TransactionEncoderImpl of TransactionEncoderTrait;

Impl functions

new

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::new

fn new() -> BTCEncoder

encode_transaction

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::encode_transaction

fn encode_transaction(ref self: BTCEncoder, transaction: BitcoinTransaction) -> ByteArray

encode_input

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::encode_input

fn encode_input(ref self: BTCEncoder, input: TransactionInput)

encode_output

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::encode_output

fn encode_output(ref self: BTCEncoder, output: TransactionOutput)

encode_witness

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::encode_witness

fn encode_witness(ref self: BTCEncoder, witness: TransactionWitness)

write_compact_size

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::write_compact_size

fn write_compact_size(ref self: BTCEncoder, value: u64)

write_u8

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::write_u8

fn write_u8(ref self: BTCEncoder, value: u8)

write_u32_le

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::write_u32_le

fn write_u32_le(ref self: BTCEncoder, value: u32)

write_u64_le

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::write_u64_le

fn write_u64_le(ref self: BTCEncoder, value: u64)

write_bytes

Fully qualified path: alexandria_btc::encoder::TransactionEncoderImpl::write_bytes

fn write_bytes(ref self: BTCEncoder, bytes: ByteArray)