**BSV-Middleware Added to PyPI: A Game-Changer for Django Developers**
Exciting news has just hit the Python community with the release of bsv-middleware on PyPI! This innovative middleware library is designed specifically for Django developers, providing a seamless way to integrate blockchain authentication and payment processing into their applications.
What is BSV-Middleware?
bsv-middleware is a Django middleware that implements the BRC-103 Peer-to-Peer Mutual Authentication via BRC-104 HTTP Transport specification. This means it enables mutual authentication and certificate exchange between clients and servers in a standardized way, making it easier to secure your applications.
The library abstracts the complexities of these specs behind a typical Django middleware, allowing you to focus on writing normal Django code for your views while still benefiting from robust security features.
Key Features
- Mutual Authentication: Authenticate both the server and the client cryptographically, preventing impersonation or MITM attacks.
- Certificate Handling: Request, receive, and verify BRC-103 identity certificates, including utility methods to request additional certificates from the client.
- Selective Disclosure: Support for revealing only certain fields in a certificate, helping to preserve privacy while verifying necessary information.
- Extendable: Provide a custom SessionManager or plug in advanced logic for verifying user attributes.
Seamless Integration with Django
The minimal setup to enable BRC-103 mutual authentication in your Django server is straightforward:
import bsv_middleware# In settings.py MIDDLEWARE = [ 'bsv_middleware.middleware.BSVMiddleware', ]
# Configure the middleware via Django settings BSV_MIDDLEWARE_CREDENTIALS = { # Your credentials go here }
Or, use the factory function for programmatic setup:
import bsv_middlewaremiddleware = bsv_middleware.factory( credentials={ # Your credentials go here }, )
Get Started Today!
Head over to PyPI and download bsv-middleware today! If you're not sure which version to choose, learn more about installing packages on PyPI.
Happy hacking, and don't forget to open an issue or PR if you have any questions, suggestions, or want to contribute improvements!
Release History
bsv-middlewarev2.0.2 released on January 20, 2026.
Stay up-to-date with the latest releases and news by following our repository and PyPI feed!

