Crates.io | ethereum-crypto |
lib.rs | ethereum-crypto |
version | 0.2.1 |
source | src |
created_at | 2022-08-20 06:41:55.610503 |
updated_at | 2023-11-12 19:04:40.646181 |
description | Public-private key management system for Ethereum |
homepage | |
repository | https://github.com/AndoroidX/ethereum-crypto |
max_upload_size | |
id | 649066 |
size | 7,134 |
Basic functionality for ethereum private-public key pairs and addresses
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.