-
Notifications
You must be signed in to change notification settings - Fork 286
Followups to #716 (add musig2 API) #794
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
Open
apoelstra
wants to merge
14
commits into
rust-bitcoin:master
Choose a base branch
from
apoelstra:2025-05_musig2-followups
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f5f90af
fmt: stop blacklisting secp256k1-sys; just fmt whole crate
apoelstra 07922fd
musig: fix a couple FFI bindings
apoelstra 7c56bcc
clippy: whitelist a bunch of lints
apoelstra 9615ec8
context: whitelist new compiler warning
apoelstra 4dd861f
stop using deprecated thread_rng
apoelstra 3b0232a
musig: fix all the doctests
apoelstra 00c8c75
musig: remove outdated doc references to ZeroSession error
apoelstra 6d938d3
musig: add missing Panics sections to docs
apoelstra ec66003
musig: remove SessionSecretRand::new constructor
apoelstra c492c75
key: move pubkey_sort to method on Secp256k1; rename
apoelstra dc04575
musig: a couple small improvements of byte array APIs
apoelstra ebdaec7
musig: clarify doc comment about aggregate nonce proxy
apoelstra 40a8b65
musig: explicitly panic when given an empty slice of pubkeys to aggre…
apoelstra 8a43317
musig: add a bunch of unit tests
apoelstra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,13 @@ alloc = [] | |
|
||
[lints.rust] | ||
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(secp256k1_fuzz)', 'cfg(rust_secp_no_symbol_renaming)'] } | ||
|
||
[lints.clippy] | ||
# Exclude lints we don't think are valuable. | ||
large_enum_variant = "allow" # docs say "measure before paying attention to this"; why is it on by default?? | ||
similar_names = "allow" # Too many (subjectively) false positives. | ||
uninlined_format_args = "allow" # This is a subjective style choice. | ||
indexing_slicing = "allow" # Too many false positives ... would be cool though | ||
match_bool = "allow" # Adds extra indentation and LOC. | ||
match_same_arms = "allow" # Collapses things that are conceptually unrelated to each other. | ||
must_use_candidate = "allow" # Useful for audit but many false positives. | ||
Comment on lines
+41
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't this lints be whitelisted in the modules as needed rather than globally here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this lints be whitelisted in the modules as needed rather than globally here.
Also if whitelisting locally (either in modules or specific code) I would advocate to using
expect
thanallow
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lints are bad and I would rather not use clippy than deal with them. Global whitelisting is the right approach.
Using
expect
would require I know whether or not they trigger.