Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Feb 19, 2024
1 parent e1fa4c1 commit 340c128
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions command/secrets/init/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/umbracle/ethgo/wallet"

"github.com/0xPolygon/polygon-edge/bls"
"github.com/0xPolygon/polygon-edge/crypto"
"github.com/0xPolygon/polygon-edge/secrets/helper"
)

Expand Down Expand Up @@ -94,7 +94,8 @@ func Test_getResult(t *testing.T) {
// Test public key serialization
privKey, err := hex.DecodeString(sir.PrivateKey)
require.NoError(t, err)
k, err := wallet.NewWalletFromPrivKey(privKey)

k, err := crypto.NewECDSAKeyFromRawPrivECDSA(privKey)
require.NoError(t, err)

pubKey := k.Address().String()
Expand Down
4 changes: 1 addition & 3 deletions consensus/polybft/wallet/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import (
"encoding/hex"
"fmt"

"github.com/umbracle/ethgo/wallet"

"github.com/0xPolygon/polygon-edge/bls"
"github.com/0xPolygon/polygon-edge/crypto"
"github.com/0xPolygon/polygon-edge/secrets"
Expand Down Expand Up @@ -117,7 +115,7 @@ func (a *Account) GetEcdsaPrivateKey() (*ecdsa.PrivateKey, error) {
return nil, err
}

return wallet.ParsePrivateKey(ecdsaRaw)
return crypto.ParseECDSAPrivateKey(ecdsaRaw)
}

func (a Account) Address() types.Address {
Expand Down

0 comments on commit 340c128

Please sign in to comment.