ppad-bolt3-0.0.1: Bitcoin transaction formats per BOLT #3
Copyright(c) 2025 Jared Tobin
LicenseMIT
MaintainerJared Tobin <jared@ppad.tech>
Safe HaskellNone
LanguageHaskell2010

Lightning.Protocol.BOLT3.Decode

Description

Parsing for BOLT #3 transactions.

Delegates to ppad-tx for transaction decoding.

Synopsis

Documentation

decode_tx :: ByteString -> Maybe Tx Source #

Decode a raw Bitcoin transaction from bytes.

Handles both legacy and SegWit transaction formats.

>>> decode_tx rawTxBytes
Just (Tx {...})