Expand description
An oracle for the Bitcoin network that produces attestations to the chain tip and to the outputs spent in each block.
Re-exports§
pub use bitcoin;
Modules§
- filter
- A GCS filter for spent outpoints in a block
- proof
- Oracle proof that outpoints were spent or unspent in a block
- source
- Attestation source
- spv
- SPV proof that transactions are included in a block
- util
- Utilities
Structs§
- Attestation
- An attestation by the oracle to a certain chain tip and spend filter at a certain time
- Oracle
Setup - Basic information about an oracle
- Signed
Attestation - A signed attestation
Constants§
- CHECKPOINTS_
BITCOIN - Mainnet checkpoints. (height, block_hash, filter_header, block_header) Note that we start a fresh txood install from the first checkpoint, not the last one.
- CHECKPOINTS_
TESTNET - Testnet checkpoints: (height, block_hash, filter_header, block_header)
Functions§
- decode_
checkpoint - Decode a checkpoint tuple
- get_
latest_ checkpoint - Get the latest checkpoint for the given network