Skip to main content

mint

Function mint 

Source
pub fn mint(
    spec: MintSpec,
    opts: &MintOptions,
    entropy: &mut impl Entropy,
    now: Timestamp,
) -> Result<AttributionManifest, MintError>
Expand description

Mint an attribution manifest. Pure: same inputs (including the entropy stream) ⇒ same manifest.

Guarantees on success:

  • exactly one catch-all variant exists (synthesized from the target when the caller declared none — the zero-ceremony path), positioned last so declared variants always win ties;
  • the serialized manifest is within MANIFEST_SIZE_CAP_BYTES;
  • version starts at 1 (the CAS baseline for lifecycle mutations, C-9).