π‘οΈ wFabricSecurity
Zero Trust Security System for Hyperledger Fabric.
Cryptographic identity verification, code integrity validation, and secure communication.
https://wFabricSecurity.readthedocs.io/en/latest/
Overviewο
wFabricSecurity implements a comprehensive Zero Trust security model where no participant is automatically trusted. Every transaction must be cryptographically verified before processing.
In a Zero Trust architecture:
Never Trust, Always Verify - Every request is authenticated and authorized
Least Privilege Access - Users get minimum necessary permissions
Assume Breach - Continuous validation and monitoring
Key Featuresο
Feature |
Description |
|---|---|
Zero Trust Model |
Every participant and transaction must be verified before processing |
Code Integrity |
SHA-256 hash verification of source code to detect tampering |
ECDSA Signatures |
Elliptic curve cryptography (secp256k1) for message signing and verification |
Communication Permissions |
Fine-grained access control with bidirectional, outbound, and inbound options |
Message Integrity |
Hash verification to detect transmission alterations |
Rate Limiting |
Token bucket algorithm for DoS protection with configurable rates |
Retry Logic |
Exponential backoff with jitter for resilient network communication |
Certificate Caching |
LRU cache with TTL for performance optimization |
Hyperledger Fabric Integration |
Seamless integration with Fabric Gateway API and network management |
Architectureο
wFabricSecurity follows a layered modular architecture with clear separation of concerns:
Quick Startο
Install wFabricSecurity:
pip install wFabricSecurity
Create a secure Fabric interaction:
from wFabricSecurity import FabricSecurity
# Initialize security system
security = FabricSecurity(
me="Master",
msp_path="/path/to/msp",
gateway_path="/path/to/gateway"
)
# Register identity and code integrity
security.register_identity()
security.register_code(["master.py"], "1.0.0")
# Define communication permissions
security.register_communication("CN=Master", "CN=Slave")
# Create and send a signed message
message = security.create_message(
recipient="CN=Slave",
content='{"operation": "process_data", "data_id": "12345"}'
)
# Verify and process
if security.verify_message(message):
print("β Message is authentic and unaltered")
Or use the simplified interface:
from wFabricSecurity import FabricSecuritySimple
security = FabricSecuritySimple(msp_path="/path/to/msp")
# One-line verification
result = security.verify_and_process(
payload={"action": "update"},
sender="CN=Master"
)
print(f"Verification result: {result}")
Statsο
83%+
Test Coverage
300+
Unit Tests
15+
Modules
50+
Functions
Use Casesο
Secure patient data exchange between hospitals using Hyperledger Fabric with cryptographic identity verification.
Implement regulatory compliance with tamper-proof transaction logs and audit trails.
Track products across supply chains with integrity-verified smart contracts.
Zero Trust architecture for citizen services with fine-grained access control.
Documentationο
Contents
- 1. Getting Started
- 2. Prerequisites
- 3. Installation
- 4. Verification
- 5. Complete Example
- 6. Installation
- 7. Requirements
- 8. Installation via pip
- 9. Installation from Source
- 10. Docker Installation
- 11. Verification
- 12. Configuration
- 13. Troubleshooting
- 14. Uninstallation
- 15. Usage Examples
- 16. API Reference
- 17. Main Classes
- 18. Security Services
- 19. Cryptographic Services
- 20. Fabric Classes
- 21. Storage Classes
- 22. Data Models
- 23. Exceptions
- 24. Enumerations
- 25. Tutorials
- 26. Prerequisites
- 27. Tutorial 1: Basic Setup
- 28. Tutorial 2: Identity Management
- 29. Tutorial 3: Code Integrity
- 30. Tutorial 4: Communication Permissions
- 31. Tutorial 5: Rate Limiting
- 32. Tutorial 6: Fabric Integration
- 33. Best Practices
- 34. FAQ
- 35. General
- 36. Installation
- 37. Security
- 38. Hyperledger Fabric
- 39. Performance
- 40. Troubleshooting
- 41. Development
- 42. Licensing
- 43. Support
- 44. Architecture
- 45. Glossary
- 46. Changelog
- 47. Bibliography and Source Resources
Additional Resourcesο
Resource |
Link |
|---|---|
PyPI Package |
|
GitHub Repository |
|
Issue Tracker |
|
Hyperledger Fabric |
Citationο
If you use wFabricSecurity in your research or project, please cite:
@software{wFabricSecurity,
author = {William Rodriguez},
title = {wFabricSecurity: Zero Trust Security System for Hyperledger Fabric},
url = {https://github.com/wisrovi/wFabricSecurity},
version = {1.0.0},
year = {2026},
}
Rodriguez, W. (2026). wFabricSecurity: Zero Trust Security System
for Hyperledger Fabric. https://github.com/wisrovi/wFabricSecurity
Licenseο
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the βSoftwareβ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED βAS ISβ, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Last updated: |today|