lnrpc: add command for baking new macaroons

This commit is contained in:
Oliver Gugger committed 2019-10-24 10:25:32 +02:00
1 parent c66c4052ec
commit 6a463de7a2
6 files changed
+944 -534

No files matched your search

+61
View File
@@ -917,6 +917,33 @@
]
}
},
"/v1/macaroon": {
"post": {
"summary": "* lncli: `bakemacaroon`\nBakeMacaroon allows the creation of a new macaroon with custom read and\nwrite permissions. No first-party caveats are added since this can be done\noffline.",
"operationId": "BakeMacaroon",
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/lnrpcBakeMacaroonResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/lnrpcBakeMacaroonRequest"
}
}
],
"tags": [
"Lightning"
]
}
},
"/v1/newaddress": {
"get": {
"summary": "* lncli: `newaddress`\nNewAddress creates a new address under control of the local wallet.",
@@ -1512,6 +1539,27 @@
"description": "- `p2wkh`: Pay to witness key hash (`WITNESS_PUBKEY_HASH` = 0)\n- `np2wkh`: Pay to nested witness key hash (`NESTED_PUBKEY_HASH` = 1)",
"title": "* \n`AddressType` has to be one of:"
},
"lnrpcBakeMacaroonRequest": {
"type": "object",
"properties": {
"permissions": {
"type": "array",
"items": {
"$ref": "#/definitions/lnrpcMacaroonPermission"
},
"description": "/ The list of permissions the new macaroon should grant."
}
}
},
"lnrpcBakeMacaroonResponse": {
"type": "object",
"properties": {
"macaroon": {
"type": "string",
"description": "/ The hex encoded macaroon, serialized in binary format."
}
}
},
"lnrpcChain": {
"type": "object",
"properties": {
@@ -2746,6 +2794,19 @@
}
}
},
"lnrpcMacaroonPermission": {
"type": "object",
"properties": {
"entity": {
"type": "string",
"description": "/ The entity a permission grants access to."
},
"action": {
"type": "string",
"description": "/ The action that is granted."
}
}
},
"lnrpcMultiChanBackup": {
"type": "object",
"properties": {