mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-04 04:54:47 +01:00
f9fe814ea3
As per latest spec revision. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-EXPERIMENTAL: BOLT12 offers can now be unsigned, for really short QR codes.
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"required": [ "offer_id", "active", "single_use", "bolt12", "bolt12_unsigned", "used" ],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"offer_id": {
|
|
"type": "hex",
|
|
"description": "the merkle hash of the offer",
|
|
"maxLength": 64,
|
|
"minLength": 64
|
|
},
|
|
"active": {
|
|
"type": "boolean",
|
|
"enum": [ "false" ],
|
|
"description": "Whether the offer can produce invoices/payments"
|
|
},
|
|
"single_use": {
|
|
"type": "boolean",
|
|
"description": "Whether the offer is disabled after first successful use"
|
|
},
|
|
"bolt12": {
|
|
"type": "string",
|
|
"description": "The bolt12 string representing this offer"
|
|
},
|
|
"bolt12_unsigned": {
|
|
"type": "string",
|
|
"description": "The bolt12 string representing this offer, without signature"
|
|
},
|
|
"used": {
|
|
"type": "boolean",
|
|
"description": "Whether the offer has had an invoice paid / payment made"
|
|
},
|
|
"label": {
|
|
"type": "string",
|
|
"description": "The label provided when offer was created"
|
|
}
|
|
}
|
|
}
|