Skip to content

Mac monterey build fixes #5172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

mdance
Copy link
Contributor

@mdance mdance commented Apr 7, 2022

I have been working in the comments with ElementsProject/libwally-core#321 to try and compile lightning on Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64

I was able to get it to compile, I am not a c programmer so am not expecting this to make it in, but hopefully it helps someone

@rustyrussell rustyrussell added this to the v0.11 milestone Apr 10, 2022
@@ -447,7 +447,7 @@ static bool check_payer_sig(struct command *cmd,

return secp256k1_schnorrsig_verify(secp256k1_ctx,
sig->u8,
sighash.u.u8, sizeof(sighash.u.u8), &payer_key->pubkey) == 1;
sighash.u.u8, sizeof(sighash), &payer_key->pubkey) == 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it was more correct before these changes? Thought this shouldn't change anything on any platform we support...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rustyrussell that change was suggested ElementsProject/libwally-core#321 (comment) am happy to revert it out if incorrect

What is the best way for me to test?

I'm just playing around on testnet with lnurl, and a lightning addresses implementation so am not running anything mission critical, happy to be a guinea pig

@mdance
Copy link
Contributor Author

mdance commented Apr 10, 2022

I have tried compiling both versions, and I think there is a problem, been trying to test with the following and it seems like something is broken:

lightning-cli signmessage test

{
"signature": "[signature]",
"recid": "[recid]",
"zbase": "[zbase]"
}

lightning-cli checkmessage test [zbase]

{
"pubkey": "[pubkey]",
"verified": false
}

@mdance mdance force-pushed the mac-monterey-build-fixes branch from 0f1889b to d9c2290 Compare April 11, 2022 02:05
@mdance
Copy link
Contributor Author

mdance commented Apr 11, 2022

Ignore my last comment, I have tested the same command against a arch linux master build and its returning the same thing, I thought the verified: false might have meant the signature verification wasn't working

@rustyrussell
Copy link
Contributor

OK, I stole this into #5180 which now is rebased on the libwally release (yay!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants