Expand description
Official catalog license — pure types + signing/verification (no I/O).
Model mirrors fleet_bundle.rs: canonical sign input = the struct
serialized as JSON with sig cleared; Ed25519 over those bytes. The
license binds an official catalog item to one app.mur.run account.
Expiry gates downloads/updates only — never installed content.
Structs§
- Official
License - A signed record binding an official catalog item to one app.mur.run account.
Enums§
- License
Check - Outcome of a full license check. Order of checks: signature → signer identity → item binding → user binding (fail-closed at the first miss).
Constants§
- DISTRIBUTION_
OFFICIAL - Value of the
distributionmarker stamped inside official bundle manifests. - OFFICIAL_
LICENSE_ FORMAT - License wire-format version. Bump on any breaking change.
Functions§
- check_
license - Full check against an expected item + logged-in user + official key fp.
official_fpis a parameter for testability; production callers passMUR_OFFICIAL_PUBLISHER_KEY_FP. Expiry is deliberately NOT checked here. - license_
key_ fp - Publisher-trust-style fingerprint (
ed25519-<8hex>) of the embedded key. - license_
sign_ input - Canonical signing input: the license serialized with
sigcleared. - sign_
license - Sign in place: fills
signer_pubkeyfromkeyand setssig. - verify_
license_ sig - Verify
sigagainst the embeddedsigner_pubkey. False on any failure.