You're offline — Documentation cached for offline reading

Architecture Overview

Zero-Knowledge Architecture: Ebb is built on the principle that your most intimate health data should be accessible only to you. We use client-side encryption, homomorphic encryption for analytics, and secure multi-party computation for partner sharing.

Core Principles

Ebb implements a zero-trust architecture where your device is the only trusted party. All data is encrypted using AES-256-GCM before leaving your device, and our servers (if used for sync) only store ciphertext.

1. Client-Side Encryption

All cycle data is encrypted in your browser using the Web Crypto API. The encryption keys are derived using Argon2id, a memory-hard password hashing algorithm resistant to GPU attacks.

// Encryption flow
const key = await deriveKey(password, salt); // Argon2id
const encrypted = await crypto.subtle.encrypt(
  { name: "AES-GCM", iv: nonce },
  key,
  plaintext
);

2. Homomorphic Encryption

For research participation, we implement partial homomorphic encryption (TFHE scheme) allowing computation on encrypted data without decryption. This enables aggregate statistical analysis while preserving individual privacy.

3. Secure Multi-Party Computation (MPC)

Partner Sync uses SPDZ protocol for secure two-party computation. Your partner learns fertility windows without accessing raw cycle data.

Data Flow

  1. Input: User enters data in browser form.
  2. Encryption: Data encrypted via Web Crypto API (AES-256-GCM).
  3. Storage: Ciphertext stored in IndexedDB (local) or transmitted encrypted to sync server.
  4. Retrieval: Ciphertext decrypted only in your browser with your private key.
  5. Export: Data exported with cryptographic signatures for medical verification.