From 74f1ab59c658e9e1de074cb5d5bd1b774d5e6314 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Tue, 3 Sep 2024 09:39:21 -0700 Subject: [PATCH] chore: use btcsuite/btcd/btcec/v2 in x/crosschain/types (#2804) --- x/crosschain/types/tx_body_verification.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/crosschain/types/tx_body_verification.go b/x/crosschain/types/tx_body_verification.go index e0b62e83dc..6fdf47e834 100644 --- a/x/crosschain/types/tx_body_verification.go +++ b/x/crosschain/types/tx_body_verification.go @@ -4,8 +4,8 @@ import ( "fmt" "math/big" - "github.com/btcsuite/btcd/btcec" - "github.com/btcsuite/btcutil" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcutil" eth "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" @@ -136,7 +136,7 @@ func verifyOutboundBodyBTC(msg MsgAddOutboundTracker, txBytes []byte, tssBtc str if len(vin.Witness) != 2 { // outTx is SegWit transaction for now return fmt.Errorf("not a SegWit transaction") } - pubKey, err := btcec.ParsePubKey(vin.Witness[1], btcec.S256()) + pubKey, err := btcec.ParsePubKey(vin.Witness[1]) if err != nil { return fmt.Errorf("failed to parse public key") }