aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/transaction.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-01-05 19:59:17 +0800
committerFelix Lange <fjl@twurst.com>2017-01-05 19:59:17 +0800
commite171bf74f8b6d15c2ae51e259d703ee5b729a298 (patch)
treeb7924c1c57d69d433cb8c6645d0b2e57743daeee /core/types/transaction.go
parentbbc4ea4ae8e8a962deae3d5693d9d4a9376eab88 (diff)
downloaddexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.gz
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.bz2
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.lz
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.xz
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.tar.zst
dexon-e171bf74f8b6d15c2ae51e259d703ee5b729a298.zip
core/types: remove redundant SignECDSA wrappers, rename to SignTx
Diffstat (limited to 'core/types/transaction.go')
-rw-r--r--core/types/transaction.go9
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) {