> For the complete documentation index, see [llms.txt](https://gotsol.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gotsol.gitbook.io/docs/owner-functions/wallet-export.md).

# Wallet Export

<figure><img src="https://1423349738-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe2mXQd1JIUOOQ9nl9PcL%2Fuploads%2Fp1v3tKwKZdTdOXkR7Ks3%2F2388.png?alt=media&#x26;token=37ac2839-fdcf-464f-89b6-86b12c413041" alt="GotSOL Wallet Export screen showing self-custody private key export"><figcaption><p>not your keys, not your wallet</p></figcaption></figure>

The Export Wallet feature is powered by Privy, a secure wallet infrastructure provider specializing in embedded wallets for Web3 applications. This feature allows users to export their private key from their GotSOL embedded wallet, enabling them to regain full self-custody and import it into external wallets like Solflare or Backpack.

The export option serves as an "escape hatch," ensuring users are not locked into the POS and can move their assets freely.

{% hint style="info" %}
Solana-Specific: For Solana wallets, the export provides the full private key, compatible with wallets like Solflare or Backpack.
{% endhint %}

## What is the [Privy Export](https://docs.privy.io/wallets/wallets/export) Feature?

* Embedded Wallets in GotSOL: When users sign up via email, phone, social login (e.g., X/Twitter), or even external wallets, GotSOLpay creates an embedded Solana wallet behind the scenes using Privy's key management. This wallet supports gasless transactions, fiat onramps, and multi-chain transfers without requiring users to handle complex seed phrases upfront.
* Export Functionality: The export feature reveals the full private key (for Solana) or seed phrase, which users can copy and import elsewhere. This is accessible via the app's wallet settings (e.g., under "Export Wallet" in the menu).

<figure><img src="https://1423349738-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe2mXQd1JIUOOQ9nl9PcL%2Fuploads%2FhqyNLSxQSqnEIlNe4Z66%2F2385.png?alt=media&#x26;token=0a0f0556-60d6-4de2-abf0-a5fa6453b94a" alt="GotSOL Wallet Export security warning and confirmation screen"><figcaption></figcaption></figure>

## Security Considerations

Privy and GotSOL prioritize security to mitigate risks associated with key exposure. Here's how it's secured:

### **Core Security Mechanisms**

* Key Splitting (Shamir's Secret Sharing): Privy shards the private key across secure enclaves (e.g., Trusted Execution Environments or TEEs). No single party, user, app, or Privy, holds the full key until export.
* Secure Assembly: During export, keys are reconstructed client-side on a isolated origin (e.g., a Privy-hosted iframe). Neither GotSOL nor Privy servers can access the assembled key/phrase.
* Browser/App Protections: Export is restricted to secure environments (HTTPS, no iframe vulnerabilities). Mobile apps use native secure storage.
* No Server Logging: Exports are not logged or transmitted to servers, ensuring zero-knowledge privacy.
* Warnings and UX Safeguards: Bold warnings, copy-only interfaces, and no "share" buttons prevent accidental leaks.

{% hint style="info" %}
Audit Status: Privy undergoes regular third-party audits (e.g., by Trail of Bits). GotSOL inherits these via integration.
{% endhint %}

{% hint style="info" %}
Recovery: No built-in recovery. lost keys mean lost funds. Users should back up exports in secure managers like 1Password (encrypted, offline).
{% endhint %}
