Repository navigation
descriptor: port upstream definite key and key error changes #117
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
KyrylR
wants to merge
18
commits into
ElementsProject:master
Choose a base branch
from
KyrylR:pr/107-upstream-key-errors
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.
+678
−273
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
22ee2f0
descriptor: document an error case for at_derivation_index
KyrylR 4ab5fc6
descriptor: support conversion of multi-xprivs into multi-xpubs
KyrylR d61f3c9
descriptor: make DescriptorKeyParseError an enum
KyrylR 8805412
descriptor: clean up key error matching
KyrylR 045f9e9
descriptor: add NonDefiniteKeyError for wildcard keys
KyrylR feed6ae
descriptor: disallow multipath DefiniteDescriptorKeys
KyrylR 3c8a0bb
descriptor: add unit tests for constructing definite keys
KyrylR 4fe80db
descriptor: reject DefiniteDescriptorKeys with hardened steps
KyrylR ef9a76a
descriptor: remove some deprecated methods
KyrylR 217e542
descriptor: make deriving a DefiniteDescriptorKey infallible
KyrylR e20c496
psbt: remove derives from UtxoUpdateError and OutputUpdateError
KyrylR 1d711ca
descriptor: replace ConversionError with NonDefiniteKeyError
KyrylR 890e9aa
fuzz: add fuzz test for parsing definite descriptor keys
KyrylR 3b017d1
descriptor: fix the doc line of has_hardened_step
KyrylR 7d1e3d7
descriptor: document the hardened step error of at_derivation_index
KyrylR 39cea4e
descriptor: reject definite keys deeper than BIP32 allows
KyrylR 2d5f25b
descriptor: reject keys deeper than BIP32 allows when parsing
KyrylR 07aefaf
CHANGELOG: describe the definite key and key error changes
KyrylR 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
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
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 |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #![allow(unexpected_cfgs)] | ||
|
|
||
| extern crate elements_miniscript as miniscript; | ||
|
|
||
| use honggfuzz::fuzz; | ||
| use miniscript::{DefiniteDescriptorKey, Descriptor}; | ||
|
|
||
| fn do_test(data: &[u8]) { | ||
| let data_str = String::from_utf8_lossy(data); | ||
|
|
||
| if let Ok(desc) = data_str.parse::<Descriptor<DefiniteDescriptorKey>>() { | ||
| let _ = desc.to_string(); | ||
| let _ = desc.address(&miniscript::elements::AddressParams::ELEMENTS); | ||
| } | ||
| } | ||
|
|
||
| fn main() { | ||
| loop { | ||
| fuzz!(|data| { | ||
| do_test(data); | ||
| }); | ||
| } | ||
| } |
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.
There is no way around with this changelog
Maybe the reorg will help, but the total number of already introduced changes does not help
Will be grateful for the advice regarding this