risc0-demo/deps/eth-checksum
2024-03-11 15:59:42 +01:00
..
examples update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00
src update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00
.gitignore update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00
.travis.yml update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00
Cargo.toml update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00
LICENSE update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00
Makefile update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00
README.md update Cargo.toml to remove git submodule 2024-03-11 15:59:42 +01:00

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