Feature / Railgun integration - #2567
Draft
jordan-enev wants to merge 15 commits into
Draft
Conversation
Adds RailgunController: manages a dedicated Railgun (0zk) seed, builds the Kohaku SDK's Host adapters (keystore/storage/provider/network), and initializes a RailgunPlugin against Sepolia for shielded balance sync. KeystoreController.persistTempSeed/#addSeed now return the created seed's id/label/hdPathTemplate so callers can persist it.
Shield builds calls for the normal sign/broadcast pipeline. Unshield and private transfer broadcast via a Pimlico ERC-4337 bundler using a disposable, one-time key instead of the Ambire account.
- Replace ethers provider shim with a hand-written adapter, fixing a field-name bug (input vs data) that broke UTXO tree verification - Move wrappedBaseTokenAddress init after WASM is ready - Disable POI (not supported on Sepolia) - Switch unshield/transfer broadcasts to withStatus (dispatchAndWait's 10s timeout was too short for real broadcasts) - Always re-sync balances after a broadcast attempt - Fix Pimlico bundler URL (numeric chain id) - Add optional disposable-signer test env var for the EIP-7702 investigation
…agnostic in order to demistify why native unshield doesn't work.
…(SDK default is 10.
… Innocence. Derive the 0zk identity from the account's recovery phrase instead of a random keystore seed, and expose it as one chain-agnostic address. Replace the hardcoded Sepolia chain with a per-chain plugin registry over ProvidersController, and enable POI.
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.