Expand description
Packaging: produce a self-contained artifact for Trident programs.
trident package creates a .deploy/ directory containing the compiled
TASM and a manifest.json with metadata:
program_digest— Poseidon2 hash of compiled TASM (what verifiers check)source_hash— content hash of the source AST- target info (VM + optional OS)
- cost analysis
- function signatures with per-function content hashes
The packaged artifact can then be deployed via trident deploy.
Structs§
- Manifest
Cost - Manifest
Function - Package
Manifest - Package manifest — all metadata about a packaged program artifact.
- Package
Result - Result of a package operation.
Functions§
- days_
to_ date - Convert days since Unix epoch to (year, month, day).
- format_
fn_ signature - Format a function signature for the manifest.
- generate_
artifact - Generate a package artifact from a compiled project.