6 releases (breaking)

0.6.0 Jan 27, 2021
0.5.0 Jan 5, 2021
0.4.0 Mar 16, 2020
0.3.0 Oct 1, 2019
0.1.0 Aug 12, 2019

#77 in #parity

Download history 17/week @ 2023-10-28 13/week @ 2023-11-04 9/week @ 2023-11-11 7/week @ 2023-11-18 21/week @ 2023-11-25 21/week @ 2023-12-02 4/week @ 2023-12-09 13/week @ 2023-12-16 16/week @ 2023-12-23 3/week @ 2023-12-30 4/week @ 2024-01-06 6/week @ 2024-01-13 15/week @ 2024-01-20 25/week @ 2024-01-27 9/week @ 2024-02-03 25/week @ 2024-02-10

75 downloads per month

MIT/Apache

68KB
1.5K SLoC

Contract address

Provides a function to create an ethereum contract address.

Examples

Create an ethereum address from sender and nonce.

use contract_address::{
	Address, U256, ContractAddress
};
use std::str::FromStr;

let sender = Address::from_str("0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6").unwrap();
let contract_address = ContractAddress::from_sender_and_nonce(&sender, &U256::zero());

Dependencies

~530KB