Skip to content

Commit

Permalink
Merge #786: Update error message when parsing DescriptorPublicKey
Browse files Browse the repository at this point in the history
7f7f547 Update error message when parsing DescriptorPublicKey (Sanket Kanjalkar)

Pull request description:

  Sorry if there are lint issues, I can try fixing them later. I am directly editing from github web UI

ACKs for top commit:
  brunoerg:
    ACK 7f7f547
  apoelstra:
    ACK 7f7f547; successfully ran local tests; looks like linter is happy

Tree-SHA512: b2a8896d911eedb72eb646a9d3a5176e47441c5c8d58e909c4a4029e16dac3a64309057f08eae024bb7d4369cc058595f224982f29f80dd67a21850b3262cb7d
  • Loading branch information
apoelstra committed Dec 20, 2024
2 parents db7b25c + 7f7f547 commit 772d7de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/descriptor/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ impl FromStr for DescriptorPublicKey {
// A "raw" public key without any origin is the least we accept.
if s.len() < 64 {
return Err(DescriptorKeyParseError(
"Key too short (<66 char), doesn't match any format",
"Key too short (<64 characters); use parse_descriptor for parsing \
descriptors with private keys.",
));
}

Expand Down

0 comments on commit 772d7de

Please sign in to comment.