Skip to content

Commit b4ac480

Browse files
committed
descriptor: Use InferXOnlyPubkey for miniscript XOnly pubkey from script
1 parent 4c50c21 commit b4ac480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/descriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ struct KeyParser {
17091709
if (miniscript::IsTapscript(m_script_ctx) && end - begin == 32) {
17101710
XOnlyPubKey pubkey;
17111711
std::copy(begin, end, pubkey.begin());
1712-
if (auto pubkey_provider = InferPubkey(pubkey.GetEvenCorrespondingCPubKey(), ParseContext(), *m_in)) {
1712+
if (auto pubkey_provider = InferXOnlyPubkey(pubkey, ParseContext(), *m_in)) {
17131713
m_keys.emplace_back();
17141714
m_keys.back().push_back(std::move(pubkey_provider));
17151715
return key;

0 commit comments

Comments
 (0)