1 unstable release

0.1.0 May 21, 2024

#162 in #frame

Download history 19396/week @ 2024-06-03 15501/week @ 2024-06-10 16874/week @ 2024-06-17 21128/week @ 2024-06-24 19545/week @ 2024-07-01 16539/week @ 2024-07-08 23304/week @ 2024-07-15 24972/week @ 2024-07-22 20182/week @ 2024-07-29 23676/week @ 2024-08-05 34952/week @ 2024-08-12 20717/week @ 2024-08-19 29849/week @ 2024-08-26 34723/week @ 2024-09-02 28977/week @ 2024-09-09 28197/week @ 2024-09-16

122,361 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

~5.5MB
~121K SLoC