• v0.6.0 6e4da02351

    mnovak released this 2026-11-03 15:28:30 +01:00 | 62 commits to main since this release

    Core for Custos phase 4, the phone (CustosPublic PR #8).

    What's new

    • custos-wasm: two factors in the browser (docs/FACTORS.md "In the browser and on a phone"):
      • factors reads a vault's factor ids and types from its header;
      • recipient makes a one-time key whose secret half stays in WebAssembly memory;
      • open_with opens a vault with any two factors: the password, a sealed answer (a TOTP release or another device's approval), or a passkey's PRF output;
      • phone_enrol / phone_approve pair a phone with a PC and let it approve the PC.
    • Vault::add_factor_apart, Error::SameDevice. Two factors kept on one device (a phone's passkey and its approval key, a PC's key and its approval key) never open the vault together. Each still pairs with every other factor.
    • custos_seal::sender_code (docs/SEAL.md): the match code of a box's ephemeral key, so the receiver can confirm who sealed it.

    Tests

    84, all pass. custos-wasm builds for wasm32 with the Custos flake's Nix toolchain.

    The core is a library: there is nothing to download besides the source archives below.

    Downloads