Index
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
flavor.packaging
¶
This package contains the core logic for packaging and verification of Progressive Secure Provider Format (Flavor) packages.
Classes¶
PackagingOrchestrator
¶
PackagingOrchestrator(
package_integrity_key_path: str | None,
public_key_path: str | None,
output_flavor_path: str,
build_config: dict[str, Any],
manifest_dir: Path,
package_name: str,
version: str,
entry_point: str,
python_version: str | None = None,
launcher_bin: str | None = None,
builder_bin: str | None = None,
strip_binaries: bool = False,
show_progress: bool = False,
key_seed: str | None = None,
manifest_type: str = "toml",
)
Source code in flavor/packaging/orchestrator.py
Functions¶
generate_key_pair
¶
Generates a new Ed25519 key pair and saves them to PEM files.
This function is used for CLI operations where keys need to be persisted to files for later use. For internal package building where keys are used immediately and discarded, use flavor.psp.format_2025.crypto.generate_key_pair() which returns raw bytes instead.
Ed25519 is used for all PSPF packages as specified in the PSPF/2025 format. This provides: - Small keys (32 bytes public, 32 bytes private seed) - Fast signing and verification - Deterministic signatures - Strong security with no parameters to misconfigure
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
keys_dir
|
Path
|
Directory to save the key files |
required |
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[Path, Path]
|
(private_key_path, public_key_path) |
See Also
flavor.psp.format_2025.crypto.generate_key_pair: For in-memory key generation