mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
Changed external/libwally-core to test_build_fix
Combined with the following commit which is required to update against changed libsecp256k1 APIs: Updated deprecated function calls
This commit is contained in:
committed by
Rusty Russell
parent
b359a24772
commit
f067e8c909
@@ -218,7 +218,7 @@ static struct command_result *handle_invreq_response(struct command *cmd,
|
||||
|
||||
if (!inv->signature
|
||||
|| secp256k1_schnorrsig_verify(secp256k1_ctx, inv->signature->u8,
|
||||
sighash.u.u8, &inv->node_id->pubkey) != 1) {
|
||||
sighash.u.u8, sizeof(sighash.u.u8), &inv->node_id->pubkey) != 1) {
|
||||
badfield = "signature";
|
||||
goto badinv;
|
||||
}
|
||||
@@ -1198,11 +1198,11 @@ force_payer_secret(struct command *cmd,
|
||||
sighash_from_merkle("invoice_request", "signature", &merkle, &sha);
|
||||
|
||||
sent->invreq->signature = tal(invreq, struct bip340sig);
|
||||
if (!secp256k1_schnorrsig_sign(secp256k1_ctx,
|
||||
if (!secp256k1_schnorrsig_sign32(secp256k1_ctx,
|
||||
sent->invreq->signature->u8,
|
||||
sha.u.u8,
|
||||
&kp,
|
||||
NULL, NULL)) {
|
||||
NULL)) {
|
||||
return command_fail(cmd, LIGHTNINGD,
|
||||
"Failed to sign with payer_secret");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user