tetsy-contract-address

Crates.iotetsy-contract-address
lib.rstetsy-contract-address
version0.6.1
sourcesrc
created_at2021-02-18 13:08:53.587824
updated_at2021-06-08 02:36:31.790057
descriptionA utility crate to create a Vapory Contract Address
homepagehttps://github.com/tetcoin/tetsy-common
repositoryhttps://github.com/tetcoin/tetsy-common
max_upload_size
id357039
size7,000
Marlon Hanks (marlonhanks)

documentation

https://docs.rs/tetsy-contract-address/

README

Contract address

Provides a function to create a vapory contract address.

Examples

Create a vapory address from sender and nonce.

use tetsy_contract_address::{
	Address, U256, TetsyContractAddress
};
use std::str::FromStr;

let sender = Address::from_str("0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6").unwrap();
let tetsy_contract_address = TetsyContractAddress::from_sender_and_nonce(&sender, &U256::zero());
Commit count: 1570

cargo fmt