Skip to content

Schnorr (Incremental) Half Aggregation#1566

Open
fjahr wants to merge 1 commit intobitcoin-core:masterfrom
fjahr:2024-07-half-agg
Open

Schnorr (Incremental) Half Aggregation#1566
fjahr wants to merge 1 commit intobitcoin-core:masterfrom
fjahr:2024-07-half-agg

Conversation

@fjahr
Copy link
Copy Markdown
Contributor

@fjahr fjahr commented Jul 2, 2024

This ports over the work from b-wagn in BlockstreamResearch/secp256k1-zkp#261

In the second commit I have addressed the follow-ups though I was not always sure if I understood them correctly since they weren't inline. Please let me know if they are correct then I can squash the commit here and open it as a PR on zkp.

@bitcoin-core bitcoin-core deleted a comment from jjones3695 Jul 16, 2024
@bitcoin-core bitcoin-core deleted a comment from jjones3695 Jul 16, 2024
@bitcoin-core bitcoin-core deleted a comment from jjones3695 Jul 16, 2024
@fjahr fjahr force-pushed the 2024-07-half-agg branch 2 times, most recently from 6218bda to 0effa49 Compare November 18, 2024 15:54
@fjahr
Copy link
Copy Markdown
Contributor Author

fjahr commented Nov 18, 2024

Rebased on the musig changes and added the compile options for cmake

@fjahr fjahr force-pushed the 2024-07-half-agg branch 4 times, most recently from 31c6b5d to db91a39 Compare November 18, 2024 20:57
@fjahr
Copy link
Copy Markdown
Contributor Author

fjahr commented Dec 16, 2025

Rebased to take into account the latest changes to cmake, CI and test framework. Also squashed the commit since maintaining them was annoying and there wasn't really a good reason for them. It was more of a crutch for me while I was taking my first steps here.

This includes addressing nits from the halfagg PR in secp-zkp:
- we may want to add a header to the include file that links to the BIP
- there's still a mention of aggsig_size
- we may want to move aggregate before inc_aggregate
- we should mention expected size of input aggsig array in_aggregate
- 'Should be aggsig_len = 32*(n+1)' -> 'Must be'

Co-authored-by: Benedikt <crypto@benedikt-wagner.dev>
Copy link
Copy Markdown

@Jonatanc05 Jonatanc05 left a comment

Choose a reason for hiding this comment

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

I think there's a typo

* Args: ctx: a secp256k1 context object.
* In: pubkeys: Array of n many x-only public keys. Can only be NULL if n is 0.
* msgs32: Array of n many 32-byte messages. Can only be NULL if n is 0.
* n: number of signatures to that have been aggregated.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
* n: number of signatures to that have been aggregated.
* n: number of signatures that have been aggregated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I will address it the next time I will push an update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants