Skip to content

Commit ecf9ed9

Browse files
committed
Fix bug from #11
1 parent 6f1cb07 commit ecf9ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

signer/wallet_signer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *walletSigner) SignData(data []byte) ([]byte, error) {
3737
}
3838

3939
// derivePrivateKey derives an ECDSA private key from a mnemonic phrase and derivation path.
40-
func derivePrivateKey(mnemonic string, path accounts.DerivationPath) (*ecdsa.PrivateKey, error) {
40+
func derivePrivateKeyFromMnemonic(mnemonic string, path accounts.DerivationPath) (*ecdsa.PrivateKey, error) {
4141
// Parse the seed string into the master BIP32 key.
4242
seed, err := bip39.NewSeedWithErrorChecking(mnemonic, "")
4343
if err != nil {

0 commit comments

Comments
 (0)