Shield Key & View Key Derivation

Papillae uses deterministic key derivation to generate all necessary keys from a single source:

Key Hierarchy:

Master Wallet Signature

    Master Seed

    ┌────┴────┐
    ↓         ↓
Spending   Viewing
  Seed      Seed
    ↓         ↓
    ↓    ┌────┴────┐
    ↓    ↓         ↓
    ↓  View    View
    ↓  Private Public
    ↓   Key     Key

Spending
 Private
   Key

Spending
 Public
   Key

 Stealth
 Address

Derivation Process:

Step 1: Master Seed Generation

Step 2: Spending Key Derivation

Step 3: Viewing Key Derivation

Step 4: Stealth Address Derivation

Key Properties:

  • Deterministic: Same master wallet always generates same keys

  • Non-custodial: Keys never leave user’s device

  • Recoverable: Can regenerate all keys from master wallet signature

  • Hierarchical: Follows BIP-32 style derivation

  • Independent: Spending and viewing keys are cryptographically separate

Security Considerations:

  • Master wallet signature should be generated in secure environment

  • Private keys stored encrypted in browser’s IndexedDB

  • Spending key required for transactions (hot storage)

  • Viewing key can be safely shared (read-only access)

  • Lost master wallet = lost access (implement backup mechanisms)

  • Stealth address computationally unlinked to master wallet

Key Storage:

Last updated