Expand description
Package File Format
Binary format specification for VeridianOS packages (.vpkg files).
This module is organized into submodules:
- [
compression]: LZ4, Zstandard, and Brotli compression implementations - [
signature]: Cryptographic signature structures for package verification
§Package Structure
+------------------+
| Header (64 bytes)|
+------------------+
| Metadata (JSON) |
+------------------+
| Content (files) |
+------------------+
| Signatures |
| - Ed25519 |
| - Dilithium |
+------------------+Structs§
- Package
Header - Package file header (64 bytes)
- Package
Signatures - Package signature section
- Signature
Policy - Policy controlling how the package manager enforces signature verification.
- Trusted
Key - A trusted Ed25519 public key with its SHA-256 fingerprint and trust level.
- Trusted
KeyRing - Collection of trusted Ed25519 signing keys.
Enums§
- Compression
- Compression algorithms
- Package
Type - Package types
- Trust
Level - Trust level assigned to a signing key.
Constants§
- VPKG_
MAGIC - Package file magic number
- VPKG_
VERSION - Package format version
Functions§
- compress
- Compress data using specified algorithm
- decompress
- Decompress data based on compression algorithm