Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cln-rpc & cln-grpc: Backfill more methods #5104

Merged
merged 35 commits into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
a09031a
msggen: Wrap field numberings in the message type
cdecker Apr 1, 2022
dd9a7f5
cln-grpc: Add the `connect` method
cdecker Apr 1, 2022
b696e99
cln-rpc: Add invoice RPC methods
cdecker Apr 1, 2022
fa76898
msggen: Add custom mappings for JSON -> grpc conversions
cdecker Apr 1, 2022
7542169
grpc: Map `sendonion` and `createonion`
cdecker Apr 1, 2022
6940b2f
cln-rpc: Map feerates and backfill methods using it
cdecker Apr 1, 2022
a946961
cln-rpc: Add `OutputDesc` for `{addr: amt}` style arguments
cdecker Apr 1, 2022
5c3caaf
cln-rpc: Map PSBT and TX methods
cdecker Apr 1, 2022
242f1aa
cln-grpc: Map AmountOrAll and AmountOrAny
cdecker Apr 1, 2022
9947eed
pytest: fix if no rust installed.
rustyrussell Apr 1, 2022
a8bfac0
fundpsbt: deprecate reserve=true/false usage.
rustyrussell Apr 1, 2022
7ff80ad
lightningd: deprecate invoice expiry suffixes.
rustyrussell Apr 1, 2022
9fbe2dd
doc: set additionalProperties to false in all request schemas.
rustyrussell Apr 1, 2022
25eb1ac
pyln-testing: add dev-pay.
rustyrussell Apr 1, 2022
485e5e9
pyln-testing: add dev-invoice.
rustyrussell Apr 1, 2022
c59ddbf
pytest: don't hand a string for an integer value.
rustyrussell Apr 1, 2022
56fd6dd
pyln-testing: add new schema types.
rustyrussell Apr 1, 2022
0de7343
doc/schemas: fixes for request schemas.
rustyrussell Apr 1, 2022
6ede1e9
pyln-testing: check the request schemas.
rustyrussell Apr 1, 2022
c433749
msggen: Add parser for "oneOf"
cdecker Apr 1, 2022
fba30a9
msggen: Add model-side overrides
cdecker Apr 1, 2022
d2f0785
msggen: Add RoutehintList as a primitive
cdecker Apr 1, 2022
854f108
cln-rpc: Make Pubkey and ShortChannelId proper types
cdecker Apr 1, 2022
bcbde01
cln-rpc: Move tests into separate file
cdecker Apr 1, 2022
345ea33
cln-rpc: The JSON `number` type is a float not an int
cdecker Apr 1, 2022
a296975
cln-rpc: Skip the HTLC state for now
cdecker Apr 1, 2022
c9949e6
cln-rpc: Log requests and responses
cdecker Apr 1, 2022
262336e
cln-rpc: Add Sha256 and Secret types
cdecker Apr 1, 2022
8c9572a
doc: Annotate secrets and hashes in the JSON Schemas
cdecker Apr 1, 2022
438339e
cln-rpc: Test that we forward errors correctly
cdecker Apr 1, 2022
eff94e3
cln-grpc: Add conversion test for listpeers
cdecker Apr 1, 2022
7c990bf
cln-rpc: Yet more RPC methods being mapped
cdecker Apr 1, 2022
306de2b
pytest: fix RUST=0 pytest.
rustyrussell Apr 1, 2022
baa51ad
msggen: Don't assume we have properties in the schema
cdecker Apr 1, 2022
9a76d84
cln-grpc: Final generation of derived files
cdecker Apr 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: Annotate secrets and hashes in the JSON Schemas
  • Loading branch information
