3 releases

0.1.2 Nov 15, 2024
0.1.1 Nov 8, 2024
0.1.0 May 21, 2024

#831 in Magic Beans

Download history 26237/week @ 2024-08-06 31646/week @ 2024-08-13 22237/week @ 2024-08-20 31401/week @ 2024-08-27 34003/week @ 2024-09-03 28594/week @ 2024-09-10 28299/week @ 2024-09-17 28049/week @ 2024-09-24 32129/week @ 2024-10-01 30844/week @ 2024-10-08 33825/week @ 2024-10-15 32207/week @ 2024-10-22 28606/week @ 2024-10-29 38585/week @ 2024-11-05 30365/week @ 2024-11-12 22199/week @ 2024-11-19

126,125 downloads per month
Used in 11 crates (2 directly)

MIT/Apache

565KB
1.5K SLoC

Merkleized metadata

This crate provides the merkleization of frame_metadata as described in RFC78.

License

Licensed under either of

at your option.

License: MIT OR Apache-2.0


lib.rs:

Merkleized metadata

This crate provides the merkleization of frame_metadata as described in RFC78.

It exports the following main functions:

  • generate_metadata_digest: This generates the MetadataDigest for the given metadata. The hash of this digest is what is called the "metadata hash" in the RFC.

  • generate_proof_for_extrinsic: This generates a proof that contains all the types required for decoding the given extrinsic.

  • generate_proof_for_extrinsic_parts: Similar to the previous one, but doesn't require the full extrinsic to be passed. However, this may increases the proof size, see the documentation of the function for more information.

These functions are the main entry point providing all the functionality expected from this crate. The crate itself is by default no_std compatible.

Dependencies

~5MB
~104K SLoC