halkyon/packages/halkyon_base_server/test/integration/support
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tizian 「ティツィアーン」 e5b9578916
feat(base): mending a broken SimpleLogin link with the handle and the recovery phrase (ADR 0020, D7)
Someone whose SimpleLogin identity is new to the register but who has an
account ("I already have one") names their handle and proves the
account's recovery phrase; the new identity takes the old one's place.

- `simpleLogin.beginMend(attempt, handle)`: the keys wrapped under the
  phrase's key, the public keys and a nonce, for the account with that
  handle (whatever its case). Only an account with keys and a SimpleLogin
  identity is mended, a link it had, as nobody adds SimpleLogin signed
  out (D10); a handle nobody has, or any other account's, gets a decoy
  from `signInDecoyKey`, the same each time. At most 10 an hour per
  handle and 30 per network.
- `simpleLogin.mend(attempt, proof)`: the phrase's proof for `mendLink`,
  binding the attempt (`mendLinkDigest`, on both sides), so a proof
  relayed from another sign-in links nobody's identity but the device's
  own; checked for the waiting identity first, which leaves the proof
  unspent. Every session of the account ends, in every service, and the
  sign-in stands ten minutes for a change, such as a lost password.
- SimpleLogin needs `SIGN_IN_DECOY_KEY` alone of ADR 0017's three keys
  (`signInDecoyKeyOf`); `addInstanceRoutes` stops a server with a
  SimpleLogin app and without it (`checkSimpleLoginMending`).
- Members ask the register for both; `RemoteRegister` and the instance
  API carry them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
2026-10-24 09:17:49 +02:00
..
curve25519.dart fix(auth): decoy encryption keys are keys a device could have made 2026-10-23 14:12:43 +02:00
fixtures.dart feat(base): signing in with SimpleLogin through the register (ADR 0020, step 2) 2026-10-24 09:17:48 +02:00
keys_device.dart feat(base): mending a broken SimpleLogin link with the handle and the recovery phrase (ADR 0020, D7) 2026-10-24 09:17:49 +02:00
mailbox.dart fix(auth): a code by mail serves only what it was asked for 2026-10-23 14:12:48 +02:00
password_device.dart test(app): the device's real cryptography meets the register's checks 2026-10-23 14:12:58 +02:00
password_support.dart fix(auth): a session's wrong codes end the session, not the account's codes 2026-10-23 14:12:47 +02:00