multi: bump btcec/v2 and btcutil to new versions

This commit is contained in:
Harsha Goli 2022-03-14 12:36:02 +00:00 committed by Oliver Gugger
parent d1ba70e3fa
commit 7a16e3b25d
No known key found for this signature in database
GPG key ID: 8E4256593F177720
56 changed files with 267 additions and 412 deletions

View file

@ -12,8 +12,8 @@ import (
"sync"
"time"
"github.com/btcsuite/btcd/btcec"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcutil"
"github.com/lightninglabs/aperture/lsat"
"github.com/lightninglabs/loop/loopdb"
looprpc "github.com/lightninglabs/loop/swapserverrpc"
@ -381,7 +381,7 @@ func (s *grpcSwapServerClient) NewLoopOutSwap(ctx context.Context,
copy(senderKey[:], swapResp.SenderKey)
// Validate sender key.
_, err = btcec.ParsePubKey(senderKey[:], btcec.S256())
_, err = btcec.ParsePubKey(senderKey[:])
if err != nil {
return nil, fmt.Errorf("invalid sender key: %v", err)
}
@ -441,7 +441,7 @@ func (s *grpcSwapServerClient) NewLoopInSwap(ctx context.Context,
copy(receiverKey[:], swapResp.ReceiverKey)
// Validate receiver key.
_, err = btcec.ParsePubKey(receiverKey[:], btcec.S256())
_, err = btcec.ParsePubKey(receiverKey[:])
if err != nil {
return nil, fmt.Errorf("invalid sender key: %v", err)
}