Skip to main content

Module deploy

Module deploy 

Source
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§

ManifestCost
ManifestFunction
PackageManifest
Package manifest — all metadata about a packaged program artifact.
PackageResult
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.