Skip to main content

Module signature

Module signature 

Source
Expand description

Signed widget packages (docs/specs/SPEC_WIDGET_SHARING_2026_10_10.md §2).

A package may carry widget.sig: an Ed25519 signature by its publisher over its id, version and content hash. The content hash leaves widget.sig out, so signing doesn’t change what was approved. srv pins each publisher (the part of the id before the dot) to the first key the user approved for it, and reports any later package of that publisher signed by another key, or not signed, as key_changed.

Job templates share the file format and the verifier under their own signing domain (docs/specs/SPEC_JOBS_AND_TEMPLATES_2026_10_24.md §5.4): the domain’s prefix is part of the signed bytes, so a widget’s signature never passes as a template’s, or a template’s as a widget’s.

Structs§

Domain
What a signature is for: the prefix of the bytes it signs, and the file at the package’s root it lives in (left out of the package’s hash).
WidgetPublisherPin
A publisher pinned to a key, for Settings.
WidgetSignatureInfo

Enums§

SignatureState

Constants§

COMPUTER_USE_SKILL
A computer-use skill (docs/specs/SPEC_PACKS_2026_11_05.md §5): signed over <publisher>.<id>, its version and its content hash.
JOB_TEMPLATE
SIG_FILE
WIDGET

Functions§

check
The domain’s signature file in dir: None when there is none, the publisher’s public key (base64) when it verifies, or why it doesn’t.
describe
fingerprint
A key as people compare it: the first 10 bytes of its SHA-256, base32, in groups of four (K7Q2-MZ4D-PX3A-9TWE).
publisher_of
The publisher part of a package id (acme of acme.pr-dashboard).
read_pins
The pins that read, each on its own; one this build cannot read is kept on disk by write_pins.
signed_message
The bytes a publisher signs for a package of domain.
verify_text
Check signature text already read (an imported skill’s skill.sig): the publisher’s public key when it verifies.
write_pins
Writes pins, and keeps every pin already on disk that this build cannot read, exactly as it was.
write_pins_removing
write_pins for forgetting removed: dropped from the file even when this build cannot read it.

Type Aliases§

Pins
publisher → public key (base64).