Skip to content

Commit 335718f

Browse files
author
Olivia Thet
committed
small wording changes
1 parent 77987c0 commit 335718f

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

docs/integration-guides/export-wallets.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ slug: /integration-guides/export-wallets
77

88
Turnkey's export functionality allows your end users to backup or transer a [Wallet](../getting-started/Wallets.md) by securely viewing the wallet's [mnemonic phrase](https://learnmeabitcoin.com/technical/mnemonic). We engineered this feature to ensure that the user can export their mnemonic without exposing the mnemonic itsef to Turnkey or your application.
99

10-
Follow along with the guide below to set up Wallet export for your end users.
10+
Follow along with the guide below to set up Wallet Export for your end users.
1111

1212
## Before you start
1313
Make sure you have created a wallet for your user. Check out our [Quickstart guide](../getting-started/Quickstart.md) if you need help getting started.
@@ -31,9 +31,9 @@ Here's a diagram summarizing the wallet export flow step-by-step ([direct link](
3131

3232
Let's review these steps in detail:
3333

34-
1. User on `yoursite.xyz` clicks "export", and a new export UI is shown. We recommend setting this export UI as a new hosted page of your site or application that contains language explaining to the user the security best practices they should follow once they've successfully exported their wallet. Remember: once the wallet has been exported, Turnkey can no longer ensure its security.
34+
1. When a user on your application clicks "export", display a new export UI. We recommend setting this export UI as a new hosted page of your application that contains language explaining the security best practices users should follow once they've successfully exported their wallet. Remember: once the wallet has been exported, Turnkey can no longer ensure its security.
3535

36-
While the UI is in a loading state, your frontend uses [`@turnkey/iframe-stamper`](https://www.npmjs.com/package/@turnkey/iframe-stamper) to insert a new iframe element:
36+
While the UI is in a loading state, your application uses [`@turnkey/iframe-stamper`](https://www.npmjs.com/package/@turnkey/iframe-stamper) to insert a new iframe element:
3737
```js
3838
const iframeStamper = new IframeStamper({
3939
iframeUrl: "https://export.turnkey.com",
@@ -50,16 +50,14 @@ Let's review these steps in detail:
5050

5151
return (
5252
// The iframe element can be hidden until the wallet is exported
53-
<div
54-
style={{ display: displayIframe }}
55-
/>
53+
<div style={{ display: displayIframe }} />
5654
);
5755
```
58-
2. Your code receives the iframe public key. Your app prompts the user to sign a new `EXPORT_WALLET` activity with the wallet ID and the iframe public key in the parameters.
59-
3. Your app polls for the activity response, which contains an export bundle. Remember: this export bundle is an encrypted mnemonic which can only be decrypted within the iframe.
56+
2. Your code receives the iframe public key. Your application prompts the user to sign a new `EXPORT_WALLET` activity with the wallet ID and the iframe public key in the parameters.
57+
3. Your application polls for the activity response, which contains an export bundle. Remember: this export bundle is an encrypted mnemonic which can only be decrypted within the iframe.
6058

6159
Need help setting up async polling? Checkout our guide and helper [here](https://github.com/tkhq/sdk/tree/main/packages/http#withasyncpolling-helper).
62-
4. Your app injects the export bundle into the iframe for decryption and displays the iframe upon success:
60+
4. Your application injects the export bundle into the iframe for decryption and displays the iframe upon success:
6361
```js
6462
// Inject export bundle into iframe
6563
let success = await iframeStamper.injectWalletExportBundle(exportBundle);
@@ -91,7 +89,7 @@ iframe {
9189
`;
9290
9391
return (
94-
<div style={{ display: props.iframeDisplay }} id="your-container">
92+
<div style={{ display: iframeDisplay }} id="your-container">
9593
<style>{iframeCss}</style>
9694
</div>
9795
);

0 commit comments

Comments
 (0)