Skip to content

Commit

Permalink
Update error message when parsing DescriptorPublicKey
Browse files Browse the repository at this point in the history
Sorry if there are lint issues, I can try fixing them later. Directly editing from github web UI
  • Loading branch information
sanket1729 authored Dec 19, 2024
1 parent db7b25c commit 7f7f547
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 7f7f547

Please sign in to comment.