Skip to content

Commit

Permalink
blip-0026: L402 - Lightning HTTP 402 Protocol
Browse files Browse the repository at this point in the history
In this commit, we add a bLIP for the L402 (formerly known as LSAT)
protocol. The L402 protocol presents a standardized way of adding LN
micropayments to any existing HTTP-REST or gRPC API. The L402 protocol
repurposes the HTTP 402 Payment Required error code with the necessary
authentication headers required to bind a request's validity to the
payment of an LN invoice. Macaroons are used as flexible authentication
credentials (supports custom caveats, attenuation, etc) which allow an
L402 reverse-proxy to validate an L402 API key without backend LN node
interaction for each request (the macaroon commits to the payment hash).
  • Loading branch information
Roasbeef committed Jun 7, 2023
1 parent de30d99 commit 141f2c3
Show file tree
Hide file tree
Showing 3 changed files with 779 additions and 0 deletions.
Loading

0 comments on commit 141f2c3

Please sign in to comment.