36 releases

0.11.0-beta.5 Mar 19, 2024
0.11.0-beta.3 Dec 30, 2023
0.11.0-beta.1 Nov 2, 2023
0.10.8 Jul 27, 2023
0.5.0 Nov 27, 2021

#1588 in Magic Beans

Download history 573/week @ 2023-12-22 387/week @ 2023-12-29 337/week @ 2024-01-05 169/week @ 2024-01-12 333/week @ 2024-01-19 432/week @ 2024-01-26 166/week @ 2024-02-02 260/week @ 2024-02-09 256/week @ 2024-02-16 926/week @ 2024-02-23 1084/week @ 2024-03-01 705/week @ 2024-03-08 612/week @ 2024-03-15 990/week @ 2024-03-22 612/week @ 2024-03-29 260/week @ 2024-04-05

2,493 downloads per month
Used in 35 crates (3 directly)

Apache-2.0

315KB
5.5K SLoC

Bitcoin protocol core library

Build Tests Lints codecov

crates.io Docs unsafe forbidden Apache-2 licensed

The library implements components necessary for working with Bitcoin consensus-level data structures and [client-side-validation] in bitcoin protocol, specifically

Client-side-validation is a paradigm for distributed computing, based on top of proof-of-publication/commitment medium layer, which may be a bitcoin blockchain or other type of distributed consensus system.

The development of the library is supported by LNP/BP Standards Association (GitHub page).

The original idea of client-side-validation was proposed by Peter Todd with its possible applications designed by Giacomo Zucco. It was shaped into the protocol design by Dr Maxim Orlovsky with an input from the community.

Minimum supported rust version for the library (MSRV) is 1.66 and 2021 rust edition.

Documentation

Detailed developer & API documentation for all libraries can be accessed at:

To learn about the technologies enabled by the library please check slides from our tech presentations and LNP/BP tech talks videos.

Usage

The repository contains rust libraries for dealing with Bitcoin consensus-level data and client-side validation.

Use library in other projects

To use libraries, you just need latest version of libraries, published to crates.io into [dependencies] section of your project Cargo.toml. Here is the full list of available libraries from this repository:

bp-consensus = "1" # Bitcoin protocol consensus crate
bp-dbc = "1" # Deterministic bitcoin commitments crate
bp-seals = "1" # Bitcoin single-use-seals crate
bp-core = "1" # Library including both of the previous crates

bp-core crate is an "umbrella" library containing all three libraries inside.

Contributing

Contribution guidelines can be found in CONTRIBUTING

More information

MSRV

This library requires minimum rust compiler version (MSRV) 1.66.0.

Policy on altcoins

Altcoins and "blockchains" other than Bitcoin blockchain/Bitcoin protocols are not supported and not planned to be supported; pull requests targeting them will be declined.

Licensing

The libraries are distributed on the terms of Apache 2.0 opensource license. See LICENCE file for the license details.

Dependencies

~13MB
~213K SLoC