Crate txoo

Crate txoo 

Source
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
OracleSetup
Basic information about an oracle
SignedAttestation
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