You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Enhancements
[FEATURE][web] Query consumed notes and submit externally proved transactions without a local store using RpcClient.syncNullifiers(prefixes, blockFrom, blockTo), submitProvenTx(proof, inputs, key) and submitProvenTxBatch(provenBatch, proposedBatch, transactionInputs, key). Nullifier ranges include both bounds and return full nullifiers with their commit heights. Prefix arrays are snapshotted before asynchronous work and duplicate prefixes are scanned once; Node.js requires an ArrayBuffer-backed Uint16Array. getTransactionEncryptionKey(genesisCommitment, trustedBlockHeader) verifies the validator key before submission seals the complete execution inputs; submissions return the node's chain tip, not a commitment receipt. TransactionInputs, ProposedBatch and ProvenBatch support protobuf serialization for external execution and proving workflows (#492).
[FEATURE][adapter] A dApp opened in a phone browser can now hand off to the Bread app instead of sending the user to the Chrome Web Store. On iOS, iPadOS and Android with no wallet injected, in a browser with the User Activation API, MidenWalletAdapter starts at Loadable instead of NotDetected, and the new openInBread(), called from a tap, navigates the tab to the Open in Bread link for the page, which carries the page URL in its fragment so it never reaches a server, and which Bread opens in its own browser where the wallet is injected, or which loads a web page when the app is not installed. connect() hands off the same way while Loadable and resolves without connecting or throwing. Both do nothing outside a tap, navigate once per tap, and move to Installed instead, connect() then connecting, when the wallet was injected since the last poll. openInBread() does nothing in any other state. autoConnect in WalletProvider and MidenFiSignerProvider now waits for an Installed wallet, so it never hands off on page load. Inside Bread's own browser the adapter starts at NotDetected and waits for the wallet. adapter.url is that link while Loadable and the extension's store listing in every other state; the new BREAD_OPEN_LINK_BASE and getBreadOpenLink(pageUrl?) exports build it. The adapter still moves to Installed when the wallet injects, and desktop behavior is unchanged. In that state the reactui wallet modal shows an "Open in Bread" button for Bread in place of the Chrome Web Store badge, which selects Bread and calls openInBread() from inside the tap (wallet-adapter#82, #487).
Fixes
[FIX][adapter] WalletProvider and MidenFiSignerProvider ignore the adapter's disconnect and error events from pagehide to pageshow, while the page unloads or sits in the back-forward cache, instead of from beforeunload on. A page that stays after a canceled navigation or a link an app took, or that comes back from the back-forward cache, now handles them again, where it used to drop every later error and disconnect (#487).
[FIX][react] MidenProvider reuses its client on a same-identity signer reconnect without calling the missing setSignCb method. A signer following local keystore mode or another signer starts with fresh caches and its own external-keystore client; late account fetches and cross-tab refreshes from the previous client cannot repopulate those caches, saved create/import callbacks reject after their client is replaced, and returning to local mode clears signer state so local account imports remain available. An import cancelled by client replacement returns an Account it already holds or rejects with Miden client is not ready, without publishing its result or error. The create/import progress flags belong to each hook instance's latest call, so an older call cannot end a newer call's busy state. useSessionAccount persists signer sessions under ${storagePrefix}:${clientStoreName}:accountId and :ready, isolated by the committed client's store even across a provider remount; signer sessions never use the plain local-mode keys, including while their client initialization is pending or has failed. Session mode follows MidenProvider, so a signer provider nested below a local-mode provider keeps the local session. Replacing the client restores its stored session state, including for local clients. Disconnecting, resetting, unmounting or changing session identity stops pending initialization (#455, #465).
[FIX][web] MidenWalletAdapter now follows the wallet when the user switches accounts: address and publicKey update for another granted account, while a revoked grant or an account without permission clears the connection. React adapter consumers receive the same update instead of continuing to send requests from the previous address. (#472).