[codex] Add BRC-38/39 wallet portability - #117
Merged
sirdeggen merged 1 commit intoMay 14, 2026
Merged
Conversation
ty-everett
marked this pull request as ready for review
May 12, 2026 01:00
sirdeggen
approved these changes
May 14, 2026
This was referenced Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
storage/portablemodule for BRC-38 plaintext wallet export/import and BRC-39 encrypted export/import.Why
Wallet Toolbox already has chunked synchronization and merge behavior for BRC-40, but it did not expose the BRC-38 plaintext portability format or the BRC-39 encrypted download/import envelope. These APIs give consumers a library-only path to export, restore, and merge user wallet data while keeping BRC-40 sync semantics separate.
Details
@bsv/sdkAES-GCM with an explicit nonce.moduleResolution: node.Validation
npm run buildnpx ts-standard src/storage/portable/index.tsnpx ts-standard src/types/bsv-sdk-aesgcm.d.tsnpx jest test/storage/portable.test.ts --runInBandnpx jest test/storage/idb/update.test.ts --runInBandFull non-manual Jest suite was also attempted with
npx jest --testPathIgnorePatterns=man.test.ts --runInBand. It hittest/storage/idb/update.test.ts › 2_update ProvenTxReqwith a fake-indexeddbAbortError; that same file passes when rerun in isolation.