Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export private keys and wallets #55

Merged
merged 13 commits into from
Apr 29, 2024
Merged

Export private keys and wallets #55

merged 13 commits into from
Apr 29, 2024

Conversation

oliviathet
Copy link
Contributor

@oliviathet oliviathet commented Mar 10, 2024

Summary & Motivation (Problem vs. Solution)

Supports exporting wallets and private keys via 3 steps (generate encryption key on local device, export ciphertext from turnkey secure enclave, decrypt cipher text seed phrase or key)

Wallet Export Flow

# Generate target public key (offline)
turnkey generate encryption-key \
--user <userID>

# Export (online)
turnkey wallets export \
--name "demo wallet" \
--export-bundle-output "./export_bundle.txt" \
--key-name demo 

# Decrypt (offline)
turnkey decrypt \
--export-bundle-input "./export_bundle.txt"

Private Key Export Flow

# Generate target public key (offline)
turnkey generate encryption-key \
--user <userID>

# Export (online)
turnkey private-key export \
--name "demo pk" \
--export-bundle-output "./export_bundle.txt" \
--key-name demo 

# Decrypt (offline)
turnkey decrypt \
--export-bundle-input "./export_bundle.txt"

Release Steps

See README for additional details.

  • Tag the release (once approved)
  • Attest (once merged)
  • Create release with changelog
  • Update Homebrew tap

@oliviathet oliviathet changed the title (WIP) Export private keys and wallets Export private keys and wallets Apr 24, 2024
@oliviathet oliviathet marked this pull request as ready for review April 29, 2024 16:23
@oliviathet oliviathet requested a review from timurnkey April 29, 2024 16:24
@oliviathet oliviathet merged commit b35acc5 into main Apr 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants