aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/key.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-15 03:34:30 +0800
committerobscuren <geffobscura@gmail.com>2014-05-15 03:34:30 +0800
commit6efdd21633c1d21f36080754a89ad82c0c244128 (patch)
tree873da7787044997e5590d35e32076ecb7a21dae4 /ethutil/key.go
parent283f4d8eb3e223f89fd613767e1c6c318ac2bb75 (diff)
parentad4ffdc9474aca48ab1d3d361797398f795a6d31 (diff)
downloaddexon-6efdd21633c1d21f36080754a89ad82c0c244128.tar
dexon-6efdd21633c1d21f36080754a89ad82c0c244128.tar.gz
dexon-6efdd21633c1d21f36080754a89ad82c0c244128.tar.bz2
dexon-6efdd21633c1d21f36080754a89ad82c0c244128.tar.lz
dexon-6efdd21633c1d21f36080754a89ad82c0c244128.tar.xz
dexon-6efdd21633c1d21f36080754a89ad82c0c244128.tar.zst
dexon-6efdd21633c1d21f36080754a89ad82c0c244128.zip
Merge branch 'release/poc5-rc6'
Diffstat (limited to 'ethutil/key.go')
-rw-r--r--ethutil/key.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/ethutil/key.go b/ethutil/key.go
deleted file mode 100644
index ec195f213..000000000
--- a/ethutil/key.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package ethutil
-
-type Key struct {
- PrivateKey []byte
- PublicKey []byte
-}
-
-func NewKeyFromBytes(data []byte) *Key {
- val := NewValueFromBytes(data)
- return &Key{val.Get(0).Bytes(), val.Get(1).Bytes()}
-}
-
-func (k *Key) Address() []byte {
- return Sha3Bin(k.PublicKey[1:])[12:]
-}
-
-func (k *Key) RlpEncode() []byte {
- return EmptyValue().Append(k.PrivateKey).Append(k.PublicKey).Encode()
-}