diff options
author | zelig <viktor.tron@gmail.com> | 2014-06-29 23:08:33 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-06-29 23:08:33 +0800 |
commit | e3b911652dfba1475001137ba8b3687b9fec5331 (patch) | |
tree | ebc5d9088746338bbe3fb91703de3c5895a7833b /ethutil | |
parent | 5e50b50dc379ed1db48912538034414ff94f6531 (diff) | |
download | dexon-e3b911652dfba1475001137ba8b3687b9fec5331.tar dexon-e3b911652dfba1475001137ba8b3687b9fec5331.tar.gz dexon-e3b911652dfba1475001137ba8b3687b9fec5331.tar.bz2 dexon-e3b911652dfba1475001137ba8b3687b9fec5331.tar.lz dexon-e3b911652dfba1475001137ba8b3687b9fec5331.tar.xz dexon-e3b911652dfba1475001137ba8b3687b9fec5331.tar.zst dexon-e3b911652dfba1475001137ba8b3687b9fec5331.zip |
move CreateAddress from ethutil/common to ethcrypto
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/common.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ethutil/common.go b/ethutil/common.go index f63ba5d83..6d88a1ed2 100644 --- a/ethutil/common.go +++ b/ethutil/common.go @@ -52,10 +52,3 @@ var ( Big32 = big.NewInt(32) Big256 = big.NewInt(0xff) ) - -// Creates an ethereum address given the bytes and the nonce -func CreateAddress(b []byte, nonce *big.Int) []byte { - addrBytes := append(b, nonce.Bytes()...) - - return Sha3Bin(addrBytes)[12:] -} |