4个版本
| 0.2.1 | 2023年11月12日 |
|---|---|
| 0.2.0 | 2023年3月12日 |
| 0.1.1 | 2023年3月7日 |
| 0.1.0 | 2022年8月20日 |
#59 in #key-pair
7KB
131 行
ethereum-crypto
Ethereum私钥-公钥对和地址的基本功能
使用方法
EthereumKeypair可以通过私钥字符串或随机生成。
您可以使用export_secret_key_as_hex_string函数导出私钥。
您还可以获取一个具有ToString特质的Address([u8;20]),因此to_string函数会为您提供Ethereum地址。
utils::get_address_from_public_key函数也是公开的。
依赖项
~7.5MB
~87K SLoC