Expand description
License generation functionality (server-side)
This module provides license generation using the pluggable cryptographic architecture. It supports multiple signature algorithms (RSA-SHA256, Ed25519, etc.).
§Example
ⓘ
use licenz_core::generator::{CryptoGenerator, LicenseGenerator};
use licenz_core::crypto::algorithm_ids;
// New algorithm-agnostic generator (recommended)
let generator = CryptoGenerator::new(private_key_pem, algorithm_ids::ED25519);
let license = generator.generate(license_data).unwrap();
// Legacy RSA-only generator (backward compatible)
let generator = LicenseGenerator::new(rsa_private_key);Structs§
- Crypto
Generator - Algorithm-agnostic license generator that supports multiple signature algorithms
- License
Generator - License generator for creating and signing licenses