Skip to content

Feature: Add Custodial Wallet Persistence and KMS References #135

Description

@3m1n3nc3

Description

Add wallet and managed-key-reference models without storing plaintext Stellar secrets.

File Location

learnault-api/prisma/schema.prisma, wallet migration/types, KMS interface, and tests

Design Reference

API Roadmap Phase 1: Add Custodial Wallet Persistence and KMS References.

Dependencies

Tasks

  • Add wallet user, network, custody, public key, status, and timestamps
  • Add opaque managed-key/envelope metadata only
  • Enforce intended wallet and public-key uniqueness
  • Define provisioning, active, failed, export, migrated, and disabled transitions
  • Add KMS interface and fake
  • Test migration, uniqueness, transitions, redaction, and lifecycle

Acceptance Criteria

  • Schema/DTO cannot store plaintext secret
  • Uniqueness and transitions are enforced
  • KMS references never enter ordinary responses
  • Tests pass

Verification Evidence

  • Attach schema threat review, migration, and secret-redaction tests

Difficulty

Advanced

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions