{ "$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." ], "example_json_request": [ { "id": "example:makesecret#1", "method": "makesecret", "params": [ "73636220736563726574" ] }, { "id": "example:makesecret#2", "method": "makesecret", "params": [ null, "scb secret" ] } ], "example_json_response": [ { "secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed" }, { "secret": "a9a2e742405c28f059349132923a99337ae7f71168b7485496e3365f5bc664ed" } ], "author": [ "Aditya <> is mainly responsible." ], "resources": [ "Main web site: " ] }