cdecker authored and rustyrussell committed Apr 1, 2022
commit 8c9572adb0eb60963487d246290e6e831aad9ee1
6 changes: 3 additions & 3 deletions doc/lightning-createinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RETURN VALUE
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **label** (string): the label for the invoice
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): Whether it has been paid, or can no longer be paid (one of "paid", "expired", "unpaid")
- **description** (string): Description extracted from **bolt11** or **bolt12**
- **expires_at** (u64): UNIX timestamp of when invoice expires (or expired)
Expand All @@ -43,7 +43,7 @@ On success, an object is returned, containing:
- **pay_index** (u64, optional): Incrementing id for when this was paid (**status** *paid* only)
- **amount_received_msat** (msat, optional): Amount actually received (**status** *paid* only)
- **paid_at** (u64, optional): UNIX timestamp of when invoice was paid (**status** *paid* only)
- **payment_preimage** (hex, optional): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_preimage** (secret, optional): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **local_offer_id** (hex, optional): the *id* of our offer which created this invoice (**experimental-offers** only). (always 64 characters)
- **payer_note** (string, optional): the optional *payer_note* from invoice_request which created this invoice (**experimental-offers** only).

Expand Down Expand Up @@ -74,4 +74,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:ea89ed849c8ad6cac8e1e136999046d1f7589bf176be0e65438174357f87ed11)
[comment]: # ( SHA256STAMP:b07a315a6460449b64ab848ce9fc4cfe6ac862d63c8ab922434238a2b83d7902)
4 changes: 2 additions & 2 deletions doc/lightning-createonion.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ RETURN VALUE
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **onion** (hex): the onion packet (*onion_size* bytes)
- **shared_secrets** (array of hexs): one shared secret for each node in the *hops* parameter:
- **shared_secrets** (array of secrets): one shared secret for each node in the *hops* parameter:
- the shared secret with this hop (always 64 characters)

[comment]: # (GENERATE-FROM-SCHEMA-END)
Expand Down Expand Up @@ -133,4 +133,4 @@ RESOURCES
Main web site: <https://github.com/ElementsProject/lightning>

[bolt04]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
[comment]: # ( SHA256STAMP:23e999fedfde74a200c0e6626fa828548b3b60952de30c5885cd63b1922f4508)
[comment]: # ( SHA256STAMP:eabebca3c38ac8e01fb9a0891bde7913ce2832b7ee179c0b4617d104a0e6c009)
6 changes: 3 additions & 3 deletions doc/lightning-delinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Note: The return is the same as an object from lightning-listinvoice(7).
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **label** (string): Unique label given at creation time
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): State of invoice (one of "paid", "expired", "unpaid")
- **expires_at** (u64): UNIX timestamp when invoice expires (or expired)
- **bolt11** (string, optional): BOLT11 string
Expand All @@ -43,7 +43,7 @@ If **status** is "paid":
- **pay_index** (u64): unique index for this invoice payment
- **amount_received_msat** (msat): how much was actually received
- **paid_at** (u64): UNIX timestamp of when payment was received
- **payment_preimage** (hex): SHA256 of this is the *payment_hash* offered in the invoice (always 64 characters)
- **payment_preimage** (secret): SHA256 of this is the *payment_hash* offered in the invoice (always 64 characters)

[comment]: # (GENERATE-FROM-SCHEMA-END)

Expand Down Expand Up @@ -78,4 +78,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:73d9097734e85d438de90844ab78bdd737e6df53620542887170c7564a86b90b)
[comment]: # ( SHA256STAMP:407d741b622621da127dc1e55c98c299ace970f8244bc14574dddcafbf9aa1fc)
6 changes: 3 additions & 3 deletions doc/lightning-invoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ RETURN VALUE
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **bolt11** (string): the bolt11 string
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_secret** (hex): the *payment_secret* to place in the onion (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_secret** (secret): the *payment_secret* to place in the onion (always 64 characters)
- **expires_at** (u64): UNIX timestamp of when invoice expires

The following warnings may also be returned:
Expand Down Expand Up @@ -117,4 +117,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:f7d82473482e5454fc03641fddcfa97984e6a597e7ad377ced2cbed1512e91ed)
[comment]: # ( SHA256STAMP:834b9d7b84845d423a677662b66b9109b3b8c4b7219a91d98f2817561d68a8cd)
6 changes: 3 additions & 3 deletions doc/lightning-keysend.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ RETURN VALUE

