Skip to content

Commit 87bf5d1

Browse files
committed
feat: wallet sdk improvements
This PR improves the Wallet SDK so it supports private (via `MessageChannel`) and encrypted (by performing a key exchange) communications with extension wallets. It also fixes an issue with PXE not wrapping the node in a proxy, which prevented us from getting RPC stats. Co-authored-by: thunkar <[email protected]>
1 parent d0ee941 commit 87bf5d1

File tree

10 files changed

+698
-208
lines changed

10 files changed

+698
-208
lines changed

yarn-project/pxe/src/pxe.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import {
6060
} from './contract_function_simulator/contract_function_simulator.js';
6161
import { readCurrentClassId } from './contract_function_simulator/oracle/private_execution.js';
6262
import { ProxiedContractStoreFactory } from './contract_function_simulator/proxied_contract_data_source.js';
63+
import { ProxiedNodeFactory } from './contract_function_simulator/proxied_node.js';
6364
import { PXEDebugUtils } from './debug/pxe_debug_utils.js';
6465
import { enrichPublicSimulationError, enrichSimulationError } from './error_enriching.js';
6566
import { PrivateEventFilterValidator } from './events/private_event_filter_validator.js';
@@ -199,7 +200,7 @@ export class PXE {
199200
this.noteStore,
200201
this.keyStore,
201202
this.addressStore,
202-
this.node,
203+
ProxiedNodeFactory.create(this.node),
203204
this.anchorBlockStore,
204205
this.senderTaggingStore,
205206
this.recipientTaggingStore,

0 commit comments

Comments
 (0)