Expand description
BSV payment middleware for Actix-web.
Wire-compatible with the TypeScript payment-express-middleware. Enforces
BSV micropayments on protected routes by verifying payment headers, deriving
keys, and internalizing transactions via a WalletInterface implementation.
Re-exports§
pub use config::PaymentMiddlewareConfig;pub use config::PaymentMiddlewareConfigBuilder;pub use error::PaymentError;pub use extractor::AuthIdentity;pub use middleware::PaymentMiddlewareFactory;pub use middleware::PaymentMiddlewareService;pub use types::BSVPayment;pub use types::CalculateRequestPrice;pub use types::PaymentInfo;pub use types::DEFAULT_SATOSHIS;pub use types::PAYMENT_VERSION;pub use bridge::AuthToPaymentBridge;pub use bridge::AuthToPaymentBridgeService;
Modules§
- bridge
- Bridge adapter between auth-actix-middleware and payment-actix-middleware.
- config
- Payment middleware configuration with builder pattern.
- error
- Payment error types with wire-compatible JSON error responses.
- extractor
- Request extractors for authenticated identity and payment info.
- middleware
- Actix-web middleware for BSV payment enforcement.
- types
- Wire-compatible payment types matching the TypeScript payment-express-middleware.