[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **payment_preimage** (hex): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_preimage** (secret): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **created_at** (number): the UNIX timestamp showing when this payment was initiated
- **parts** (u32): how many attempts this took
- **amount_msat** (msat): Amount the recipient received
Expand Down Expand Up @@ -114,4 +114,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:bf507985544575c4ef2fe194fda6a693378cb8ab3bfb30ca7a7c066be271be29)
[comment]: # ( SHA256STAMP:449315de94f49452c3d485775dd97bc2517763be420ebc74024914680359d1ff)
6 changes: 3 additions & 3 deletions doc/lightning-listinvoices.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RETURN VALUE
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object containing **invoices** is returned. It is an array of objects, where each object contains:
- **label** (string): unique label supplied at invoice creation
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): Whether it's paid, unpaid or unpayable (one of "unpaid", "paid", "expired")
- **expires_at** (u64): UNIX timestamp of when it will become / became unpayable
- **description** (string, optional): description used in the invoice
Expand All @@ -37,7 +37,7 @@ If **status** is "paid":
- **pay_index** (u64): Unique incrementing index for this payment
- **amount_received_msat** (msat): the amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)
- **paid_at** (u64): UNIX timestamp of when it was paid
- **payment_preimage** (hex): proof of payment (always 64 characters)
- **payment_preimage** (secret): proof of payment (always 64 characters)

[comment]: # (GENERATE-FROM-SCHEMA-END)

Expand All @@ -56,4 +56,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:d1328ecc2a4e76ede8c9adc3a63d18ce36be305ddcee7cf717039f79642cfd41)
[comment]: # ( SHA256STAMP:1178a5178a20b2aca9c52fe39e332bd1d6c4f20fa302639bed0fbfc6eb348c40)
6 changes: 3 additions & 3 deletions doc/lightning-listpeers.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ On success, an object containing **peers** is returned. It is an array of objec
- **perkb** (u32): Feerate per 1000 virtual bytes
- **owner** (string, optional): The current subdaemon controlling this connection
- **short_channel_id** (short_channel_id, optional): The short_channel_id (once locked in)
- **channel_id** (hex, optional): The full channel_id (always 64 characters)
- **channel_id** (hash, optional): The full channel_id (always 64 characters)
- **funding_txid** (txid, optional): ID of the funding transaction
- **funding_outnum** (u32, optional): The 0-based output number of the funding transaction which opens the channel
- **initial_feerate** (string, optional): For inflight opens, the first feerate used to initiate the channel open
Expand Down Expand Up @@ -113,7 +113,7 @@ On success, an object containing **peers** is returned. It is an array of objec
- **id** (u64): Unique ID for this htlc on this channel in this direction
- **amount_msat** (msat): Amount send/received for this HTLC
- **expiry** (u32): Block this HTLC expires at
- **payment_hash** (hex): the hash of the payment_preimage which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the payment_preimage which will prove payment (always 64 characters)
- **local_trimmed** (boolean, optional): if this is too small to enforce onchain (always *true*)
- **status** (string, optional): set if this HTLC is currently waiting on a hook (and shows what plugin)

Expand Down Expand Up @@ -380,4 +380,4 @@ Main web site: <https://github.com/ElementsProject/lightning> Lightning
RFC site (BOLT \#9):
<https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md>

[comment]: # ( SHA256STAMP:147b7008c8f4acb031df625e0731614339a75ee5861cb9f40cd542b1017e3660)
[comment]: # ( SHA256STAMP:6b0ec5c899c8685487190209f594635030205a275e1dc6d61a7b057adbf66192)
6 changes: 3 additions & 3 deletions doc/lightning-listsendpays.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Note that the returned array is ordered by increasing *id*.
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object containing **payments** is returned. It is an array of objects, where each object contains:
- **id** (u64): unique ID for this payment attempt
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): status of the payment (one of "pending", "failed", "complete")
- **created_at** (u64): the UNIX timestamp showing when this payment was initiated
- **amount_sent_msat** (msat): The amount sent
Expand All @@ -37,7 +37,7 @@ On success, an object containing **payments** is returned. It is an array of ob
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).

