Conversation
odudex
force-pushed
the
feat/bip138-c
branch
from
September 14, 2026 23:29
0ce4799 to
53242dc
Compare
Encrypt descriptor backups to their public recipient keys with a seed-derived approval mark. Recover binary or base64 backups using origin hints and common paths, with bounded work and a cache scoped to the recovery session.
Store binary backups on flash and base64 backups on SD. Restore only approved backups that pass keyed validation, deduplicate entries, and protect existing files in both persistence APIs. Bound storage reads and scanning work, run recovery at idle priority without changing watchdog subscriptions, and remove the selected persisted entry. Automatic scans reuse mounted SD storage without probing empty slots; brief scans do not flash a progress dialog.
The Descriptor Loaded page now asks whether to keep the descriptor for this session or register it on flash or SD card under a chosen name. Registering promotes the session entry in place.
odudex
force-pushed
the
feat/bip138-c
branch
from
September 16, 2026 17:43
53242dc to
4ac758b
Compare
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.
This PR is part of a parallel work with #167 (Rust based implementation of BIP138 and Miniscript QR code protocol)
BIP138 is a WIP proposal to standardize encrypted descriptors' registration, where data can be decrypted and loaded using any of the public keys which are part of the wallet descriptor.
A pure C implementation of BIP138 was created, focusing resources reuse in embedded devices, especially the ESP32, paired with PSA crypto.
The goal now is to keep both Rust and C development fronts being compared and cross-tested as a support for BIP138 itself and the advanced Miniscript code QR protocol, part of BWK development