cln/cln-rpc/src
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
..
codec.rs cln-rpc: Scaffolding for the cln-rpc crate 2022-02-11 16:02:25 +01:00
jsonrpc.rs cln-rpc: allow id to be any token. 2022-09-16 12:31:45 +09:30
lib.rs cln_rpc: Test deserialize_connect_notification 2024-05-16 14:00:18 +02:00
model.rs bolt12: allow to inject payer_metadata 2024-11-19 22:54:22 +01:00
notifications.rs docs: notifications schema update 2024-06-26 21:06:16 -07:00
primitives.rs cln-grpc: add anchors/even to primitives 2024-09-20 17:01:04 -07:00