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:
Michael Dance
2022-04-06 17:54:52 -06:00
committed by Rusty Russell
parent b359a24772
commit f067e8c909
10 changed files with 17 additions and 14 deletions

View File

@@ -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");
}