diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-20 20:36:52 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-20 21:00:26 +0800 |
commit | c388e7eac0d26f4d299523fd14ec350655f66879 (patch) | |
tree | e0b50240759342f78569da97aef391629f2622c4 | |
parent | ce063e8d9c2d26dd283a43b097903628225179ea (diff) | |
download | dexon-c388e7eac0d26f4d299523fd14ec350655f66879.tar dexon-c388e7eac0d26f4d299523fd14ec350655f66879.tar.gz dexon-c388e7eac0d26f4d299523fd14ec350655f66879.tar.bz2 dexon-c388e7eac0d26f4d299523fd14ec350655f66879.tar.lz dexon-c388e7eac0d26f4d299523fd14ec350655f66879.tar.xz dexon-c388e7eac0d26f4d299523fd14ec350655f66879.tar.zst dexon-c388e7eac0d26f4d299523fd14ec350655f66879.zip |
crypto: remove use of common.Value.Encode
This seems to be the last remaining use of it.
-rw-r--r-- | crypto/keypair.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crypto/keypair.go b/crypto/keypair.go index 6702e6595..cc17328cb 100644 --- a/crypto/keypair.go +++ b/crypto/keypair.go @@ -3,8 +3,8 @@ package crypto import ( "strings" - "github.com/ethereum/go-ethereum/crypto/secp256k1" "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/crypto/secp256k1" ) type KeyPair struct { @@ -48,11 +48,3 @@ func (k *KeyPair) Mnemonic() string { func (k *KeyPair) AsStrings() (string, string, string, string) { return k.Mnemonic(), common.Bytes2Hex(k.Address()), common.Bytes2Hex(k.PrivateKey), common.Bytes2Hex(k.PublicKey) } - -func (k *KeyPair) RlpEncode() []byte { - return k.RlpValue().Encode() -} - -func (k *KeyPair) RlpValue() *common.Value { - return common.NewValue(k.PrivateKey) -} |