diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-05 19:59:17 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-05 19:59:17 +0800 |
commit | e171bf74f8b6d15c2ae51e259d703ee5b729a298 (patch) | |
tree | b7924c1c57d69d433cb8c6645d0b2e57743daeee /core/types/transaction.go | |
parent | bbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff) | |
download | go-tangerine-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.gz go-tangerine-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.zst go-tangerine-e171bf74f8b6d15c2ae51e259d703ee5b729a298.zip |
core/types: remove redundant SignECDSA wrappers, rename to SignTx
Diffstat (limited to 'core/types/transaction.go')
-rw-r--r-- | core/types/transaction.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go index 87b54ab30..e610671d3 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -18,7 +18,6 @@ package types import ( "container/heap" - "crypto/ecdsa" "encoding/json" "errors" "fmt" @@ -293,14 +292,6 @@ func (tx *Transaction) AsMessage(s Signer) (Message, error) { return msg, err } -// SignECDSA signs the transaction using the given signer and private key -// -// XXX This only makes for a nice API: NewTx(...).SignECDSA(signer, prv). Should -// we keep this? -func (tx *Transaction) SignECDSA(signer Signer, prv *ecdsa.PrivateKey) (*Transaction, error) { - return signer.SignECDSA(tx, prv) -} - // WithSignature returns a new transaction with the given signature. // This signature needs to be formatted as described in the yellow paper (v+27). func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error) { |