@aztec/wallet-sdk 0.0.1-commit.0208eb9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +321 -0
  2. package/dest/base-wallet/base_wallet.d.ts +117 -0
  3. package/dest/base-wallet/base_wallet.d.ts.map +1 -0
  4. package/dest/base-wallet/base_wallet.js +271 -0
  5. package/dest/base-wallet/index.d.ts +2 -0
  6. package/dest/base-wallet/index.d.ts.map +1 -0
  7. package/dest/base-wallet/index.js +1 -0
  8. package/dest/crypto.d.ts +192 -0
  9. package/dest/crypto.d.ts.map +1 -0
  10. package/dest/crypto.js +394 -0
  11. package/dest/emoji_alphabet.d.ts +35 -0
  12. package/dest/emoji_alphabet.d.ts.map +1 -0
  13. package/dest/emoji_alphabet.js +299 -0
  14. package/dest/extension/handlers/background_connection_handler.d.ts +158 -0
  15. package/dest/extension/handlers/background_connection_handler.d.ts.map +1 -0
  16. package/dest/extension/handlers/background_connection_handler.js +258 -0
  17. package/dest/extension/handlers/content_script_connection_handler.d.ts +56 -0
  18. package/dest/extension/handlers/content_script_connection_handler.d.ts.map +1 -0
  19. package/dest/extension/handlers/content_script_connection_handler.js +174 -0
  20. package/dest/extension/handlers/index.d.ts +12 -0
  21. package/dest/extension/handlers/index.d.ts.map +1 -0
  22. package/dest/extension/handlers/index.js +10 -0
  23. package/dest/extension/handlers/internal_message_types.d.ts +63 -0
  24. package/dest/extension/handlers/internal_message_types.d.ts.map +1 -0
  25. package/dest/extension/handlers/internal_message_types.js +22 -0
  26. package/dest/extension/provider/extension_provider.d.ts +107 -0
  27. package/dest/extension/provider/extension_provider.d.ts.map +1 -0
  28. package/dest/extension/provider/extension_provider.js +160 -0
  29. package/dest/extension/provider/extension_wallet.d.ts +131 -0
  30. package/dest/extension/provider/extension_wallet.d.ts.map +1 -0
  31. package/dest/extension/provider/extension_wallet.js +271 -0
  32. package/dest/extension/provider/index.d.ts +3 -0
  33. package/dest/extension/provider/index.d.ts.map +1 -0
  34. package/dest/extension/provider/index.js +2 -0
  35. package/dest/manager/index.d.ts +3 -0
  36. package/dest/manager/index.d.ts.map +1 -0
  37. package/dest/manager/index.js +1 -0
  38. package/dest/manager/types.d.ts +167 -0
  39. package/dest/manager/types.d.ts.map +1 -0
  40. package/dest/manager/types.js +19 -0
  41. package/dest/manager/wallet_manager.d.ts +70 -0
  42. package/dest/manager/wallet_manager.d.ts.map +1 -0
  43. package/dest/manager/wallet_manager.js +226 -0
  44. package/dest/types.d.ts +123 -0
  45. package/dest/types.d.ts.map +1 -0
  46. package/dest/types.js +11 -0
  47. package/package.json +99 -0
  48. package/src/base-wallet/base_wallet.ts +394 -0
  49. package/src/base-wallet/index.ts +1 -0
  50. package/src/crypto.ts +499 -0
  51. package/src/emoji_alphabet.ts +317 -0
  52. package/src/extension/handlers/background_connection_handler.ts +423 -0
  53. package/src/extension/handlers/content_script_connection_handler.ts +246 -0
  54. package/src/extension/handlers/index.ts +25 -0
  55. package/src/extension/handlers/internal_message_types.ts +69 -0
  56. package/src/extension/provider/extension_provider.ts +233 -0
  57. package/src/extension/provider/extension_wallet.ts +321 -0
  58. package/src/extension/provider/index.ts +7 -0
  59. package/src/manager/index.ts +12 -0
  60. package/src/manager/types.ts +177 -0
  61. package/src/manager/wallet_manager.ts +259 -0
  62. package/src/types.ts +132 -0
