internal/

directory
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0

Directories

Path Synopsis
Package auth is the CLI's authentication core.
Package auth is the CLI's authentication core.
Package beacons is a thin client for the Truestamp Beacons JSON:API surface (GET /api/json/beacons, /beacons/latest, /beacons/:id, /beacons/by-hash/:hash).
Package beacons is a thin client for the Truestamp Beacons JSON:API surface (GET /api/json/beacons, /beacons/latest, /beacons/:id, /beacons/by-hash/:hash).
Package blocks is a thin client for the Truestamp Blocks JSON:API surface (GET /api/json/blocks, /blocks/:id).
Package blocks is a thin client for the Truestamp Blocks JSON:API surface (GET /api/json/blocks, /blocks/:id).
Package config resolves the CLI's runtime configuration from compiled defaults, an optional TOML config file, environment variables, and command-line flags, in that order, with later sources overriding earlier ones.
Package config resolves the CLI's runtime configuration from compiled defaults, an optional TOML config file, environment variables, and command-line flags, in that order, with later sources overriding earlier ones.
Package console implements the interactive `truestamp console` TUI: a multi-pane Bubble Tea application that holds an authenticated WebSocket connection to the Truestamp backend and lets the user observe live events, create timestamped items, and inspect connection diagnostics.
Package console implements the interactive `truestamp console` TUI: a multi-pane Bubble Tea application that holds an authenticated WebSocket connection to the Truestamp backend and lets the user observe live events, create timestamped items, and inspect connection diagnostics.
chrome
Package chrome provides the structural primitives that wrap every console pane: a fixed Page layout (header + body + footer), a Theme that centralizes colors / paddings / separators, a Header that draws the tab bar plus status pill, and a Footer that auto-renders keybinding hints from the active pane's help.KeyMap.
Package chrome provides the structural primitives that wrap every console pane: a fixed Page layout (header + body + footer), a Theme that centralizes colors / paddings / separators, a Header that draws the tab bar plus status pill, and a Footer that auto-renders keybinding hints from the active pane's help.KeyMap.
events
Package events projects raw `stream` payloads from the console wire protocol into a canonical Row that drives the Monitor pane's table renderer.
Package events projects raw `stream` payloads from the console wire protocol into a canonical Row that drives the Monitor pane's table renderer.
keys
Package keys centralises all keyboard bindings for the console TUI.
Package keys centralises all keyboard bindings for the console TUI.
Package encoding is a small translation layer over the stdlib encoders used across the Truestamp wire format: hex, base64 (standard, RFC 4648 §4) and base64url (RFC 4648 §5).
Package encoding is a small translation layer over the stdlib encoders used across the Truestamp wire format: hex, base64 (standard, RFC 4648 §4) and base64url (RFC 4648 §5).
Package entropy is a thin client for the Truestamp entropy observations JSON:API surface (GET /api/json/entropy_observations and /entropy_observations/:id).
Package entropy is a thin client for the Truestamp entropy observations JSON:API surface (GET /api/json/entropy_observations and /entropy_observations/:id).
Package external reads Truestamp's keyring, /.well-known/keyring.json, for the keys commands (keys list, keys get and keys current).
Package external reads Truestamp's keyring, /.well-known/keyring.json, for the keys commands (keys list, keys get and keys current).
Package hashing is the algorithm registry behind `truestamp hash`.
Package hashing is the algorithm registry behind `truestamp hash`.
Package httpclient provides a shared HTTP client for all external API calls.
Package httpclient provides a shared HTTP client for all external API calls.
Package ids validates the two identifier shapes the read-only resource groups accept on the command line: a UUIDv7 and a 64-hex-character hash.
Package ids validates the two identifier shapes the read-only resource groups accept on the command line: a UUIDv7 and a 64-hex-character hash.
Package inputsrc resolves a CLI input to a byte slice (or a stream) from one of six conventional sources: a positional argument, an explicit file path, an interactive file picker, an explicit URL, an interactive URL prompt, or a stdin pipe.
Package inputsrc resolves a CLI input to a byte slice (or a stream) from one of six conventional sources: a positional argument, an explicit file path, an interactive file picker, an explicit URL, an interactive URL prompt, or a stdin pipe.
Package install detects how the running truestamp binary was installed.
Package install detects how the running truestamp binary was installed.
Package introspect walks a live cobra command tree and renders it as data.
Package introspect walks a live cobra command tree and renders it as data.
Package itemcode writes the item code of SPEC.md section 3.9 (The item code): a short name for an item, for people and links, computed from the 32 bytes of a recomputed item_hash, and read back from what a person types or pastes.
Package itemcode writes the item code of SPEC.md section 3.9 (The item code): a short name for an item, for people and links, computed from the 32 bytes of a recomputed item_hash, and read back from what a person types or pastes.
Package items provides API operations for Truestamp items.
Package items provides API operations for Truestamp items.
Package jcs writes JCS(x), the JSON Canonicalization Scheme of RFC 8785 (SPEC.md sections 2.2 and 2.5), and the canonical form of SPEC.md section 9.
Package jcs writes JCS(x), the JSON Canonicalization Scheme of RFC 8785 (SPEC.md sections 2.2 and 2.5), and the canonical form of SPEC.md section 9.
Package jsonapi is the one transport every Truestamp JSON:API client shares: the authenticated request carrying the tenant header, the response size cap, the one retry of a rate-limited request, and the classification of the error envelope into a small set of sentinels a command can errors.Is.
Package jsonapi is the one transport every Truestamp JSON:API client shares: the authenticated request carrying the tenant header, the response size cap, the one retry of a rate-limited request, and the classification of the error envelope into a small set of sentinels a command can errors.Is.
Package jsonnumber reads a JSON number as it is written, for the reads that must keep an integer past 2^53 exact or print a number as its source wrote it.
Package jsonnumber reads a JSON number as it is written, for the reads that must keep an integer past 2^53 exact or print a number as its source wrote it.
Package logging provides a file-backed structured logger for the truestamp CLI: a single JSON-line log per invocation, written to a rotated file the user can grep later.
Package logging provides a file-backed structured logger for the truestamp CLI: a single JSON-line log per invocation, written to a rotated file the user can grep later.
Package proof fetches proofs from the Truestamp service: the exact bytes of a proof from the raw proof route, the name `proofs get --to-file` gives a proof, the service's refusals to serve one, and the shape of a subject id and the server's resolution of an id to its subject type.
Package proof fetches proofs from the Truestamp service: the exact bytes of a proof from the raw proof route, the name `proofs get --to-file` gives a proof, the service's refusals to serve one, and the shape of a subject id and the server's resolution of an id to its subject type.
Package redact is the single source of truth for stripping Truestamp-specific secrets out of strings before they reach disk, stderr, error chains, or anywhere else an attacker could read them.
Package redact is the single source of truth for stripping Truestamp-specific secrets out of strings before they reach disk, stderr, error chains, or anywhere else an attacker could read them.
Package registry is the byte-prefix registry of SPEC.md section 4 and the hashes computed under it.
Package registry is the byte-prefix registry of SPEC.md section 4 and the hashes computed under it.
Package selfupgrade implements the in-place upgrade flow for users who installed truestamp via docs/install.sh or manual tarball extraction.
Package selfupgrade implements the in-place upgrade flow for users who installed truestamp via docs/install.sh or manual tarball extraction.
Package specdata holds what a verifier pins (SPEC.md section 9): every file under the spec repository's spec/, the 12 files and the constructions texts under constructions/, embedded byte for byte from verification/spec/ beside this file, with verification/SOURCE naming the spec commit they came from.
Package specdata holds what a verifier pins (SPEC.md section 9): every file under the spec repository's spec/, the 12 files and the constructions texts under constructions/, embedded byte for byte from verification/spec/ beside this file, with verification/SOURCE naming the spec commit they came from.
Package strictjson reads a JSON text under the parsing rules J1 to J6 of SPEC.md section 10.1 (Parsing), steps READ (J1) and PARSE (J2 to J6) of section 10.2, each rule chosen so that no two verifiers read one file differently.
Package strictjson reads a JSON text under the parsing rules J1 to J6 of SPEC.md section 10.1 (Parsing), steps READ (J1) and PARSE (J2 to J6) of section 10.2, each rule chosen so that no two verifiers read one file differently.
Package teams is a thin client for the Truestamp Teams + Memberships JSON:API surfaces (GET /api/json/teams, /api/json/memberships).
Package teams is a thin client for the Truestamp Teams + Memberships JSON:API surfaces (GET /api/json/teams, /api/json/memberships).
Package tscrypto holds small hash and encoding helpers: a one-byte domain-separated SHA-256, the constant-time comparisons, and the UUIDv7 time reader convert id uses.
Package tscrypto holds small hash and encoding helpers: a one-byte domain-separated SHA-256, the constant-time comparisons, and the UUIDv7 time reader convert id uses.
Package ui provides shared styling for the Truestamp CLI using lipgloss v2.
Package ui provides shared styling for the Truestamp CLI using lipgloss v2.
Package upgradecheck handles passive "new version available" notices emitted after unrelated commands succeed.
Package upgradecheck handles passive "new version available" notices emitted after unrelated commands succeed.
Package vectorcases loads the conformance cases of SPEC.md section 13.2 (The vectors), testdata/verification/vectors/cases.json, for the tests that run them.
Package vectorcases loads the conformance cases of SPEC.md section 13.2 (The vectors), testdata/verification/vectors/cases.json, for the tests that run them.
Package verifier is the CLI's verifier of SPEC.md section 10 (The verification algorithm), built from SPEC.md and its conformance vectors (section 13.2 (The vectors)), each file naming the sections of SPEC.md it implements.
Package verifier is the CLI's verifier of SPEC.md section 10 (The verification algorithm), built from SPEC.md and its conformance vectors (section 13.2 (The vectors)), each file naming the sections of SPEC.md it implements.
bitcoin
Package bitcoin holds the strict readers of the Bitcoin bytes a commitment entry carries, for the Bitcoin evidence of DERIVE (SPEC.md section 10.2, step 9 (d)): a raw_transaction and a txoutproof, each judged well formed or not by the rules that step lists, and the values the step reads out of a well-formed one.
Package bitcoin holds the strict readers of the Bitcoin bytes a commitment entry carries, for the Bitcoin evidence of DERIVE (SPEC.md section 10.2, step 9 (d)): a raw_transaction and a txoutproof, each judged well formed or not by the rules that step lists, and the values the step reads out of a well-formed one.
ed25519
Package ed25519 holds the strict Ed25519 rule of SPEC.md section 6.2 (Strict verification) for the new verifier: CheckKeyBytes, the checks of a key's bytes (this file), and Verify, Verify(A, msg, S), which makes them and then calls Go's crypto/ed25519 (verify.go).
Package ed25519 holds the strict Ed25519 rule of SPEC.md section 6.2 (Strict verification) for the new verifier: CheckKeyBytes, the checks of a key's bytes (this file), and Verify, Verify(A, msg, S), which makes them and then calls Go's crypto/ed25519 (verify.go).
keyring
Package keyring holds a keyring and the load checks of SPEC.md section 10.2, step 0 (CONFIGURATION), which every keyring the verifier loads passes before any key in it can bind (sections 8.3 (External verifiers) and 9 (What a verifier pins)).
Package keyring holds a keyring and the load checks of SPEC.md section 10.2, step 0 (CONFIGURATION), which every keyring the verifier loads passes before any key in it can bind (sections 8.3 (External verifiers) and 9 (What a verifier pins)).
source
Package source holds the CLI verifier's readers of a Stellar or Bitcoin source, the servers SPEC.md section 9 (What a verifier pins) names under "Sources": a Horizon server for Stellar, and an Esplora server or a Bitcoin Core node for Bitcoin; and of NIST's Randomness Beacon, which section 9 makes one source, read at its one compiled-in address.
Package source holds the CLI verifier's readers of a Stellar or Bitcoin source, the servers SPEC.md section 9 (What a verifier pins) names under "Sources": a Horizon server for Stellar, and an Esplora server or a Bitcoin Core node for Bitcoin; and of NIST's Randomness Beacon, which section 9 makes one source, read at its one compiled-in address.
Package verify holds what `truestamp verify --remote` uses beside this CLI's own verifier: AskRemoteCtx posts a proof file's bytes to the Truestamp service and gives the label of the report it answers with, which `verify --remote` prints beside its own report and never as a row of it or a reason code.
Package verify holds what `truestamp verify --remote` uses beside this CLI's own verifier: AskRemoteCtx posts a proof file's bytes to the Truestamp service and gives the label of the report it answers with, which `verify --remote` prints beside its own report and never as a row of it or a reason code.
Package version provides build-time version information.
Package version provides build-time version information.
Package wschannel implements a minimal Phoenix Channels V2 client targeted at long-lived authenticated connections (TUI panes, daemons).
Package wschannel implements a minimal Phoenix Channels V2 client targeted at long-lived authenticated connections (TUI panes, daemons).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL