mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +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.
|
// replay-protected.
|
||||||
type HomesteadSigner struct{ FrontierSigner }
|
type HomesteadSigner struct{ FrontierSigner }
|
||||||
|
|
||||||
func (hs HomesteadSigner) ChainID() *big.Int {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (hs HomesteadSigner) Equal(s2 Signer) bool {
|
func (hs HomesteadSigner) Equal(s2 Signer) bool {
|
||||||
_, ok := s2.(HomesteadSigner)
|
_, ok := s2.(HomesteadSigner)
|
||||||
return ok
|
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) {
|
func (hs HomesteadSigner) Sender(tx *Transaction) (common.Address, error) {
|
||||||
if tx.Type() != LegacyTxType {
|
if tx.Type() != LegacyTxType {
|
||||||
return common.Address{}, ErrTxTypeNotSupported
|
return common.Address{}, ErrTxTypeNotSupported
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue