Skip to content

Commit 7eba66b

Browse files
committed
Enforce that x-only keys cannot be used in non-tr descriptors
Reported by: @affilini
1 parent d8cc633 commit 7eba66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/descriptor/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ impl MiniscriptKey for DescriptorPublicKey {
705705
fn is_x_only_key(&self) -> bool {
706706
match self {
707707
DescriptorPublicKey::SinglePub(DescriptorSinglePub {
708-
key: SinglePubKey::FullKey(ref key),
708+
key: SinglePubKey::XOnly(ref key),
709709
..
710710
}) => key.is_x_only_key(),
711711
_ => false,

0 commit comments

Comments
 (0)