Merge pull request #272 from newtonick/p2tr-sparrow-xpub

add BCUR P2TR script expression tag used by Sparrow
This commit is contained in:
Nick Klockenga
2022-11-29 21:27:04 -05:00
committed by GitHub
+2
View File
@@ -498,6 +498,8 @@ class UrXpubQrEncoder(XpubQrEncoder):
ur_outputs.append(Output([SCRIPT_EXPRESSION_TAG_MAP[401]],self.ur_hdkey))
elif origin.components[3].index == 1: # Nested Multisig
ur_outputs.append(Output([SCRIPT_EXPRESSION_TAG_MAP[400], SCRIPT_EXPRESSION_TAG_MAP[401]],self.ur_hdkey))
elif origin.components[0].index == 86: # P2TR
ur_outputs.append(Output([SCRIPT_EXPRESSION_TAG_MAP[409]],self.ur_hdkey))
# If empty, add all script types
if len(ur_outputs) == 0: