aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/key.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-14 19:54:40 +0800
committerobscuren <geffobscura@gmail.com>2014-05-14 19:54:40 +0800
commitf4fa0d48cb10f925908062357be965c54370cba9 (patch)
tree4b274e1a6a25fb6a468d52a2e1e67775b42d0a0f /ethutil/key.go
parent0512113bdd5cc55ae35abd442b668ab5ed7a116b (diff)
downloadgo-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.gz
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.bz2
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.lz
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.xz
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.tar.zst
go-tangerine-f4fa0d48cb10f925908062357be965c54370cba9.zip
Moved keyring to ethutil & removed old methods. Implements #20
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()
-}