Commit c388e7ea authored by Felix Lange's avatar Felix Lange

crypto: remove use of common.Value.Encode

This seems to be the last remaining use of it.
parent ce063e8d
...@@ -3,8 +3,8 @@ package crypto ...@@ -3,8 +3,8 @@ package crypto
import ( import (
"strings" "strings"
"github.com/ethereum/go-ethereum/crypto/secp256k1"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto/secp256k1"
) )
type KeyPair struct { type KeyPair struct {
...@@ -48,11 +48,3 @@ func (k *KeyPair) Mnemonic() string { ...@@ -48,11 +48,3 @@ func (k *KeyPair) Mnemonic() string {
func (k *KeyPair) AsStrings() (string, string, string, string) { func (k *KeyPair) AsStrings() (string, string, string, string) {
return k.Mnemonic(), common.Bytes2Hex(k.Address()), common.Bytes2Hex(k.PrivateKey), common.Bytes2Hex(k.PublicKey) 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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment