core-lightning/doc/schemas/createonion.schema.json
Rusty Russell 3bc5d47aa2 doc/schemas: add some simple schemas and generate manpages from them
addgossip, check, createinvoice, createonion.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-27 20:28:49 +09:30

23 lines
542 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [ "onion", "shared_secrets" ],
"properties": {
"onion": {
"type": "hex",
"description": "the onion packet (*onion_size* bytes)"
},
"shared_secrets": {
"type": "array",
"description": "one shared secret for each node in the *hops* parameter",
"items": {
"type": "hex",
"description": "the shared secret with this hop",
"maxLength": 64,
"minLength": 64
}
}
}
}