For the complete documentation index, see llms.txt. This page is also available as Markdown.

Export & Import Your Data

How-To Guide: Export, restore, and import all of your LearnCard data

This guide is a step-by-step recipe for taking all of your LearnCard data with you: your keys, credentials, presentations, consent records, and more. You can save it as a single encrypted file, restore your original account from it, or copy its contents into a brand-new account.


What's in the export

An export ("bundle") is a single password-protected ZIP file containing:

  • Your key material (private-key seed, recovery phrase, and JWKs) β€” encrypted

  • Your DID and DID document

  • All of your Verifiable Credentials and Presentations β€” exactly as issued, with signatures preserved

  • Your wallet index records (so credentials keep their titles and categories)

  • Your consent records and transaction history

  • Status-list snapshots for credential revocation state at export time

  • A readable manifest.json listing every file and its SHA-256 hash

Everything sensitive is encrypted per-file using Argon2id + AES-256-GCM. The manifest.json itself stays readable so you can inspect the contents without the password.

Prerequisites

  • An initialized LearnCard wallet (@learncard/init)

  • The @learncard/holder-continuity package installed:


1. Export your data

This is the most common task: save everything to an encrypted file.

That's it β€” you now have a portable, encrypted copy of your account at ./learncard-export.zip.


2. Inspect an export (optional)

You can read a bundle back to confirm what it contains. The decrypted entries are plain W3C JSON.


3. Restore your original account

Use restore when you want your original identity back β€” same key, same DID. This decrypts the exported seed and rebuilds the wallet.

Restore recreates your identity. It does not re-upload your credentials or rebuild your index β€” for that, use import (next step). Use restore when you want to get back into your original account; use import when you want to copy credentials into a different account.


4. Import into another account

Use import when you want to copy your credentials and presentations into a different, fresh wallet. Import uploads each credential to the target wallet's storage and recreates its index records.


When to use which

Your goal
Use

Save a backup of everything

exportLearnCardBundle

See what's inside a backup

readLearnCardBundle

Get my original account back

restoreLearnCardFromBundle

Copy my credentials into a new account

importLearnCardBundle


Holder ContinuityLearnCard CLI

Last updated

Was this helpful?