4 releases

0.2.1 Nov 12, 2023
0.2.0 Mar 12, 2023
0.1.1 Mar 7, 2023
0.1.0 Aug 20, 2022

#66 in #addresses

Download history 3/week @ 2024-02-15 7/week @ 2024-02-22 1/week @ 2024-02-29 7/week @ 2024-03-07 21/week @ 2024-03-14 15/week @ 2024-03-28 12/week @ 2024-04-04

52 downloads per month

MIT license

7KB
131 lines

ethereum-crypto

Basic functionality for ethereum private-public key pairs and addresses

Usage

EthereumKeypair can be constructed via private key string or generated randomly.
You can export private key with export_secret_key_as_hex_string function.
And you can get an Address([u8;20]) which has ToString trait, so to_string function would get you an ethereum address.
utils::get_address_from_public_key function is also public.

Dependencies

~7.5MB
~88K SLoC