32 releases

Uses new Rust 2021

0.8.0 Jun 30, 2022
0.7.0-beta.5 May 26, 2022
0.7.0-alpha.5 Mar 31, 2022
0.5.11 Aug 28, 2021
0.5.2 Jul 4, 2021

#1040 in Magic Beans

Download history 1146/week @ 2022-06-03 1717/week @ 2022-06-10 4331/week @ 2022-06-17 1054/week @ 2022-06-24 2683/week @ 2022-07-01 1837/week @ 2022-07-08 1039/week @ 2022-07-15 654/week @ 2022-07-22 646/week @ 2022-07-29 193/week @ 2022-08-05 181/week @ 2022-08-12 243/week @ 2022-08-19 319/week @ 2022-08-26 315/week @ 2022-09-02 694/week @ 2022-09-09 245/week @ 2022-09-16

1,600 downloads per month
Used in 32 crates (15 directly)

Apache-2.0

360KB
7.5K SLoC

Client-side-validation commit-verify library

Build Tests Lints codecov

crates.io Docs unsafe forbidden Apache-2 licensed

This is an implementation of [LNPBP-4] multi-commitment standard and [LNPBP-9] standard, defining to cryptographic commitment schemes used in client-side-validation. It is a part of more generic client_side_validation library covering other client-side-validation standards.

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.

Documentation

Detailed developer & API documentation for the library can be accessed at https://docs.rs/commit_verify/

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

Usage

To use the library, you just need to reference a latest version, in [dependencies] section of your project Cargo.toml.

commit_verify = "1"

If you are using other client-side-validation libraries, consider importing just a single client_side_validation library which re-exports all of them, including the current one.

The library has just a two feature flags, both of which are not used by default:

  • rand, providing support for generating random 32-byte sequences of Slice32 type, used in many LNP/BP applications (for instance as hash-lock preimages or during LNPBP-4 multi-commitments)
  • serde, providing support for data structure serialization with serde across the library

Contributing

Contribution guidelines can be found in CONTRIBUTING

Licensing

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

Dependencies

~9.5MB
~121K SLoC