Module lightning::chain[][src]

Structs and traits which allow other parts of rust-lightning to interact with the blockchain.

Modules

chaininterface

Traits and utility impls which allow other parts of rust-lightning to interact with the blockchain.

chainmonitor

Logic to connect off-chain channel management with on-chain transaction monitoring.

channelmonitor

The logic to monitor for on-chain transactions and create the relevant claim responses lives here.

keysinterface

keysinterface provides keys into rust-lightning and defines some useful enums which describe spendable on-chain outputs which the user owns and is responsible for using just as any other on-chain output which is theirs.

transaction

Types describing on-chain transactions.

Enums

AccessError

An error when accessing the chain via Access.

Traits

Access

The Access trait defines behavior for accessing chain data and state, such as blocks and UTXOs.

Filter

The Filter trait defines behavior for indicating chain activity of interest pertaining to channels.

Listen

The Listen trait is used to be notified of when blocks have been connected or disconnected from the chain.

Watch

The Watch trait defines behavior for watching on-chain activity pertaining to channels as blocks are connected and disconnected.