If **status** is "complete":
- **payment_preimage** (hex): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_preimage** (secret): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)

If **status** is "failed":
- **erroronion** (hex, optional): the onion message returned
Expand All @@ -60,4 +60,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:1dfcb495e0004b9dadffd7f69b58275bf9168c9f4007675b390ebbaea07ffde6)
[comment]: # ( SHA256STAMP:b03c2f306bafb1919f0933ebc695657bd691591484ddcb39b1e8706335593cd2)
6 changes: 3 additions & 3 deletions doc/lightning-pay.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ RETURN VALUE

[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **payment_preimage** (hex): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_preimage** (secret): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **created_at** (number): the UNIX timestamp showing when this payment was initiated
- **parts** (u32): how many attempts this took
- **amount_msat** (msat): Amount the recipient received
Expand Down Expand Up @@ -149,4 +149,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:e537b9c74918559db99e673fac63cfa43a347ab80c32f33012ab3655b9edc45e)
[comment]: # ( SHA256STAMP:b8ff255c1f4d284535d70f13d3bd85c3d20ef8fdee081835a57fb04528311db6)
6 changes: 3 additions & 3 deletions doc/lightning-sendonion.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RETURN VALUE
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **id** (u64): unique ID for this payment attempt
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): status of the payment (could be complete if already sent previously) (one of "pending", "complete")
- **created_at** (u64): the UNIX timestamp showing when this payment was initiated
- **amount_sent_msat** (msat): The amount sent
Expand All @@ -101,7 +101,7 @@ On success, an object is returned, containing:
- **partid** (u64, optional): the partid (if supplied) to sendonion/sendpay

If **status** is "complete":
- **payment_preimage** (hex): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_preimage** (secret): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)

If **status** is "pending":
- **message** (string, optional): Monitor status with listpays or waitsendpay
Expand All @@ -128,4 +128,4 @@ RESOURCES
Main web site: <https://github.com/ElementsProject/lightning>

[bolt04]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
[comment]: # ( SHA256STAMP:b8fd5d1c31eb2db10b2f32960752ae1c90150ffeb470c5ea635cb1034e8b1438)
[comment]: # ( SHA256STAMP:d2f4991d271147dd8c13859376f36f2d8843a96034e818a434555a09bf6fd003)
6 changes: 3 additions & 3 deletions doc/lightning-sendpay.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ RETURN VALUE
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **id** (u64): unique ID for this payment attempt
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): status of the payment (could be complete if already sent previously) (one of "pending", "complete")
- **created_at** (u64): the UNIX timestamp showing when this payment was initiated
- **amount_sent_msat** (msat): The amount sent
Expand All @@ -70,7 +70,7 @@ On success, an object is returned, containing:
- **bolt12** (string, optional): the bolt12 string (if supplied: **experimental-offers** only).

If **status** is "complete":
- **payment_preimage** (hex): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_preimage** (secret): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)

If **status** is "pending":
- **message** (string): Monitor status with listpays or waitsendpay
Expand Down Expand Up @@ -127,4 +127,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:44540ace609ccfa7b023526d7a92ba7cf4a6058f3ae2124c20fa65b92137e41b)
[comment]: # ( SHA256STAMP:a7f55104f3bdb21057a410a33902b92aca38aaa83b1e0e7e6876a911316132ed)
6 changes: 3 additions & 3 deletions doc/lightning-waitanyinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RETURN VALUE
On success, an object is returned, containing:
- **label** (string): unique label supplied at invoice creation
- **description** (string): description used in the invoice
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): Whether it's paid or expired (one of "paid", "expired")
- **expires_at** (u64): UNIX timestamp of when it will become / became unpayable
- **amount_msat** (msat, optional): the amount required to pay this invoice
Expand All @@ -48,7 +48,7 @@ If **status** is "paid":
- **pay_index** (u64): Unique incrementing index for this payment
- **amount_received_msat** (msat): the amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)
- **paid_at** (u64): UNIX timestamp of when it was paid
- **payment_preimage** (hex): proof of payment (always 64 characters)
- **payment_preimage** (secret): proof of payment (always 64 characters)

