Repository navigation
Conversation
Add the mobile SDK design doc and the implementation plan for a single Rust client SDK exposed to both Kotlin and Swift via uniffi. Design doc (docs/design/mobile-sdk-and-lightweight-uniffi.md) measures where the uniffi node's size goes on mobile (99.0 MB as CI ships it, 46.6 MB tuned) and concludes that most apps want the Minimal SDK variant rather than a node on the phone. The plan (docs/plans/20260915-minimal-mobile-rust-sdk.md) supersedes the design doc's separate Path A2 (native Kotlin) / Path A3 (native Swift) routes with one Rust crate serving both. Measured 2026-09-15: a minimal Rust client crate with the real derive/PSBT/sign paths reachable is 1.94 MB including uniffi scaffolding across 31 crates -- the same order as the doc's ~1.9 MB estimate for pure Kotlin, since both are dominated by the same libsecp256k1 precomputed tables (1.06 MB). With size neutral, implementation count decides. Key decisions recorded in the plan: no rgb-lib dependency (keeps the size budget and keeps the rgb-lib-generated parity fixture a real cross-check rather than a tautology); the TypeScript SDK stays hand-written as the independent second implementation; HTTP transport is a foreign trait implemented per platform, with intent binding staying in Rust. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
rmn-boiko
force-pushed
the
feat/minimal-mobile-sdk
branch
from
September 15, 2026 16:04
f91aa17 to
1694b7c
Compare
rmn-boiko
force-pushed
the
feat/minimal-mobile-sdk
branch
from
September 15, 2026 16:05
1694b7c to
d58def5
Compare
rmn-boiko
marked this pull request as ready for review
September 28, 2026 14:16
This branch has not been deployed
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.
No description provided.