mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
79 lines
1.8 KiB
JSON
79 lines
1.8 KiB
JSON
{
|
|
"$schema": "../rpc-schema-draft.json",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"rpc": "makesecret",
|
|
"title": "Command for deriving pseudorandom key from HSM",
|
|
"description": [
|
|
"The **makesecret** RPC command derives a secret key from the HSM_secret."
|
|
],
|
|
"request": {
|
|
"required": [],
|
|
"properties": {
|
|
"hex": {
|
|
"type": "hex",
|
|
"description": [
|
|
"One of `hex` or `string` must be specified: `hex` can be any hex data."
|
|
]
|
|
},
|
|
"string": {
|
|
"type": "string",
|
|
"description": [
|
|
"One of `hex` or `string` must be specified: `string` is a UTF-8 string interpreted literally."
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"response": {
|
|
"required": [
|
|
"secret"
|
|
],
|
|
"properties": {
|
|
"secret": {
|
|
"type": "secret",
|
|
"description": [
|
|
"The pseudorandom key derived from HSM_secret."
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"errors": [
|
|
"The following error codes may occur:",
|
|
"",
|
|
"- -1: Catchall nonspecific error."
|
|
],
|
|
"json_example": [
|
|
{
|
|
"request": {
|
|
"id": "example:makesecret#1",
|
|
"method": "makesecret",
|
|
"params": [
|
|
"73636220736563726574"
|
|
]
|
|
},
|
|
"response": {
|
|
"secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed"
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"id": "example:makesecret#2",
|
|
"method": "makesecret",
|
|
"params": [
|
|
null,
|
|
"scb secret"
|
|
]
|
|
},
|
|
"response": {
|
|
"secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed"
|
|
}
|
|
}
|
|
],
|
|
"author": [
|
|
"Aditya <<aditya.sharma20111@gmail.com>> is mainly responsible."
|
|
],
|
|
"resources": [
|
|
"Main web site: <https://github.com/ElementsProject/lightning>"
|
|
]
|
|
}
|