3 releases

0.1.2 Oct 16, 2020
0.1.1 Mar 5, 2019
0.1.0 Nov 27, 2018

#12 in #keccak256

Download history 148/week @ 2024-03-24 151/week @ 2024-03-31 70/week @ 2024-04-07 81/week @ 2024-04-14 81/week @ 2024-04-21 91/week @ 2024-04-28 104/week @ 2024-05-05 98/week @ 2024-05-12 90/week @ 2024-05-19 93/week @ 2024-05-26 81/week @ 2024-06-02 62/week @ 2024-06-09 69/week @ 2024-06-16 80/week @ 2024-06-23 35/week @ 2024-06-30 88/week @ 2024-07-07

280 downloads per month
Used in 6 crates

MIT license

5KB
60 lines

eth_checksum

Ethereum address checksum library and CLI in Rust

License Build status Crates.io

Install

cargo install eth_checksum

Getting started

Using library:

extern crate eth_checksum;

fn main() {
    let addr = "0xe0fc04fa2d34a66b779fd5cee748268032a146c0";
    let checksummed = eth_checksum::checksum(&addr);

    println!("{}", checksummed);
    // 0xe0FC04FA2d34a66B779fd5CEe748268032a146c0
}

CLI

$ eth_checksum {address}

Example:

$ eth_checksum 0xe0fc04fa2d34a66b779fd5cee748268032a146c0

0xe0FC04FA2d34a66B779fd5CEe748268032a146c0

Another Example:

$ eth_checksum 0xE0FC04FA2D34A66B779FD5CEE748268032A146C0

0xe0FC04FA2d34a66B779fd5CEe748268032a146c0

Test

make test

License

MIT

Dependencies

~4MB
~50K SLoC