@@ -0,0 +1,177 @@
1
+ import type { ChainInfo } from '@aztec/aztec.js/account';
2
+ import type { Wallet } from '@aztec/aztec.js/wallet';
3
+
4
+ /**
5
+ * A pending connection that requires user verification before finalizing.
6
+ *
7
+ * After key exchange, both dApp and wallet compute a verification hash independently.
8
+ * The dApp should display this hash (typically as emojis) and let the user confirm
9
+ * it matches what's shown in their wallet before calling `confirm()`.
10
+ *
11
+ * This protects the dApp from connecting to a malicious wallet that might be
12
+ * intercepting the connection (MITM attack).
13
+ */
14
+ export interface PendingConnection {
15
+ /**
16
+ * The verification hash computed from the shared secret.
17
+ * Use `hashToEmoji()` to convert to a visual representation for user verification.
18
+ * The user should confirm this matches what their wallet displays.
19
+ */
20
+ verificationHash: string;
21
+
22
+ /**
23
+ * Confirms the connection after user verifies the emojis match.
24
+ * @returns The connected wallet instance
25
+ */
26
+ confirm(): Promise<Wallet>;
27
+
28
+ /**
29
+ * Cancels the pending connection.
30
+ * Call this if the user indicates the emojis don't match.
31
+ */
32
+ cancel(): void;
33
+ }
34
+
35
+ /**
36
+ * Configuration for extension wallets
37
+ */
38
+ export interface ExtensionWalletConfig {
39
+ /** Whether extension wallets are enabled */
40
+ enabled: boolean;
41
+ /** Optional list of allowed extension IDs (whitelist) */
42
+ allowList?: string[];
43
+ /** Optional list of blocked extension IDs (blacklist) */
44
+ blockList?: string[];
45
+ }
46
+
47
+ /**
48
+ * Configuration for web wallets
49
+ */
50
+ export interface WebWalletConfig {
51
+ /** URLs of web wallet services */
52
+ urls: string[];
53
+ }
54
+
55
+ /**
56
+ * Configuration for the WalletManager
57
+ */
58
+ export interface WalletManagerConfig {
59
+ /** Extension wallet configuration */
60
+ extensions?: ExtensionWalletConfig;
61
+ /** Web wallet configuration */
62
+ webWallets?: WebWalletConfig;
63
+ }
64
+
65
+ /**
66
+ * Type of wallet provider
67
+ */
68
+ export type WalletProviderType = 'extension' | 'web';
69
+
70
+ /**
71
+ * Callback type for wallet disconnect events at the provider level.
72
+ */
73
+ export type ProviderDisconnectionCallback = () => void;
74
+
75
+ /**
76
+ * A wallet provider that can connect to create a wallet instance.
77
+ * Chain information is already baked in from the discovery process.
78
+ */
79
+ export interface WalletProvider {
80
+ /** Unique identifier for the provider */
81
+ id: string;
82
+ /** Type of wallet provider */
83
+ type: WalletProviderType;
84
+ /** Display name */
85
+ name: string;
86
+ /** Icon URL */
87
+ icon?: string;
88
+ /** Additional metadata */
89
+ metadata?: Record<string, unknown>;
90
+ /**
91
+ * Establishes a secure channel with this wallet provider.
92
+ *
93
+ * This performs the ECDH key exchange and returns a pending connection with the
94
+ * verification hash. The channel is encrypted but NOT yet verified - the dApp
95
+ * should display the hash (as emojis) to the user and let them confirm it
96
+ * matches their wallet before calling `confirm()`.
97
+ *
98
+ * @param appId - Application identifier for the requesting dapp
99
+ * @returns A pending connection with verification hash and confirm/cancel methods
100
+ *
101
+ * @example
102
+ * ```typescript
103
+ * const pending = await provider.establishSecureChannel('my-app');
104
+ *
105
+ * // Show emojis to user for verification
106
+ * const emojis = hashToEmoji(pending.verificationHash);
107
+ * showDialog(`Verify these match your wallet: ${emojis}`);
108
+ *
109
+ * // User confirms emojis match
110
+ * const wallet = await pending.confirm();
111
+ * ```
112
+ */
113
+ establishSecureChannel(appId: string): Promise<PendingConnection>;
114
+ /**
115
+ * Disconnects the current wallet and cleans up resources.
116
+ * After calling this, the wallet returned from confirm() should no longer be used.
117
+ * @returns A promise that resolves when disconnection is complete
118
+ */
119
+ disconnect?(): Promise<void>;
120
+ /**
121
+ * Registers a callback to be invoked when the wallet disconnects unexpectedly.
122
+ * @param callback - Function to call when wallet disconnects
123
+ * @returns A function to unregister the callback
124
+ */
125
+ onDisconnect?(callback: ProviderDisconnectionCallback): () => void;
126
+ /**
127
+ * Returns whether the provider's wallet connection has been disconnected.
128
+ * @returns true if the wallet is no longer connected
129
+ */
130
+ isDisconnected?(): boolean;
131
+ }
132
+
133
+ /**
134
+ * Options for discovering wallets
135
+ */
136
+ export interface DiscoverWalletsOptions {
137
+ /** Chain information to filter by */
138
+ chainInfo: ChainInfo;
139
+ /** Application ID making the request */
140
+ appId: string;
141
+ /** Discovery timeout in milliseconds. Default: 60000 (60s) */
142
+ timeout?: number;
143
+ /**
144
+ * Callback invoked when a wallet provider is discovered.
145
+ * Use this to show wallets to users as they approve them, rather than
146
+ * waiting for the full timeout.
147
+ */
148
+ onWalletDiscovered?: (provider: WalletProvider) => void;
149
+ }
150
+
151
+ /**
152
+ * A cancellable discovery session.
153
+ *
154
+ * Returned by `WalletManager.getAvailableWallets()` to allow consumers to
155
+ * cancel discovery when no longer needed (e.g., network changes, user navigates away).
156
+ *
157
+ * @example
158
+ * ```typescript
159
+ * const discovery = WalletManager.configure({...}).getAvailableWallets({...});
160
+ *
161
+ * // Iterate over discovered wallets
162
+ * for await (const wallet of discovery.wallets) {
163
+ * console.log(`Found: ${wallet.name}`);
164
+ * }
165
+ *
166
+ * // Cancel discovery when no longer needed
167
+ * discovery.cancel();
168
+ * ```
169
+ */
170
+ export interface DiscoverySession {
171
+ /** Async iterator that yields wallet providers as they're discovered */
172
+ wallets: AsyncIterable<WalletProvider>;
173
+ /** Promise that resolves when discovery completes or is cancelled */
174
+ done: Promise<void>;
175
+ /** Cancel discovery immediately and clean up resources */
176
+ cancel: () => void;
177
+ }
@@ -0,0 +1,259 @@
1
+ import type { ChainInfo } from '@aztec/aztec.js/account';
2
+ import { promiseWithResolvers } from '@aztec/foundation/promise';
3
+
4
+ import { type DiscoveredWallet, ExtensionProvider, ExtensionWallet } from '../extension/provider/index.js';
5
+ import { WalletMessageType } from '../types.js';
6
+ import type {
7
+ DiscoverWalletsOptions,
8
+ DiscoverySession,
9
+ ExtensionWalletConfig,
10
+ PendingConnection,
11
+ ProviderDisconnectionCallback,
12
+ WalletManagerConfig,
13
+ WalletProvider,
14
+ } from './types.js';
15
+
16
+ /**
17
+ * Manager for wallet discovery, configuration, and connection.
18
+ *
19
+ * This is the main entry point for dApps to discover and connect to wallets.
20
+ *
21
+ * @example Basic usage with async iterator
22
+ * ```typescript
23
+ * const discovery = WalletManager.configure({ extensions: { enabled: true } })
24
+ * .getAvailableWallets({ chainInfo, appId: 'my-app' });
25
+ *
26
+ * // Iterate over discovered wallets
27
+ * for await (const provider of discovery.wallets) {
28
+ * console.log(`Found wallet: ${provider.name}`);
29
+ * }
30
+ *
31
+ * // Or cancel early when done
32
+ * discovery.cancel();
33
+ * ```
34
+ *
35
+ * @example With callback for discovered wallets
36
+ * ```typescript
37
+ * const discovery = manager.getAvailableWallets({
38
+ * chainInfo,
39
+ * appId: 'my-app',
40
+ * onWalletDiscovered: (provider) => console.log(`Found: ${provider.name}`),
41
+ * });
42
+ *
43
+ * // Wait for discovery to complete or cancel it
44
+ * await discovery.done;
45
+ * ```
46
+ */
47
+ export class WalletManager {
48
+ private config: WalletManagerConfig = {
49
+ extensions: { enabled: true },
50
+ webWallets: { urls: [] },
51
+ };
52
+
53
+ private constructor() {}
54
+
55
+ /**
56
+ * Configures the WalletManager with provider settings
57
+ * @param config - Configuration options for wallet providers
58
+ */
59
+ static configure(config: WalletManagerConfig): WalletManager {
60
+ const instance = new WalletManager();
61
+ instance.config = {
62
+ extensions: config.extensions ?? { enabled: true },
63
+ webWallets: config.webWallets ?? { urls: [] },
64
+ };
65
+ return instance;
66
+ }
67
+
68
+ /**
69
+ * Discovers all available wallets for a given chain and version.
70
+ *
71
+ * Returns a `DiscoverySession` with:
72
+ * - `wallets`: AsyncIterable to iterate over discovered wallets
73
+ * - `done`: Promise that resolves when discovery completes or is cancelled
74
+ * - `cancel()`: Function to stop discovery immediately
75
+ *
76
+ * If `onWalletDiscovered` callback is provided, wallets are also streamed via callback.
77
+ *
78
+ * @param options - Discovery options including chain info, appId, and timeout
79
+ * @returns A cancellable discovery session
80
+ */
81
+ getAvailableWallets(options: DiscoverWalletsOptions): DiscoverySession {
82
+ const { chainInfo, appId } = options;
83
+ const abortController = new AbortController();
84
+
85
+ const pendingProviders: WalletProvider[] = [];
86
+ let pendingResolve: ((result: IteratorResult<WalletProvider>) => void) | null = null;
87
+ let completed = false;
88
+
89
+ const { promise: donePromise, resolve: resolveDone } = promiseWithResolvers<void>();
90
+
91
+ const markComplete = () => {
92
+ completed = true;
93
+ resolveDone();
94
+ if (pendingResolve) {
95
+ const resolve = pendingResolve;
96
+ pendingResolve = null;
97
+ resolve({ value: undefined, done: true });
98
+ }
99
+ };
100
+
101
+ if (this.config.extensions?.enabled) {
102
+ const extensionConfig = this.config.extensions;
103
+
104
+ void ExtensionProvider.discoverWallets(chainInfo, {
105
+ appId,
106
+ timeout: options.timeout,
107
+ signal: abortController.signal,
108
+ onWalletDiscovered: discoveredWallet => {
109
+ const provider = this.createProviderFromDiscoveredWallet(discoveredWallet, chainInfo, extensionConfig);
110
+ if (!provider) {
111
+ return;
112
+ }
113
+
114
+ // Call user's callback if provided
115
+ options.onWalletDiscovered?.(provider);
116
+
117
+ // Also queue for async iterator
118
+ if (pendingResolve) {
119
+ const resolve = pendingResolve;
120
+ pendingResolve = null;
121
+ resolve({ value: provider, done: false });
122
+ } else {
123
+ pendingProviders.push(provider);
124
+ }
125
+ },
126
+ }).then(markComplete);
127
+ } else {
128
+ markComplete();
129
+ }
130
+
131
+ const wallets: AsyncIterable<WalletProvider> = {
132
+ // eslint-disable-next-line jsdoc/require-jsdoc
133
+ [Symbol.asyncIterator](): AsyncIterator<WalletProvider> {
134
+ return {
135
+ // eslint-disable-next-line jsdoc/require-jsdoc
136
+ next(): Promise<IteratorResult<WalletProvider>> {
137
+ if (pendingProviders.length > 0) {
138
+ return Promise.resolve({ value: pendingProviders.shift()!, done: false });
139
+ }
140
+
141
+ if (completed) {
142
+ return Promise.resolve({ value: undefined, done: true });
143
+ }
144
+
145
+ return new Promise(resolve => {
146
+ pendingResolve = resolve;
147
+ });
148
+ },
149
+ };
150
+ },
151
+ };
152
+
153
+ return {
154
+ wallets,
155
+ done: donePromise,
156
+ cancel: () => abortController.abort(),
157
+ };
158
+ }
159
+
160
+ /**
161
+ * Creates a WalletProvider from a discovered wallet.
162
+ * Returns null if the wallet is not allowed by config.
163
+ * @param discoveredWallet - The discovered wallet from extension discovery.
164
+ * @param chainInfo - Network information.
165
+ * @param extensionConfig - Extension wallet configuration.
166
+ */
167
+ private createProviderFromDiscoveredWallet(
168
+ discoveredWallet: DiscoveredWallet,
169
+ chainInfo: ChainInfo,
170
+ extensionConfig: ExtensionWalletConfig,
171
+ ): WalletProvider | null {
172
+ const { info } = discoveredWallet;
173
+
174
+ if (!this.isExtensionAllowed(info.id, extensionConfig)) {
175
+ return null;
176
+ }
177
+
178
+ let extensionWallet: ExtensionWallet | null = null;
179
+
180
+ const provider: WalletProvider = {
181
+ id: info.id,
182
+ type: 'extension',
183
+ name: info.name,
184
+ icon: info.icon,
185
+ metadata: {
186
+ version: info.version,
187
+ },
188
+ establishSecureChannel: async (connectAppId: string): Promise<PendingConnection> => {
189
+ const connection = await discoveredWallet.establishSecureChannel();
190
+
191
+ provider.metadata = {
192
+ ...provider.metadata,
193
+ verificationHash: connection.info.verificationHash,
194
+ };
195
+
196
+ return {
197
+ verificationHash: connection.info.verificationHash!,
198
+ confirm: () => {
199
+ return Promise.resolve(
200
+ ExtensionWallet.create(
201
+ connection.info.id,
202
+ connection.port,
203
+ connection.sharedKey,
204
+ chainInfo,
205
+ connectAppId,
206
+ ),
207
+ );
208
+ },
209
+ cancel: () => {
210
+ // Send disconnect to terminate the session on the extension side
211
+ // but keep the port open so we can retry key exchange
212
+ connection.port.postMessage({
213
+ type: WalletMessageType.DISCONNECT,
214
+ requestId: discoveredWallet.requestId,
215
+ });
216
+ // Don't close the port - allow retry with fresh key exchange
217
+ },
218
+ };
219
+ },
220
+ disconnect: async () => {
221
+ if (extensionWallet) {
222
+ await extensionWallet.disconnect();
223
+ extensionWallet = null;
224
+ }
225
+ },
226
+ onDisconnect: (callback: ProviderDisconnectionCallback) => {
227
+ if (extensionWallet) {
228
+ return extensionWallet.onDisconnect(callback);
229
+ }
230
+ return () => {};
231
+ },
232
+ isDisconnected: () => {
233
+ if (extensionWallet) {
234
+ return extensionWallet.isDisconnected();
235
+ }
236
+ return true;
237
+ },
238
+ };
239
+
240
+ return provider;
241
+ }
242
+
243
+ /**
244
+ * Checks if an extension is allowed based on allow/block lists
245
+ * @param extensionId - The extension ID to check
246
+ * @param config - Extension wallet configuration containing allow/block lists
247
+ */
248
+ private isExtensionAllowed(extensionId: string, config: ExtensionWalletConfig): boolean {
249
+ if (config.blockList && config.blockList.includes(extensionId)) {
250
+ return false;
251
+ }
252
+
253
+ if (config.allowList && config.allowList.length > 0) {
254
+ return config.allowList.includes(extensionId);
255
+ }
256
+
257
+ return true;
258
+ }
259
+ }
package/src/types.ts ADDED
@@ -0,0 +1,132 @@
1
+ import type { ChainInfo } from '@aztec/aztec.js/account';
2
+
3
+ import type { ExportedPublicKey } from './crypto.js';
4
+
5
+ /**
6
+ * Message types for wallet SDK communication.
7
+ * All types are prefixed with 'aztec-wallet-' for namespacing.
8
+ */
9
+ export enum WalletMessageType {
10
+ /** Discovery request to find installed wallets */
11
+ DISCOVERY = 'aztec-wallet-discovery',
12
+ /** Discovery response from a wallet */
13
+ DISCOVERY_RESPONSE = 'aztec-wallet-discovery-response',
14
+ /** Disconnect message (unencrypted control message, bidirectional) */
15
+ DISCONNECT = 'aztec-wallet-disconnect',
16
+ /** Key exchange request sent over MessageChannel */
17
+ KEY_EXCHANGE_REQUEST = 'aztec-wallet-key-exchange-request',
18
+ /** Key exchange response sent over MessageChannel */
19
+ KEY_EXCHANGE_RESPONSE = 'aztec-wallet-key-exchange-response',
20
+ }
21
+
22
+ /**
23
+ * Information about an installed Aztec wallet.
24
+ * Used during discovery phase before key exchange.
25
+ */
26
+ export interface WalletInfo {
27
+ /** Unique identifier for the wallet */
28
+ id: string;
29
+ /** Display name of the wallet */
30
+ name: string;
31
+ /** URL to the wallet's icon */
32
+ icon?: string;
33
+ /** Wallet version */
34
+ version: string;
35
+ }
36
+
37
+ /**
38
+ * Full information about a connected Aztec wallet including crypto material.
39
+ * Available after key exchange completes.
40
+ */
41
+ export interface ConnectedWalletInfo extends WalletInfo {
42
+ /** Wallet's ECDH public key for secure channel establishment */
43
+ publicKey: ExportedPublicKey;
44
+ /**
45
+ * Verification hash for verification.
46
+ * Both dApp and wallet independently compute this from the ECDH shared secret.
47
+ * Use {@link hashToEmoji} to convert to a visual representation for user verification.
48
+ */
49
+ verificationHash?: string;
50
+ }
51
+
52
+ /**
53
+ * Message format for wallet communication (internal, before encryption)
54
+ */
55
+ export interface WalletMessage {
56
+ /** Unique message ID for tracking responses */
57
+ messageId: string;
58
+ /** The wallet method to call */
59
+ type: string;
60
+ /** Arguments for the method */
61
+ args: unknown[];
62
+ /** Chain information */
63
+ chainInfo: ChainInfo;
64
+ /** Application ID making the request */
65
+ appId: string;
66
+ /** Wallet ID to target a specific wallet */
67
+ walletId: string;
68
+ }
69
+
70
+ /**
71
+ * Response message from wallet
72
+ */
73
+ export interface WalletResponse {
74
+ /** Message ID matching the request */
75
+ messageId: string;
76
+ /** Result data (if successful) */
77
+ result?: unknown;
78
+ /** Error data (if failed) */
79
+ error?: unknown;
80
+ /** Wallet ID that sent the response */
81
+ walletId: string;
82
+ }
83
+
84
+ /**
85
+ * Discovery message for finding installed wallets (public, unencrypted).
86
+ */
87
+ export interface DiscoveryRequest {
88
+ /** Message type for discovery */
89
+ type: WalletMessageType.DISCOVERY;
90
+ /** Request ID */
91
+ requestId: string;
92
+ /** Application ID making the request */
93
+ appId: string;
94
+ /** Chain information to check if wallet supports this network */
95
+ chainInfo: ChainInfo;
96
+ }
97
+
98
+ /**
99
+ * Discovery response from a wallet (public, unencrypted).
100
+ */
101
+ export interface DiscoveryResponse {
102
+ /** Message type for discovery response */
103
+ type: WalletMessageType.DISCOVERY_RESPONSE;
104
+ /** Request ID matching the discovery request */
105
+ requestId: string;
106
+ /** Basic wallet information */
107
+ walletInfo: WalletInfo;
108
+ }
109
+
110
+ /**
111
+ * Key exchange request sent over MessageChannel after discovery approval.
112
+ */
113
+ export interface KeyExchangeRequest {
114
+ /** Message type */
115
+ type: WalletMessageType.KEY_EXCHANGE_REQUEST;
116
+ /** Request ID matching the discovery request */
117
+ requestId: string;
118
+ /** dApp's ECDH public key for deriving shared secret */
119
+ publicKey: ExportedPublicKey;
120
+ }
121
+
122
+ /**
123
+ * Key exchange response sent over MessageChannel.
124
+ */
125
+ export interface KeyExchangeResponse {
126
+ /** Message type */
127
+ type: WalletMessageType.KEY_EXCHANGE_RESPONSE;
128
+ /** Request ID matching the discovery request */
129
+ requestId: string;
130
+ /** Wallet's ECDH public key for deriving shared secret */
131
+ publicKey: ExportedPublicKey;
132
+ }