Expand description
PhyTrace License Validation Module.
Provides JWT-based license validation with:
- RS256 signature verification using embedded PhyWare public key
- Expiry checking with 72-hour grace period
- Dev mode bypass for local testing
- Online validation heartbeat support
Structs§
- License
Claims - Parsed claims from a license JWT
- License
Metadata - License metadata to be injected into events
- License
Validator - Validates PhyTrace license tokens
Enums§
- License
Error - License validation errors
- License
Status - Status of the license validation
Constants§
- DEFAULT_
GRACE_ PERIOD_ HOURS - Default grace period (72 hours)
- DEV_
MODE_ ENV - Environment variable for dev mode bypass
- PHYWARE_
PUBLIC_ KEY - PhyWare public key for RS256 JWT verification (placeholder) In production, this would be the actual RSA public key