@finalclass TunnelIdentityWhat a launcher keeps to verify its VM: the host’s secret seed and the VM’s public key, both base64.
From Sandbox.tunnel_identity after a run(identity=True), from a NameRecord, or built
from the two values microvm run --identity prints. Holds a secret: host_seed stays out
of repr; store it only where the agent token goes.
Constructor
Section titled “Constructor”TunnelIdentity(host_seed: str, vm_public_key: str)Rebuilds the pair from its base64 spellings. Refuses a value that doesn’t decode, or a seed or key of the wrong length.
Properties
Section titled “Properties”host_seed
Section titled “host_seed”host_seed: strThe host’s secret half, base64. Store only privately; never in repr.
vm_public_key
Section titled “vm_public_key”vm_public_key: strThe VM’s public key, base64: the pin. Safe to print and compare.
Special methods
Section titled “Special methods”__eq__
Section titled “__eq__”def __eq__(other: object, /) -> bool__repr__
Section titled “__repr__”def __repr__() -> strProvenance
Section titled “Provenance”This page is generated from bindings/microvms-py/microvms.pyi by Griffe 2.3.0, run from site/scripts/gen-reference.mjs on every pnpm run sync, so an edit made here is overwritten by the next run.
To change the page, change the doc comment in the binding’s Rust source, then regenerate the declarations with mise run stubs. mise run stubs:check fails when the committed file no longer matches the source.