feat(base,app,keys): keys of shared spaces, sealed to each member
Step 3 of ADR 0044 (D3, D18, D19). A shared space's data keys are sealed on a device to each member's public keys; the instance keeps what devices sealed and never opens it. - halkyon_keys: the safety code of two accounts' public keys (`safetyCode`), 60 digits, the same on both sides. - halkyon_base: the register hands out accounts' public keys (`public-keys-of`, local and remote); the table `shared_space_key` and the endpoint `sharedSpaceKeys` (memberKeys, keysNeeded, seal, mine). Only the Owner and Editors seal, the first key sealed to a member stays, and a member's keys go with their membership. Every host's migration creates the table. - halkyon_app: `ContentCipher` seals a key to another account and opens one sealed by another; `SharedKeys` shares a space's key with its members, seals keys to newcomers and opens the person's own, holding each member to the public keys `KeyPins` pinned on first sight (`key_pins.json` in the person's folder), a change refused until trusted anew. Learn takes them into its `Privacy` in step 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
d08d8ad545
commit
b72cea1fe0
1 changed files with 105813 additions and 5 deletions
|
|
@ -42,11 +42,18 @@
|
|||
/// - **Sync**: `SyncService` on triggers, the changes still waiting, and
|
||||
/// where it stands (`SyncStatusBloc`, `SyncStatusCard`, `AppMismatchBanner`,
|
||||
/// `SyncTroubleBadge`).
|
||||
/// - **Shared spaces' keys** (Halkyon's ADR 0044, D3, D18): `SharedKeys`
|
||||
/// seals a space's data keys to its members and opens those sealed to
|
||||
/// the person, holding each member to the public keys `KeyPins` pinned
|
||||
/// on first sight, with the safety code to compare them by.
|
||||
///
|
||||
/// An app gives its name, look and own words as an `AppFrame`, and installs
|
||||
/// `HalkyonAppLocalizations.delegate` beside its own.
|
||||
library;
|
||||
|
||||
// A member's public keys, as `SharedKeys` and `KeyPins` take them.
|
||||
export 'package:halkyon_keys/halkyon_keys.dart' show PublicKeys;
|
||||
|
||||
export 'l10n/halkyon_app_localizations.dart';
|
||||
export 'src/app/about.dart';
|
||||
export 'src/app/app_frame.dart' show AppFrame, AppFrameScope, LookSettings;
|
||||
|
|
@ -177,6 +184,10 @@ export 'src/profile/model/public_profile.dart';
|
|||
export 'src/profile/widget/halkyon_profile.dart';
|
||||
export 'src/profile/widget/profile_sheet.dart';
|
||||
export 'src/profile/widget/public_profile_section.dart';
|
||||
export 'src/shared_space/key_pins.dart';
|
||||
export 'src/shared_space/serverpod_shared_keys_gateway.dart';
|
||||
export 'src/shared_space/shared_keys.dart';
|
||||
export 'src/shared_space/shared_keys_gateway.dart';
|
||||
export 'src/simplelogin/bloc/simplelogin_cubit.dart';
|
||||
export 'src/simplelogin/bloc/simplelogin_standing_cubit.dart';
|
||||
export 'src/simplelogin/data/serverpod_simplelogin_gateway.dart';
|
||||
|
|
|
|||
Loading…
Reference in a new issue