mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 12:21:26 +02:00
multi: bump btcd version.
The new SignCompact return values had to be adopted across the code base.
This commit is contained in:
@@ -587,7 +587,7 @@ func AddInvoice(ctx context.Context, cfg *AddInvoiceConfig,
|
||||
|
||||
return ecdsa.SignCompact(
|
||||
ephemKey, chainhash.HashB(msg), true,
|
||||
)
|
||||
), nil
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
@@ -2493,10 +2493,7 @@ func (w *WalletKit) SignMessageWithAddr(_ context.Context,
|
||||
"fetched from wallet database: %w", err)
|
||||
}
|
||||
|
||||
sigBytes, err := ecdsa.SignCompact(privKey, digest, pubKey.Compressed())
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create signature: %w", err)
|
||||
}
|
||||
sigBytes := ecdsa.SignCompact(privKey, digest, pubKey.Compressed())
|
||||
|
||||
// Bitcoin signatures are base64 encoded (being compatible with
|
||||
// bitcoin-core and btcd).
|
||||
|
Reference in New Issue
Block a user