mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 19:56:44 +00:00
Update transaction_signing.go
This commit is contained in:
parent
d0af257aa2
commit
405c2f9943
1 changed files with 0 additions and 10 deletions
|
|
@ -392,21 +392,11 @@ func (s EIP155Signer) Hash(tx *Transaction) common.Hash {
|
|||
// replay-protected.
|
||||
type HomesteadSigner struct{ FrontierSigner }
|
||||
|
||||
func (hs HomesteadSigner) ChainID() *big.Int {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (hs HomesteadSigner) Equal(s2 Signer) bool {
|
||||
_, ok := s2.(HomesteadSigner)
|
||||
return ok
|
||||
}
|
||||
|
||||
// SignatureValues returns signature values. This signature
|
||||
// needs to be in the [R || S || V] format where V is 0 or 1.
|
||||
func (hs HomesteadSigner) SignatureValues(tx *Transaction, sig []byte) (r, s, v *big.Int, err error) {
|
||||
return hs.FrontierSigner.SignatureValues(tx, sig)
|
||||
}
|
||||
|
||||
func (hs HomesteadSigner) Sender(tx *Transaction) (common.Address, error) {
|
||||
if tx.Type() != LegacyTxType {
|
||||
return common.Address{}, ErrTxTypeNotSupported
|
||||
|
|
|
|||
Loading…
Reference in a new issue