-
Notifications
You must be signed in to change notification settings - Fork 205
feat: key export #2249
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
feat: key export #2249
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
How to use the Graphite Merge QueueAdd the label graphite-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
🌿 Documentation Preview
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine to me, but left a question in slack
| opts.type === "ETHEREUM" | ||
| ? "ADDRESS_FORMAT_ETHEREUM" | ||
| : "ADDRESS_FORMAT_SOLANA"; | ||
| const keyFormat = opts.type === "ETHEREUM" ? "HEXADECIMAL" : "SOLANA"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol that the key format type is solana here and not b58
|
|
||
| const wallets = await turnkeyClient.getWalletAccounts({ organizationId }); | ||
| const account = wallets.accounts.find( | ||
| (account) => account.addressFormat === targetAddressFormat, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be impossible for one TK sub-org to have multiple eth wallets, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct in our setup
Pull Request Checklist
yarn test)sitefolder, and guidelines for updating/adding docs can be found in the contribution guide)feat!: breaking change)yarn lint:check) and fix any issues? (yarn lint:write)PR-Codex overview
This PR introduces functionality for exporting private keys in an encrypted format, enhancing security for both single and multi-owner accounts. It adds new interfaces and methods to facilitate this process, allowing users to export their private keys securely.
Detailed summary
exportPrivateKeyEncryptedmethod to export a private key encrypted with a public key.ExportPrivateKeyParamsandMultiOwnerExportPrivateKeyParamsinterfaces for export parameters.ExportPrivateKeyEncryptedResultinterface for the export result structure.experimental_multiOwnerExportPrivateKeyEncryptedmethod for multi-owner organizations, leveraging the new export functionality.