add BCUR P2TR script expression tag used by Sparrow

This commit is contained in:
Nick Klockenga
2022-11-10 15:18:32 -05:00
parent 9a33d01d92
commit c7dcd99bf5
+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: