You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: taprpc/assetwalletrpc/assetwallet.swagger.json
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1027,9 +1027,26 @@
1027
1027
"type": "string",
1028
1028
"format": "byte",
1029
1029
"description": "The optional Taproot tweak to apply to the above internal key. If this is\nempty then a BIP-86 style tweak is applied to the internal key."
1030
+
},
1031
+
"type": {
1032
+
"$ref": "#/definitions/taprpcScriptKeyType",
1033
+
"description": "The type of the script key, as declared by the user."
1030
1034
}
1031
1035
}
1032
1036
},
1037
+
"taprpcScriptKeyType": {
1038
+
"type": "string",
1039
+
"enum": [
1040
+
"SCRIPT_KEY_UNKNOWN",
1041
+
"SCRIPT_KEY_BIP86",
1042
+
"SCRIPT_KEY_SCRIPT_PATH_EXTERNAL",
1043
+
"SCRIPT_KEY_BURN",
1044
+
"SCRIPT_KEY_TOMBSTONE",
1045
+
"SCRIPT_KEY_CHANNEL"
1046
+
],
1047
+
"default": "SCRIPT_KEY_UNKNOWN",
1048
+
"description": " - SCRIPT_KEY_UNKNOWN: The type of script key is not known. This should only be stored for assets\nwhere we don't know the internal key of the script key (e.g. for\nimported proofs).\n - SCRIPT_KEY_BIP86: The script key is a normal BIP-86 key. This means that the internal key is\nturned into a Taproot output key by applying a BIP-86 tweak to it.\n - SCRIPT_KEY_SCRIPT_PATH_EXTERNAL: The script key is a key that contains a script path that is defined by the\nuser and is therefore external to the tapd wallet. Spending this key\nrequires providing a specific witness and must be signed through the vPSBT\nsigning flow.\n - SCRIPT_KEY_BURN: The script key is a specific un-spendable key that indicates a burnt asset.\nAssets with this key type can never be spent again, as a burn key is a\ntweaked NUMS key that nobody knows the private key for.\n - SCRIPT_KEY_TOMBSTONE: The script key is a specific un-spendable key that indicates a tombstone\noutput. This is only the case for zero-value assets that result from a\nnon-interactive (TAP address) send where no change was left over.\n - SCRIPT_KEY_CHANNEL: The script key is used for an asset that resides within a Taproot Asset\nChannel. That means the script key is either a funding key (OP_TRUE), a\ncommitment output key (to_local, to_remote, htlc), or a HTLC second-level\ntransaction output key. Keys related to channels are not shown in asset\nbalances (unless specifically requested) and are never used for coin\nselection."
Copy file name to clipboardExpand all lines: taprpc/mintrpc/mint.swagger.json
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -899,9 +899,26 @@
899
899
"type": "string",
900
900
"format": "byte",
901
901
"description": "The optional Taproot tweak to apply to the above internal key. If this is\nempty then a BIP-86 style tweak is applied to the internal key."
902
+
},
903
+
"type": {
904
+
"$ref": "#/definitions/taprpcScriptKeyType",
905
+
"description": "The type of the script key, as declared by the user."
902
906
}
903
907
}
904
908
},
909
+
"taprpcScriptKeyType": {
910
+
"type": "string",
911
+
"enum": [
912
+
"SCRIPT_KEY_UNKNOWN",
913
+
"SCRIPT_KEY_BIP86",
914
+
"SCRIPT_KEY_SCRIPT_PATH_EXTERNAL",
915
+
"SCRIPT_KEY_BURN",
916
+
"SCRIPT_KEY_TOMBSTONE",
917
+
"SCRIPT_KEY_CHANNEL"
918
+
],
919
+
"default": "SCRIPT_KEY_UNKNOWN",
920
+
"description": " - SCRIPT_KEY_UNKNOWN: The type of script key is not known. This should only be stored for assets\nwhere we don't know the internal key of the script key (e.g. for\nimported proofs).\n - SCRIPT_KEY_BIP86: The script key is a normal BIP-86 key. This means that the internal key is\nturned into a Taproot output key by applying a BIP-86 tweak to it.\n - SCRIPT_KEY_SCRIPT_PATH_EXTERNAL: The script key is a key that contains a script path that is defined by the\nuser and is therefore external to the tapd wallet. Spending this key\nrequires providing a specific witness and must be signed through the vPSBT\nsigning flow.\n - SCRIPT_KEY_BURN: The script key is a specific un-spendable key that indicates a burnt asset.\nAssets with this key type can never be spent again, as a burn key is a\ntweaked NUMS key that nobody knows the private key for.\n - SCRIPT_KEY_TOMBSTONE: The script key is a specific un-spendable key that indicates a tombstone\noutput. This is only the case for zero-value assets that result from a\nnon-interactive (TAP address) send where no change was left over.\n - SCRIPT_KEY_CHANNEL: The script key is used for an asset that resides within a Taproot Asset\nChannel. That means the script key is either a funding key (OP_TRUE), a\ncommitment output key (to_local, to_remote, htlc), or a HTLC second-level\ntransaction output key. Keys related to channels are not shown in asset\nbalances (unless specifically requested) and are never used for coin\nselection."
0 commit comments