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
@@ -1046,9 +1046,26 @@
1046
1046
"type": "string",
1047
1047
"format": "byte",
1048
1048
"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."
1049
+
},
1050
+
"type": {
1051
+
"$ref": "#/definitions/taprpcScriptKeyType",
1052
+
"description": "The type of the script key. This type is either user-declared when custom\nscript keys are added, or automatically determined by the daemon for\nstandard operations (e.g. BIP-86 keys, burn keys, tombstone keys, channel\nrelated keys)."
1049
1053
}
1050
1054
}
1051
1055
},
1056
+
"taprpcScriptKeyType": {
1057
+
"type": "string",
1058
+
"enum": [
1059
+
"SCRIPT_KEY_UNKNOWN",
1060
+
"SCRIPT_KEY_BIP86",
1061
+
"SCRIPT_KEY_SCRIPT_PATH_EXTERNAL",
1062
+
"SCRIPT_KEY_BURN",
1063
+
"SCRIPT_KEY_TOMBSTONE",
1064
+
"SCRIPT_KEY_CHANNEL"
1065
+
],
1066
+
"default": "SCRIPT_KEY_UNKNOWN",
1067
+
"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. This type is either user-declared when custom\nscript keys are added, or automatically determined by the daemon for\nstandard operations (e.g. BIP-86 keys, burn keys, tombstone keys, channel\nrelated keys)."
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