#commitment #proc-macro #commit

macro commit_encoding_derive

Commitment encoding derivation macros

13 releases

new 0.12.0-beta.6 May 1, 2025
0.12.0-beta.4 Dec 23, 2024
0.12.0-beta.1 Nov 29, 2024
0.11.1-alpha.2 May 1, 2025
0.10.0 May 14, 2023

#1986 in Encoding

Download history 1241/week @ 2025-01-09 503/week @ 2025-01-16 1283/week @ 2025-01-23 771/week @ 2025-01-30 380/week @ 2025-02-06 2486/week @ 2025-02-13 515/week @ 2025-02-20 1620/week @ 2025-02-27 331/week @ 2025-03-06 599/week @ 2025-03-13 728/week @ 2025-03-20 481/week @ 2025-03-27 362/week @ 2025-04-03 1260/week @ 2025-04-10 617/week @ 2025-04-17 661/week @ 2025-04-24

3,224 downloads per month
Used in 37 crates (via commit_verify)

Apache-2.0

13KB
135 lines

Commitment encoding derivation macros

Build Tests Lints codecov

Docs unsafe forbidden Apache-2 licensed

Derivation macros for strict encoding. To learn more about the strict encoding please check strict_encoding crate.

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/strict_encoding_derive/

Usage

To use the library, you need to reference a latest version of the commit_encode_derive crate in[dependencies] section of your project Cargo.toml. This crate includes derivation macros from the present library by default.

commit_encode_derive = "0.10"

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.

Library exports derivation macros #[derive(CommitEncode)].

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

~2MB
~52K SLoC