core-lightning/cln-rpc
Vincenzo Palazzo 6f0dbbb20f bolt12: allow to inject payer_metadata
Payer metadata is a field that controls the payer ID
provided during the fetchinvoice process.

There are use cases where this is highly useful, such as
proving that the payer has paid for the correct item.

Imagine visiting a merchant's website to pay for multiple offers, where
one of these offers is a default offer (with no description and no set amount).

In this scenario, the merchant could claim not to have received
payment for a specific item. Since the same offer may be used to
fetch invoices for different products, there needs to be a way to
identify which product the invoice corresponds to.

With this commit, it will be possible to inject payer metadata,
which helps solve the issue described above.

For example, possible payer metadata could be `to_hex(b"{payer_node_id}.{product_id}.{created_at}")`.

Changelog-Added: JSON-RPC: `fetchinvoice` allows setting invreq_metadata via `payer_metadata` parameter.
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2024-11-19 22:54:22 +01:00
..
examples cln-rpc: Remove wildcard import from model 2023-07-10 13:47:38 +09:30
src bolt12: allow to inject payer_metadata 2024-11-19 22:54:22 +01:00
Cargo.toml chore: bump rust bitcoin to 0.31 2024-10-08 18:56:05 +02:00
Makefile Fix: Add notifications.rs to $(CHECK_GEN_ALL) target 2024-07-02 11:42:14 +09:30
README.md doc: update c-lightning to Core Lightning almost everywhere. 2022-04-07 06:53:26 +09:30

cln-rpc: Talk to Core Lightning