[vault] Identity: restore, revocation signing, backup secret (v0.10.0) #12
Reference in New Issue
Block a user
Delete Branch "feature/domi-revoke"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 aConfirmed(same typestate end, sameimport). BIP39 English with checksum, any case and spacing; anything else isError::NotAMnemonic, which names no word. The input is lowercased into aZeroizingbuffer sized so it does not reallocate.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).Issuedgainsrevoked_atandrevocation(serde default, skipped when empty, so unrevoked certs serialise as before), andDefault.Self-review
TSC1certs naming it, andTRV1statements naming it for a key the person marked revoked, at that key'srevoked_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).domi_backup_secretreturns 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.revoked_at/revocationon save: documented, as foridentityitself.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 2024only.probeto [vault] Identity: restore, revocation signing, backup secret (v0.10.0)