[vault] Identity: restore, revocation signing, backup secret (v0.10.0) #12

Manually merged
mnovak merged 1 commits from feature/domi-revoke into main 2026-11-04 09:22:35 +01:00
Owner

The vault side of Fundamentum v1.1a (Fundamentum docs/TESSERA.md §12, docs/V1_1.md). Docs first: docs/IDENTITY.md and docs/FORMAT.md.

What

  • Enrollment::restore(phrase): the whole 24-word phrase, typed back, gives a Confirmed (same typestate end, same import). BIP39 English with checksum, any case and spacing; anything else is Error::NotAMnemonic, which names no word. The input is lowercased into a Zeroizing buffer sized so it does not reallocate.
  • Revocation: domi_mark_revoked(subkey, at) (every cert of the key, the first time stays), domi_sign_revocation(tbs), domi_record_revocation(subkey, statements).
  • domi_backup_secret(app_id): HKDF-SHA256(salt "tessera backup v1", ikm = root secret, info = app id).
  • Issued gains revoked_at and revocation (serde default, skipped when empty, so unrevoked certs serialise as before), and Default.
  • Version 0.10.0.

Self-review

  • The root still signs only two things: TSC1 certs naming it, and TRV1 statements naming it for a key the person marked revoked, at that key's revoked_at. An app holding the namespace grant can choose which events stay, never which key is revoked or when. Different domains (tessera cert v1\0, tessera revoke v1\0), and each signer refuses the other's magic (tested both ways).
  • No function returns the root. domi_backup_secret returns a derived per-app secret by design, the same class as the app's own subkey seed; the surface test lists it with that reason.
  • Compatibility: vaults from core 0.7.0 read (tested). A Custos older than 0.10.0 drops revoked_at/revocation on save: documented, as for identity itself.
  • The backup secret matches Fundamentum's test vector (mailbox seed and the seal tag), so Custos and tessera derive the same keys.

Tests: identity 15 (6 new: restore, wrong phrases, revocation signing, old records, the backup vector). Workspace 145 in release. Clippy: no new warnings (one existing in signing.rs). Changed files formatted with rustfmt --edition 2024 only.

The vault side of Fundamentum v1.1a (Fundamentum docs/TESSERA.md §12, docs/V1_1.md). Docs first: docs/IDENTITY.md and docs/FORMAT.md. **What** - `Enrollment::restore(phrase)`: the whole 24-word phrase, typed back, gives a `Confirmed` (same typestate end, same `import`). BIP39 English with checksum, any case and spacing; anything else is `Error::NotAMnemonic`, which names no word. The input is lowercased into a `Zeroizing` buffer sized so it does not reallocate. - Revocation: `domi_mark_revoked(subkey, at)` (every cert of the key, the first time stays), `domi_sign_revocation(tbs)`, `domi_record_revocation(subkey, statements)`. - `domi_backup_secret(app_id)`: `HKDF-SHA256(salt "tessera backup v1", ikm = root secret, info = app id)`. - `Issued` gains `revoked_at` and `revocation` (serde default, skipped when empty, so unrevoked certs serialise as before), and `Default`. - Version 0.10.0. **Self-review** - The root still signs only two things: `TSC1` certs naming it, and `TRV1` statements naming it **for a key the person marked revoked, at that key's `revoked_at`**. An app holding the namespace grant can choose which events stay, never which key is revoked or when. Different domains (`tessera cert v1\0`, `tessera revoke v1\0`), and each signer refuses the other's magic (tested both ways). - No function returns the root. `domi_backup_secret` returns a derived per-app secret by design, the same class as the app's own subkey seed; the surface test lists it with that reason. - Compatibility: vaults from core 0.7.0 read (tested). A Custos older than 0.10.0 drops `revoked_at`/`revocation` on save: documented, as for `identity` itself. - The backup secret matches Fundamentum's test vector (mailbox seed and the seal tag), so Custos and tessera derive the same keys. **Tests**: identity 15 (6 new: restore, wrong phrases, revocation signing, old records, the backup vector). Workspace 145 in release. Clippy: no new warnings (one existing in signing.rs). Changed files formatted with `rustfmt --edition 2024` only.
mnovak added 1 commit 2026-11-04 09:21:48 +01:00
mnovak changed title from probe to [vault] Identity: restore, revocation signing, backup secret (v0.10.0) 2026-11-04 09:21:55 +01:00
mnovak manually merged commit 4e386e8113 into main 2026-11-04 09:22:35 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/CustosPublic#12