Library handling BTC-Relay and Bitcoin specific data types and provides parsing and verification functionality.
address.rs
: Bitcoin address typeserror.rs
: Associated module errorsformatter.rs
: Type serializationmerkle.rs
: Verification of merkle proofsparser.rs
: Type deserializationtypes.rs
: BTC-Relay / Bitcoin data modelutils.rs
: Bitcoin-specific util functions
Run cargo build
from the root folder of this directory.
Run cargo test
from the root folder of this directory.
To add this library to your crate, simply include the following in your crate's Cargo.toml
file:
[dependencies.bitcoin]
default_features = false
git = '../creates/bitcoin'
Update your crate's std
feature to include this pallet:
std = [
# --snip--
'bitcoin/std',
]
You can view the reference docs for this pallet by running:
cargo doc --open