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
−274
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
951ecac
descriptor: document an error case for at_derivation_index
KyrylR 2f1a8d1
descriptor: support conversion of multi-xprivs into multi-xpubs
KyrylR 322396c
descriptor: make DescriptorKeyParseError an enum
KyrylR 2879963
descriptor: clean up key error matching
KyrylR 236b9b2
descriptor: add NonDefiniteKeyError for wildcard keys
KyrylR f60e80a
descriptor: disallow multipath DefiniteDescriptorKeys
KyrylR a92e7cc
descriptor: add unit tests for constructing definite keys
KyrylR 7eb4b81
descriptor: reject DefiniteDescriptorKeys with hardened steps
KyrylR 1cca1e5
descriptor: remove some deprecated methods
KyrylR fda15bd
descriptor: make deriving a DefiniteDescriptorKey infallible
KyrylR fae5cb9
psbt: remove derives from UtxoUpdateError and OutputUpdateError
KyrylR 098f699
descriptor: replace ConversionError with NonDefiniteKeyError
KyrylR 171523b
fuzz: add fuzz test for parsing definite descriptor keys
KyrylR e07be53
descriptor: fix the doc line of has_hardened_step
KyrylR 6cbcf04
descriptor: document the hardened step error of at_derivation_index
KyrylR e57f467
descriptor: reject definite keys deeper than BIP32 allows
KyrylR 33fe2a3
descriptor: reject keys deeper than BIP32 allows when parsing
KyrylR f345bdf
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