core-lightning/doc/schemas/createonion.schema.json

26 lines
585 B
JSON
Raw Normal View History

{
"$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": "secret",
"description": "the shared secret with this hop",
"maxLength": 64,
"minLength": 64
}
}
}
}