diff options
| author | obscuren <geffobscura@gmail.com> | 2015-03-21 21:36:20 +0800 |
|---|---|---|
| committer | obscuren <geffobscura@gmail.com> | 2015-03-21 21:36:20 +0800 |
| commit | 06697775d1edc3263a7915cee02a94bea488494c (patch) | |
| tree | 1d39f205327ee47115a7fe2947ccd5a4ba7a4073 /crypto | |
| parent | abce6804a085087770be587e039fd4669d5eac26 (diff) | |
| parent | 069c87b960c48864dc4f1b9086adf582e1dc88a9 (diff) | |
| download | go-tangerine-06697775d1edc3263a7915cee02a94bea488494c.tar go-tangerine-06697775d1edc3263a7915cee02a94bea488494c.tar.gz go-tangerine-06697775d1edc3263a7915cee02a94bea488494c.tar.bz2 go-tangerine-06697775d1edc3263a7915cee02a94bea488494c.tar.lz go-tangerine-06697775d1edc3263a7915cee02a94bea488494c.tar.xz go-tangerine-06697775d1edc3263a7915cee02a94bea488494c.tar.zst go-tangerine-06697775d1edc3263a7915cee02a94bea488494c.zip | |
Merge branch 'conversion' of github.com-obscure:ethereum/go-ethereum into conversion
Diffstat (limited to 'crypto')
| -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) -} |
