mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
fa127a4071
If we have a specific type (not just "hex") the length is implied. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
24 lines
535 B
JSON
24 lines
535 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": "secret",
|
|
"description": "the shared secret with this hop"
|
|
}
|
|
}
|
|
}
|
|
}
|