mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
2c41c5d52d
We have "secret" and "hash" types which are often more appropriate. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"offers"
|
|
],
|
|
"properties": {
|
|
"offers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"offer_id",
|
|
"active",
|
|
"single_use",
|
|
"bolt12",
|
|
"used"
|
|
],
|
|
"properties": {
|
|
"offer_id": {
|
|
"type": "hash",
|
|
"description": "the id of this offer (merkle hash of non-signature fields)"
|
|
},
|
|
"active": {
|
|
"type": "boolean",
|
|
"description": "whether this can still be used"
|
|
},
|
|
"single_use": {
|
|
"type": "boolean",
|
|
"description": "whether this expires as soon as it's paid"
|
|
},
|
|
"bolt12": {
|
|
"type": "string",
|
|
"description": "the bolt12 encoding of the offer"
|
|
},
|
|
"used": {
|
|
"type": "boolean",
|
|
"description": "True if an associated invoice has been paid"
|
|
},
|
|
"label": {
|
|
"type": "string",
|
|
"description": "the (optional) user-specified label"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|