Skip to content

Commit

Permalink
Merge branch 'teghnet-upgrades'
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Jul 4, 2022
2 parents ca8871b + af742b3 commit 9895066
Show file tree
Hide file tree
Showing 75 changed files with 9,563 additions and 308 deletions.
17 changes: 12 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
module github.com/miguelmota/go-ethereum-hdwallet

go 1.12
go 1.18

require (
github.com/allegro/bigcache v1.2.1 // indirect
github.com/btcsuite/btcd v0.21.0-beta
github.com/btcsuite/btcd v0.22.1
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
github.com/davecgh/go-spew v1.1.1
github.com/ethereum/go-ethereum v1.10.4
github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef
github.com/ethereum/go-ethereum v1.10.17
github.com/tyler-smith/go-bip39 v1.1.0
)

require (
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
golang.org/x/crypto v0.0.0-20220518034528-6f7dac969898 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
)
171 changes: 100 additions & 71 deletions go.sum

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions hdwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil/hdkeychain"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
Expand Down Expand Up @@ -280,8 +280,9 @@ func (w *Wallet) SignTx(account accounts.Account, tx *types.Transaction, chainID
return nil, err
}

signer := types.HomesteadSigner{}
// Sign the transaction and verify the sender to avoid hardware fault surprises
signer := types.LatestSignerForChainID(chainID)

// Sign the transaction and verify the sender to avoid hardware fault surprises
signedTx, err := types.SignTx(tx, signer, privateKey)
if err != nil {
return nil, err
Expand Down
12 changes: 6 additions & 6 deletions vendor/github.com/btcsuite/btcd/btcec/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/btcec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 20 additions & 1 deletion vendor/github.com/btcsuite/btcd/btcec/signature.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/v2/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/v2/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/v2/btcec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/v2/ciphering.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/v2/curve.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/v2/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions vendor/github.com/btcsuite/btcd/btcec/v2/ecdsa/error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9895066

Please sign in to comment.