[comment]: # (GENERATE-FROM-SCHEMA-END)

Expand All @@ -73,4 +73,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:33df5fb9bcbcb6d2240d0d18b970b2300414aae36b81fb276fcedfc21480d22f)
[comment]: # ( SHA256STAMP:6c4df3bb97df9f87583725ef31e803900ac548e17506692f9da365a3e4bbf18f)
6 changes: 3 additions & 3 deletions doc/lightning-waitinvoice.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RETURN VALUE
On success, an object is returned, containing:
- **label** (string): unique label supplied at invoice creation
- **description** (string): description used in the invoice
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): Whether it's paid or expired (one of "paid", "expired")
- **expires_at** (u64): UNIX timestamp of when it will become / became unpayable
- **amount_msat** (msat, optional): the amount required to pay this invoice
Expand All @@ -30,7 +30,7 @@ If **status** is "paid":
- **pay_index** (u64): Unique incrementing index for this payment
- **amount_received_msat** (msat): the amount actually received (could be slightly greater than *amount_msat*, since clients may overpay)
- **paid_at** (u64): UNIX timestamp of when it was paid
- **payment_preimage** (hex): proof of payment (always 64 characters)
- **payment_preimage** (secret): proof of payment (always 64 characters)

[comment]: # (GENERATE-FROM-SCHEMA-END)

Expand Down Expand Up @@ -58,4 +58,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:33df5fb9bcbcb6d2240d0d18b970b2300414aae36b81fb276fcedfc21480d22f)
[comment]: # ( SHA256STAMP:6c4df3bb97df9f87583725ef31e803900ac548e17506692f9da365a3e4bbf18f)
6 changes: 3 additions & 3 deletions doc/lightning-waitsendpay.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RETURN VALUE
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **id** (u64): unique ID for this payment attempt
- **payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **payment_hash** (hash): the hash of the *payment_preimage* which will prove payment (always 64 characters)
- **status** (string): status of the payment (always "complete")
- **created_at** (u64): the UNIX timestamp showing when this payment was initiated
- **amount_sent_msat** (msat): The amount sent
Expand All @@ -48,7 +48,7 @@ On success, an object is returned, containing:
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).

If **status** is "complete":
- **payment_preimage** (hex): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
- **payment_preimage** (secret): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)

[comment]: # (GENERATE-FROM-SCHEMA-END)

Expand Down Expand Up @@ -101,4 +101,4 @@ RESOURCES

Main web site: <https://github.com/ElementsProject/lightning>

[comment]: # ( SHA256STAMP:3f89cf80acc1e9363509f0a053a617f8b381790823f8cd05fa6c708eb72fcc7e)
[comment]: # ( SHA256STAMP:96e5cfd0bd6f2d6b7a25a60f846283592404cee07ef142e58cd56929cc6923c9)
4 changes: 2 additions & 2 deletions doc/schemas/createinvoice.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"description": "the bolt12 string instead of **bolt11** (**experimental-offers** only)"
},
"payment_hash": {
"type": "hex",
"type": "hash",
"description": "the hash of the *payment_preimage* which will prove payment",
"maxLength": 64,
"minLength": 64
Expand Down Expand Up @@ -62,7 +62,7 @@
"description": "UNIX timestamp of when invoice was paid (**status** *paid* only)"
},
"payment_preimage": {
"type": "hex",
"type": "secret",
"description": "the proof of payment: SHA256 of this **payment_hash**",
"maxLength": 64,
"minLength": 64
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/createonion.request.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"description": ""
},
"session_key": {
"type": "hex"
"type": "secret"
},
"onion_size": {
"type": "u16"
Expand Down
Loading