#public-key #address #mpc #wasm #web3

web3-address

Address type for web3 public keys

4 releases (2 breaking)

0.6.0 Apr 19, 2023
0.5.2 Apr 19, 2023
0.5.1 Jan 22, 2023
0.4.1 Dec 26, 2022
0.1.0 Aug 28, 2022

#31 in #mpc

Download history 139/week @ 2023-12-04 92/week @ 2023-12-11 40/week @ 2023-12-18 55/week @ 2024-01-08 158/week @ 2024-01-15 7/week @ 2024-01-22 88/week @ 2024-01-29 57/week @ 2024-02-05 7/week @ 2024-02-12 19/week @ 2024-02-19 60/week @ 2024-02-26 65/week @ 2024-03-04 7/week @ 2024-03-11 15/week @ 2024-03-18

155 downloads per month
Used in 4 crates (via sos-sdk)

MIT/Apache

10KB
192 lines

Web3 Core

Collection of crates designed for a minimal suite of functionality appropriate for creating a web3 wallet.

Design goals are first-class support for Webassembly and support for MPC using multi-party-ecdsa.

Derived from work on ethers, web3 and eth-keystore.

Development

Install the developer dependencies with yarn install and a recent version of the rust toolchain.

  • Rust 1.58.0
  • Wasm Pack 0.10.2
  • Node v16.13.2
  • Yarn 1.22.17

Tests

To run the tests first start ganache using a specific mnemonic:

make test-server

Then ensure the test MPC account has some funds:

make fund-mpc-account

Then you can run the test suite:

cargo test --all

lib.rs:

Address types to represent public keys on various blockchains.

More types will be added in the future.

Dependencies

~0.4–1.6MB
~32K SLoC