aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.go
diff options
context:
space:
mode:
authorRicardo Catalinas Jiménez <r@untroubled.be>2016-02-22 04:05:22 +0800
committerRicardo Catalinas Jiménez <r@untroubled.be>2016-02-22 06:46:31 +0800
commit3d971c5a34ad14b13c6cc446e2ff41156b202c9f (patch)
tree433ef57b892554a9eafae4a1f2d4e7c240e229bf /crypto/crypto.go
parent0c6665558a122bd7485fd4548801da54c520d7aa (diff)
downloaddexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar
dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.gz
dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.bz2
dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.lz
dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.xz
dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.tar.zst
dexon-3d971c5a34ad14b13c6cc446e2ff41156b202c9f.zip
crypto: Remove dead code
Diffstat (limited to 'crypto/crypto.go')
-rw-r--r--crypto/crypto.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/crypto.go b/crypto/crypto.go
index a947d84d2..f1f6affac 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -68,7 +68,6 @@ func Sha3Hash(data ...[]byte) common.Hash { return Keccak256Hash(data...) }
func CreateAddress(b common.Address, nonce uint64) common.Address {
data, _ := rlp.EncodeToBytes([]interface{}{b, nonce})
return common.BytesToAddress(Keccak256(data)[12:])
- //return Sha3(common.NewValue([]interface{}{b, nonce}).Encode())[12:]
}
func Sha256(data []byte) []byte {