Documentation
¶
Overview ¶
Package simulator manages the lifecycle of vendor-provided wallet simulator binaries: downloading them to a local cache with SHA256 verification, starting them as a subprocess, and tearing them down.
This package is vendor-agnostic. Wallet-specific glue (which binaries to use, how to dial the running process) lives in bitbox/simulator, ledger/simulator, trezor/simulator, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Binary ¶
type Binary struct {
// Name is a human-readable label, used for cached filenames and logs
// (e.g. "bitbox02-multi-v9.26.1-simulator1.0.0-linux-amd64").
Name string
// URL is the absolute download location.
URL string
// SHA256 is the lowercase hex-encoded expected digest.
SHA256 string
}
Binary describes a downloadable simulator artifact.
type Cache ¶
type Cache struct {
Dir string
// contains filtered or unexported fields
}
Cache is a content-addressed directory of downloaded simulator binaries. Repeated Resolve calls for the same Binary return immediately after the first download.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process is a running simulator subprocess.
Click to show internal directories.
Click to hide internal directories.