#webb #protocol #blockchain #proposals

no-std webb-proposals

Webb Protocol Proposals Specification & Implementation (part of webb-rs SDK)

9 releases

Uses new Rust 2021

new 0.3.0 May 13, 2022
0.2.5 Apr 25, 2022
0.2.1 Mar 31, 2022
0.1.1 Mar 10, 2022

#253 in Encoding

Download history 12/week @ 2022-03-01 26/week @ 2022-03-08 231/week @ 2022-03-15 289/week @ 2022-03-22 282/week @ 2022-03-29 116/week @ 2022-04-05 104/week @ 2022-04-12 270/week @ 2022-04-19 146/week @ 2022-04-26 125/week @ 2022-05-03 227/week @ 2022-05-10

779 downloads per month

Apache-2.0

120KB
3K SLoC

Webb-rs

The Webb Core SDK for Rust
⚠️ Beta Software ⚠️


Downloading metadata from a Substrate node

Use the subxt-cli tool to download the metadata for your target runtime from a node.

  1. Install:
cargo install subxt-cli
  1. To Save the metadata of protocol-substrate: Run the release build of the protocol-substrate node, then on another terminal run:
subxt metadata -f bytes > ./metadata/protocol-substrate-runtime.scale
  1. To Save the metadata of dkg: Run the release build of the dkg node, then on another terminal run:
subxt metadata -f bytes > ./metadata/dkg-runtime.scale

Same goes for any future runtimes.

Note: This defaults to querying the metadata of a locally running node on the default http://localhost:9933/. If querying a different node then the metadata command accepts a --url argument.

  1. Generating the rust code from the metadata:
cargo build --features generate-substrate

Tip: See the build.rs file to see how everything is being generated.

Generating EVM Contracts

  1. Update any contracts inside the contracts directory.
  2. Run
cargo build --features generate-contracts

Tip: See the build.rs file to see how everything is being generated.

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? take a look at some of these issues:

License

Licensed under Apache License v2.0.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache license, shall be licensed as above, without any additional terms or conditions.

Dependencies

~100–540KB
~11K SLoC