Skip to content

Add turnkey-crypto: HPKE target keys and bundle decryption for export activities #28

Open

Description

@figitaki

Export activities (EXPORT_WALLET, EXPORT_WALLET_ACCOUNT, EXPORT_PRIVATE_KEY, and EXPORT_SECRETS after #20) return a bundle encrypted to a target key the caller supplies. The TypeScript SDK ships this in @turnkey/crypto (P-256 HPKE, HKDF-SHA256, AES-256-GCM, plus the enclave quorum key check on the bundle). Python has no counterpart, so a Python caller cannot complete an export or import flow.

Follow-up: add a turnkey-crypto package with target key generation, bundle verification against the enclave quorum public key, decryption, and the matching encryption path for import. Match @turnkey/crypto byte for byte and reuse its test vectors. Depends on the cryptography package the stamper already uses.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions