Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

TransactionDecoderImpl

Implementation of the Bitcoin transaction decoder trait.

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

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl

pub impl TransactionDecoderImpl of TransactionDecoderTrait;

Impl functions

new

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::new

fn new(data: ByteArray) -> BTCDecoder

decode_transaction

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::decode_transaction

fn decode_transaction(ref self: BTCDecoder) -> BitcoinTransaction

decode_input

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::decode_input

fn decode_input(ref self: BTCDecoder) -> TransactionInput

decode_output

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::decode_output

fn decode_output(ref self: BTCDecoder) -> TransactionOutput

decode_witness

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::decode_witness

fn decode_witness(ref self: BTCDecoder) -> TransactionWitness

read_compact_size

Read Bitcoin compact size (variable length integer)

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::read_compact_size

fn read_compact_size(ref self: BTCDecoder) -> u64

read_u8

Read a single byte

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::read_u8

fn read_u8(ref self: BTCDecoder) -> u8

read_u32_le

Read 4 bytes as little-endian u32

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::read_u32_le

fn read_u32_le(ref self: BTCDecoder) -> u32

read_u64_le

Read 8 bytes as little-endian u64

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::read_u64_le

fn read_u64_le(ref self: BTCDecoder) -> u64

remaining

Check if there are enough remaining bytes to read

Fully qualified path: alexandria_btc::decoder::TransactionDecoderImpl::remaining

fn remaining(self: @BTCDecoder, offset: u32, count: u32) -> bool