core-lightning/contrib/pyln-grpc-proto
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
..
pyln/grpc bolt12: allow to inject payer_metadata 2024-11-19 22:54:22 +01:00
Makefile pyln: Also generate type stubs in pyln-grpc-proto 2023-12-15 10:01:57 +10:30
poetry.lock pyln: Also generate type stubs in pyln-grpc-proto 2023-12-15 10:01:57 +10:30
pyproject.toml py: Publish pyln-grpc-proto following new methods 2024-01-16 19:47:50 +01:00
README.md pyln: Create a dedicated pyln-grpc-proto package 2023-07-10 13:47:38 +09:30

pyln-grpc-proto

The python protobuf library is rather restrictive when it comes to importing them multiple times. So this package just contains the compiled protobuf files and serves as the canonical place to load them from.