mnovak 553f13b265 [vault] Licences: the domi-licence key, the strict payload parser, the licence grant (0.21.0)
The key that signs Domi licences and revocation lists (Fundamentum docs/LICENCE.md, licence v1): Ed25519 under
the reserved id domi-licence, no scope, refused by every other signing path, signing plain Ed25519 over the exact
payload. The payload is parsed first, as the spec's strict parser does (section 2.4 steps 1-4 and 7, section 4.1),
and a malformed one is refused with the spec's code and no card. The licence grant (Mark's click) signs a licence
from licence-issue whose apps are on the allowlist, within 50 a day, without a card; anything else that is well
formed asks on a card, a revocation list always. Refused outright: a licence dated more than a day from this clock,
a licence id signed before (replay), a seq not above the highest signed (rollback), any other caller. The grant and
the log live in signing.licence, which older cores ignore; the key is an ordinary Ed25519 entry every core reads.

Not compiled or tested yet: the PC is over Mark's 90 % rule.
2026-11-28 21:47:14 +01:00

Custos Domi — core

The public, auditable core of Custos Domi, a small local-first password and secret manager: everything that touches plaintext or keys.

Crate What
custos-vault The .custos file: Argon2id → key slot → XChaCha20-Poly1305, atomic save, typed items
custos-gen Memorable passwords (Word7-Other3-Third9-Fourth2), nicknames (GitHub.Lantern.47), random, PIN, strict-site
custos-totp TOTP (RFC 6238) and HOTP (RFC 4226), otpauth:// URIs
custos-qr QR payloads: Wi-Fi join codes (escaped), plain secrets
custos-share Private share links: encrypted in the sender's app, key in the link's #fragment, optional password (docs/SHARE.md)
custos-wasm The same code compiled to WebAssembly for the web vault and the share page (no wasm-bindgen; js/custos.mjs is the whole JS side)
custos-kdbx KeePass import (KDBX 3.1 and 4) and export (KDBX 4), checked against KeePassXC (docs/KDBX.md)
custos-browser, custos-native, extension/ The Edge/Chrome extension, its native messaging host and the rule for which login belongs on which page (docs/BROWSER.md)

Read docs/FORMAT.md for the file format and docs/THREAT_MODEL.md for what it does and does not protect. Report vulnerabilities as described in SECURITY.md.

cargo test --workspace

Licence

CustosPublic is licensed under the Common Public Attribution License 1.0 (SPDX CPAL-1.0), from v0.20.0 on: see LICENSE. Versions before this change (up to and including v0.19.1) stay available under MPL-2.0 to those who received them under it.

Attribution (Exhibit B). Anyone who redistributes CustosPublic, or software built on it, must show this credit where CPAL-1.0 §14 asks for it:

Attribution Copyright Notice Copyright (c) 2026 Marek Novák
Attribution Phrase Built on Domi
Attribution URL https://aula.marek-novak.cz
Graphic Image none

Third-party parts keep their own licences. The memorable-password words come from the EFF wordlist (CC BY 3.0 US), filtered with the ESDB/SCOWL English dictionary (see crates/custos-gen/wordlists/SOURCES.md).

S
Description
No description provided
Readme 2.3 MiB
2026-11-03 23:11:50 +01:00
Languages
Rust 96.3%
JavaScript 2%
Python 0.8%
PowerShell 0.5%
Shell 0.2%
Other 0.1%