You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/packages/helpers/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Utility libraries and helper tools for common BSV operations. Includes high-leve
20
20
|---------|---------|
21
21
|[@bsv/simple](simple.md)| High-level wallet API for browser and server — manage payments, tokens, inscriptions, DIDs, and credentials |
22
22
|[@bsv/wallet-helper](wallet-helper.md)| Fluent transaction builder for explicit wallet-backed transactions, BRC-29 derivation, and ordinal support |
23
-
|[@bsv/templates](templates.md)|Low-level script templates (OpReturn, MultiPushDrop, P2MSKH) with lock/unlock patterns |
23
+
|[@bsv/templates](templates.md)|Predefined ScriptTemplate examples for protocol engineers, including OpReturn, MultiPushDrop, and P2MSKH lock/unlock patterns |
24
24
|[@bsv/did-client](did-client.md)| DID client for creating, revoking, and querying on-chain DIDs with overlay broadcast |
25
25
|[@bsv/amountinator](amountinator.md)| Multi-currency converter (SATS↔BSV↔15+ fiat) with exchange rate caching |
26
26
|[@bsv/fund-wallet](fund-wallet.md)| CLI faucet for funding wallets from Metanet Desktop during development and testing |
Copy file name to clipboardExpand all lines: docs/packages/middleware/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
id: domain-middleware
3
3
title: Middleware
4
4
kind: reference
5
-
last_updated: "2026-04-28"
5
+
last_updated: "2026-04-30"
6
6
version: "n/a"
7
7
last_verified: "2026-04-28"
8
8
review_cadence_days: 90
@@ -12,12 +12,12 @@ tags: [packages, middleware]
12
12
13
13
# Middleware Domain
14
14
15
-
Express.js middleware and client utilities for adding cryptographic authentication and micropayment gating to HTTP services. Implements BRC-103 mutual authentication over HTTP (BRC-104) and HTTP 402 Payment Required (BRC-121) for monetizing APIs with Bitcoin SV micropayments.
15
+
Express.js middleware and client utilities for adding cryptographic authentication and micropayment gating to HTTP services. There are two distinct payment paths: `@bsv/payment-express-middleware` layers payment requirements on top of authenticated Express routes, while `@bsv/402-pay` is an independent HTTP 402 flow that can work without auth middleware.
16
16
17
17
## Packages
18
18
19
19
| Package | Purpose |
20
20
|---------|---------|
21
21
|**@bsv/auth-express-middleware**| Express middleware implementing BRC-103 peer-to-peer mutual authentication via BRC-104 HTTP transport. Verify request signatures, attach verified identity to req.auth, and optionally exchange verifiable certificates. |
22
-
|**@bsv/payment-express-middleware**| Express middleware for HTTP 402 Payment Required micropayment gating. Builds on top of BRC-103 authmiddleware to require BSV satoshi payments derived using BRC-29 key derivation. |
23
-
|**@bsv/402-pay**|Client-side and server-side HTTP 402 payment handler. Auto-pay 402 responses on the client; validate and accept payments on the server with caching and replay protection. |
22
+
|**@bsv/payment-express-middleware**| Express middleware for HTTP 402 Payment Required micropayment gating. Requires `@bsv/auth-express-middleware` first, then derives payment requirements from the authenticated identity context. |
23
+
|**@bsv/402-pay**|Independent client-side and server-side HTTP 402 payment handler. Auto-pay 402 responses on the client; validate and accept payments on the server with caching and replay protection, without requiring auth middleware. |
0 commit comments