@aztec/wallet-sdk 0.0.1-commit.023c3e5

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
package/dest/crypto.js ADDED
@@ -0,0 +1,394 @@
1
+ /**
2
+ * Cryptographic utilities for secure wallet communication.
3
+ *
4
+ * This module provides ECDH key exchange and AES-GCM encryption primitives
5
+ * for establishing secure communication channels between dApps and wallet extensions.
6
+ *
7
+ * ## Security Model
8
+ *
9
+ * The crypto flow uses HKDF for key derivation with domain separation:
10
+ *
11
+ * 1. Both parties generate ECDH key pairs using {@link generateKeyPair}
12
+ * 2. Public keys are exchanged (exported via {@link exportPublicKey}, imported via {@link importPublicKey})
13
+ * 3. Both parties derive keys using {@link deriveSessionKeys}:
14
+ * - ECDH produces raw shared secret
15
+ * - HKDF expands the secret into 512 bits using concatenated public keys as salt
16
+ * - The 512 bits are split: first 256 bits for AES-GCM, second 256 bits for HMAC
17
+ * 4. Fingerprint is computed as HMAC(HMAC_KEY, "aztec-wallet-verification-verificationHash")
18
+ * 5. Messages are encrypted/decrypted using {@link encrypt} and {@link decrypt}
19
+ *
20
+ * This design ensures:
21
+ * - The encryption key is never exposed (verificationHash uses separate HMAC key)
22
+ * - Public keys are bound to the derived keys via HKDF salt
23
+ * - Single HKDF derivation with domain-separated output splitting
24
+ *
25
+ * ## Curve Choice
26
+ *
27
+ * We use P-256 (secp256r1) because it's the only ECDH curve with broad Web Crypto API
28
+ * support across all browsers. X25519 would be preferable for its simplicity and
29
+ * resistance to implementation errors, but it lacks universal browser support.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * // Party A (dApp)
34
+ * const keyPairA = await generateKeyPair();
35
+ * const publicKeyA = await exportPublicKey(keyPairA.publicKey);
36
+ *
37
+ * // Party B (wallet)
38
+ * const keyPairB = await generateKeyPair();
39
+ * const publicKeyB = await exportPublicKey(keyPairB.publicKey);
40
+ *
41
+ * // Exchange public keys, then derive session keys
42
+ * // App side: isApp = true
43
+ * const importedB = await importPublicKey(publicKeyB);
44
+ * const sessionA = await deriveSessionKeys(keyPairA, importedB, true);
45
+ *
46
+ * // Wallet side: isApp = false
47
+ * const importedA = await importPublicKey(publicKeyA);
48
+ * const sessionB = await deriveSessionKeys(keyPairB, importedA, false);
49
+ *
50
+ * // Both parties compute the same verificationHash for verification
51
+ * const verificationHashA = sessionA.verificationHash;
52
+ * const emojiA = hashToEmoji(verificationHashA);
53
+ *
54
+ * // Encrypt and decrypt
55
+ * const encrypted = await encrypt(sessionA.encryptionKey, JSON.stringify({ message: 'hello' }));
56
+ * const decrypted = await decrypt(sessionB.encryptionKey, encrypted);
57
+ * ```
58
+ *
59
+ * @packageDocumentation
60
+ */ import { EMOJI_ALPHABET, EMOJI_ALPHABET_SIZE } from './emoji_alphabet.js';
61
+ /** P-256 coordinate size in bytes */ const P256_COORDINATE_SIZE = 32;
62
+ // HKDF info string for key derivation
63
+ const HKDF_INFO = new TextEncoder().encode('Aztec Wallet DAPP Key derivation');
64
+ const FINGERPRINT_DATA = new TextEncoder().encode('aztec-wallet-verification-verificationHash');
65
+ /**
66
+ * Generates an ECDH P-256 key pair for key exchange.
67
+ *
68
+ * The generated key pair can be used to derive session keys with another
69
+ * party's public key using {@link deriveSessionKeys}.
70
+ *
71
+ * @returns A new ECDH key pair
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * const keyPair = await generateKeyPair();
76
+ * const publicKey = await exportPublicKey(keyPair.publicKey);
77
+ * // Send publicKey to the other party
78
+ * ```
79
+ */ export async function generateKeyPair() {
80
+ const keyPair = await crypto.subtle.generateKey({
81
+ name: 'ECDH',
82
+ namedCurve: 'P-256'
83
+ }, true, [
84
+ 'deriveBits'
85
+ ]);
86
+ return {
87
+ publicKey: keyPair.publicKey,
88
+ privateKey: keyPair.privateKey
89
+ };
90
+ }
91
+ /**
92
+ * Exports a public key to JWK format for transmission.
93
+ *
94
+ * The exported key contains only public components and is safe to transmit
95
+ * over untrusted channels.
96
+ *
97
+ * @param publicKey - The CryptoKey public key to export
98
+ * @returns The public key in JWK format
99
+ *
100
+ * @example
101
+ * ```typescript
102
+ * const keyPair = await generateKeyPair();
103
+ * const exported = await exportPublicKey(keyPair.publicKey);
104
+ * // exported can be JSON serialized and sent to another party
105
+ * ```
106
+ */ export async function exportPublicKey(publicKey) {
107
+ const jwk = await crypto.subtle.exportKey('jwk', publicKey);
108
+ return {
109
+ kty: jwk.kty,
110
+ crv: jwk.crv,
111
+ x: jwk.x,
112
+ y: jwk.y
113
+ };
114
+ }
115
+ /**
116
+ * Imports a public key from JWK format.
117
+ *
118
+ * Used to import the other party's public key for deriving session keys.
119
+ *
120
+ * @param exported - The public key in JWK format
121
+ * @returns A CryptoKey that can be used with {@link deriveSessionKeys}
122
+ *
123
+ * @example
124
+ * ```typescript
125
+ * // App side: receive wallet's public key and derive session
126
+ * const walletPublicKey = await importPublicKey(receivedWalletKey);
127
+ * const session = await deriveSessionKeys(appKeyPair, walletPublicKey, true);
128
+ * ```
129
+ */ export function importPublicKey(exported) {
130
+ return crypto.subtle.importKey('jwk', {
131
+ kty: exported.kty,
132
+ crv: exported.crv,
133
+ x: exported.x,
134
+ y: exported.y
135
+ }, {
136
+ name: 'ECDH',
137
+ namedCurve: 'P-256'
138
+ }, true, []);
139
+ }
140
+ /**
141
+ * Decodes a base64url-encoded coordinate to fixed-size bytes.
142
+ *
143
+ * For P-256, coordinates are always 32 bytes. This function ensures
144
+ * consistent serialization regardless of leading zeros.
145
+ *
146
+ * @param base64url - Base64url-encoded coordinate
147
+ * @param size - Expected size in bytes (32 for P-256)
148
+ * @returns Fixed-size Uint8Array, left-padded with zeros if needed
149
+ */ function decodeCoordinateFixedSize(base64url, size) {
150
+ const decoded = base64UrlToBytes(base64url);
151
+ if (decoded.length === size) {
152
+ return decoded;
153
+ }
154
+ if (decoded.length > size) {
155
+ throw new Error(`Invalid P-256 coordinate: expected ${size} bytes, got ${decoded.length}`);
156
+ }
157
+ // Left-pad with zeros
158
+ const padded = new Uint8Array(size);
159
+ padded.set(decoded, size - decoded.length);
160
+ return padded;
161
+ }
162
+ /**
163
+ * Creates HKDF salt from public keys with fixed ordering by party role.
164
+ *
165
+ * The app's public key always comes first, followed by the wallet's public key.
166
+ * This ensures both parties produce the same salt.
167
+ *
168
+ * @param appKey - The app's public key in exported format
169
+ * @param walletKey - The wallet's public key in exported format
170
+ * @returns Concatenated bytes: app_x || app_y || wallet_x || wallet_y (128 bytes for P-256)
171
+ */ function createSaltFromPublicKeys(appKey, walletKey) {
172
+ // Fixed ordering: app first, then wallet
173
+ // Each coordinate is fixed at 32 bytes for P-256
174
+ const appX = decodeCoordinateFixedSize(appKey.x, P256_COORDINATE_SIZE);
175
+ const appY = decodeCoordinateFixedSize(appKey.y, P256_COORDINATE_SIZE);
176
+ const walletX = decodeCoordinateFixedSize(walletKey.x, P256_COORDINATE_SIZE);
177
+ const walletY = decodeCoordinateFixedSize(walletKey.y, P256_COORDINATE_SIZE);
178
+ // Total: 4 * 32 = 128 bytes
179
+ const salt = new Uint8Array(4 * P256_COORDINATE_SIZE);
180
+ salt.set(appX, 0);
181
+ salt.set(appY, P256_COORDINATE_SIZE);
182
+ salt.set(walletX, 2 * P256_COORDINATE_SIZE);
183
+ salt.set(walletY, 3 * P256_COORDINATE_SIZE);
184
+ return salt.buffer;
185
+ }
186
+ /**
187
+ * Derives session keys from ECDH key exchange using HKDF.
188
+ *
189
+ * This is the main key derivation function that produces:
190
+ * 1. An AES-256-GCM encryption key (first 256 bits)
191
+ * 2. An HMAC key for verificationHash computation (second 256 bits)
192
+ * 3. A verificationHash computed as HMAC(hmacKey, "aztec-wallet-verification-verificationHash")
193
+ *
194
+ * The keys are derived using a single HKDF call that produces 512 bits,
195
+ * then split into the two keys.
196
+ *
197
+ * @param ownKeyPair - The caller's ECDH key pair (private for ECDH, public for salt)
198
+ * @param peerPublicKey - The peer's ECDH public key (for ECDH and salt)
199
+ * @param isApp - true if caller is the app, false if caller is the wallet
200
+ * @returns Session keys containing encryption key and verificationHash
201
+ *
202
+ * @example
203
+ * ```typescript
204
+ * // App side
205
+ * const sessionA = await deriveSessionKeys(appKeyPair, walletPublicKey, true);
206
+ * // Wallet side
207
+ * const sessionB = await deriveSessionKeys(walletKeyPair, appPublicKey, false);
208
+ * // sessionA.verificationHash === sessionB.verificationHash
209
+ * ```
210
+ */ export async function deriveSessionKeys(ownKeyPair, peerPublicKey, isApp) {
211
+ // Step 1: ECDH to get raw shared secret
212
+ const sharedSecretBits = await crypto.subtle.deriveBits({
213
+ name: 'ECDH',
214
+ public: peerPublicKey
215
+ }, ownKeyPair.privateKey, 256);
216
+ // Step 2: Import shared secret as HKDF key material
217
+ const hkdfKey = await crypto.subtle.importKey('raw', sharedSecretBits, {
218
+ name: 'HKDF'
219
+ }, false, [
220
+ 'deriveBits'
221
+ ]);
222
+ // Step 3: Export public keys and create salt (app first, wallet second)
223
+ const ownExportedKey = await exportPublicKey(ownKeyPair.publicKey);
224
+ const peerExportedKey = await exportPublicKey(peerPublicKey);
225
+ const appPublicKey = isApp ? ownExportedKey : peerExportedKey;
226
+ const walletPublicKey = isApp ? peerExportedKey : ownExportedKey;
227
+ const salt = createSaltFromPublicKeys(appPublicKey, walletPublicKey);
228
+ // Step 4: Derive 512 bits in a single HKDF call
229
+ const derivedBits = await crypto.subtle.deriveBits({
230
+ name: 'HKDF',
231
+ hash: 'SHA-256',
232
+ salt,
233
+ info: HKDF_INFO
234
+ }, hkdfKey, 512);
235
+ // Step 5: Split into GCM key (first 256 bits) and HMAC key (second 256 bits)
236
+ const gcmKeyBits = derivedBits.slice(0, 32);
237
+ const hmacKeyBits = derivedBits.slice(32, 64);
238
+ // Step 6: Import GCM key
239
+ const encryptionKey = await crypto.subtle.importKey('raw', gcmKeyBits, {
240
+ name: 'AES-GCM',
241
+ length: 256
242
+ }, false, [
243
+ 'encrypt',
244
+ 'decrypt'
245
+ ]);
246
+ // Step 7: Import HMAC key
247
+ const hmacKey = await crypto.subtle.importKey('raw', hmacKeyBits, {
248
+ name: 'HMAC',
249
+ hash: 'SHA-256'
250
+ }, false, [
251
+ 'sign'
252
+ ]);
253
+ // Step 8: Compute verificationHash as HMAC of fixed string
254
+ const verificationHashBytes = await crypto.subtle.sign('HMAC', hmacKey, FINGERPRINT_DATA);
255
+ // Convert to hex string
256
+ const verificationHash = arrayBufferToHex(verificationHashBytes);
257
+ return {
258
+ encryptionKey,
259
+ verificationHash
260
+ };
261
+ }
262
+ /**
263
+ * Encrypts data using AES-256-GCM.
264
+ *
265
+ * A random 12-byte IV is generated for each encryption operation.
266
+ *
267
+ * AES-GCM provides both confidentiality and authenticity - any tampering
268
+ * with the ciphertext will cause decryption to fail.
269
+ *
270
+ * @param key - The AES-GCM key (from {@link deriveSessionKeys})
271
+ * @param data - The string data to encrypt (caller is responsible for serialization)
272
+ * @returns The encrypted payload with IV and ciphertext
273
+ *
274
+ * @example
275
+ * ```typescript
276
+ * const encrypted = await encrypt(session.encryptionKey, JSON.stringify({ action: 'transfer', amount: 100 }));
277
+ * // encrypted.iv and encrypted.ciphertext are base64 strings
278
+ * ```
279
+ */ export async function encrypt(key, data) {
280
+ const iv = crypto.getRandomValues(new Uint8Array(12));
281
+ const encoded = new TextEncoder().encode(data);
282
+ const ciphertext = await crypto.subtle.encrypt({
283
+ name: 'AES-GCM',
284
+ iv
285
+ }, key, encoded);
286
+ return {
287
+ iv: arrayBufferToBase64(iv),
288
+ ciphertext: arrayBufferToBase64(ciphertext)
289
+ };
290
+ }
291
+ /**
292
+ * Decrypts data using AES-256-GCM.
293
+ *
294
+ * The decrypted data is JSON parsed before returning.
295
+ *
296
+ * @typeParam T - The expected type of the decrypted data
297
+ * @param key - The AES-GCM key (from {@link deriveSessionKeys})
298
+ * @param payload - The encrypted payload from {@link encrypt}
299
+ * @returns The decrypted and parsed data
300
+ *
301
+ * @throws Error if decryption fails (wrong key or tampered ciphertext)
302
+ *
303
+ * @example
304
+ * ```typescript
305
+ * const decrypted = await decrypt<{ action: string; amount: number }>(session.encryptionKey, encrypted);
306
+ * console.log(decrypted.action); // 'transfer'
307
+ * ```
308
+ */ export async function decrypt(key, payload) {
309
+ const iv = base64ToArrayBuffer(payload.iv);
310
+ const ciphertext = base64ToArrayBuffer(payload.ciphertext);
311
+ const decrypted = await crypto.subtle.decrypt({
312
+ name: 'AES-GCM',
313
+ iv
314
+ }, key, ciphertext);
315
+ const decoded = new TextDecoder().decode(decrypted);
316
+ return JSON.parse(decoded);
317
+ }
318
+ /**
319
+ * Converts ArrayBuffer to base64 string.
320
+ * @internal
321
+ */ function arrayBufferToBase64(buffer) {
322
+ const bytes = buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer);
323
+ let binary = '';
324
+ for(let i = 0; i < bytes.byteLength; i++){
325
+ binary += String.fromCharCode(bytes[i]);
326
+ }
327
+ return btoa(binary);
328
+ }
329
+ /**
330
+ * Converts base64 string to ArrayBuffer.
331
+ * @internal
332
+ */ function base64ToArrayBuffer(base64) {
333
+ const binary = atob(base64);
334
+ const bytes = new Uint8Array(binary.length);
335
+ for(let i = 0; i < binary.length; i++){
336
+ bytes[i] = binary.charCodeAt(i);
337
+ }
338
+ return bytes.buffer;
339
+ }
340
+ /**
341
+ * Converts base64url string to Uint8Array.
342
+ * @internal
343
+ */ function base64UrlToBytes(base64url) {
344
+ // Convert base64url to base64
345
+ const base64 = base64url.replace(/-/g, '+').replace(/_/g, '/');
346
+ // Add padding if needed
347
+ const padded = base64 + '='.repeat((4 - base64.length % 4) % 4);
348
+ const binary = atob(padded);
349
+ const bytes = new Uint8Array(binary.length);
350
+ for(let i = 0; i < binary.length; i++){
351
+ bytes[i] = binary.charCodeAt(i);
352
+ }
353
+ return bytes;
354
+ }
355
+ /**
356
+ * Converts ArrayBuffer to hex string.
357
+ * @internal
358
+ */ function arrayBufferToHex(buffer) {
359
+ const bytes = new Uint8Array(buffer);
360
+ return Array.from(bytes).map((b)=>b.toString(16).padStart(2, '0')).join('');
361
+ }
362
+ /**
363
+ * Default grid size for emoji verification display.
364
+ * 3x3 grid = 9 emojis = 72 bits of security.
365
+ */ export const DEFAULT_EMOJI_GRID_SIZE = 9;
366
+ /**
367
+ * Converts a hex hash to an emoji sequence for visual verification.
368
+ *
369
+ * This is used for verification - both the dApp and wallet
370
+ * independently compute the same emoji sequence from the derived keys.
371
+ * Users can visually compare the sequences to detect interception.
372
+ *
373
+ * With a 256-emoji alphabet and 9 emojis (3x3 grid), this provides
374
+ * 72 bits of security (9 * 8 = 72 bits), making brute-force attacks
375
+ * computationally infeasible.
376
+ *
377
+ * @param hash - Hex string from verification hash (64 chars = 32 bytes)
378
+ * @param count - Number of emojis to generate (default: 9 for 3x3 grid)
379
+ * @returns A string of emojis representing the hash
380
+ *
381
+ * @example
382
+ * ```typescript
383
+ * const session = await deriveSessionKeys(...);
384
+ * const emoji = hashToEmoji(session.verificationHash); // e.g., "πŸ”΅πŸ¦‹πŸŽ―πŸΌπŸŒŸπŸŽ²πŸ¦ŠπŸΈπŸ’Ž"
385
+ * // Display as 3x3 grid to user for verification
386
+ * ```
387
+ */ export function hashToEmoji(hash, count = DEFAULT_EMOJI_GRID_SIZE) {
388
+ const emojis = [];
389
+ for(let i = 0; i < hash.length && emojis.length < count; i += 2){
390
+ const byteValue = parseInt(hash.slice(i, i + 2), 16);
391
+ emojis.push(EMOJI_ALPHABET[byteValue % EMOJI_ALPHABET_SIZE]);
392
+ }
393
+ return emojis.join('');
394
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Emoji alphabet for visual verification of shared secrets.
3
+ *
4
+ * This alphabet contains 256 distinct, easily recognizable emojis for
5
+ * anti-spoofing verification. With 256 emojis, each emoji represents
6
+ * exactly 8 bits of entropy (log2(256) = 8).
7
+ *
8
+ * A 3x3 grid of 9 emojis provides 72 bits of security (9 Γ— 8 = 72 bits),
9
+ * making brute-force attacks computationally infeasible for real-time
10
+ * MITM verification scenarios.
11
+ *
12
+ * Selection criteria:
13
+ * - Visually distinct from each other
14
+ * - Commonly supported across platforms (Unicode 12+)
15
+ * - Easy to recognize and compare at a glance
16
+ * - No text-based or flag emojis (platform-dependent rendering)
17
+ * - No variation selectors (base emojis only)
18
+ *
19
+ * @packageDocumentation
20
+ */
21
+ /**
22
+ * 256 distinct emojis for visual verification.
23
+ * Index directly maps to byte value (0-255) for simple lookup.
24
+ */
25
+ export declare const EMOJI_ALPHABET: readonly string[];
26
+ /**
27
+ * Number of emojis in the alphabet.
28
+ * Must be a power of 2 for clean bit mapping (256 = 2^8).
29
+ */
30
+ export declare const EMOJI_ALPHABET_SIZE = 256;
31
+ /**
32
+ * Bits of entropy per emoji (log2 of alphabet size).
33
+ */
34
+ export declare const BITS_PER_EMOJI = 8;
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1vamlfYWxwaGFiZXQuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9lbW9qaV9hbHBoYWJldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW1CRztBQUVIOzs7R0FHRztBQUNILGVBQU8sTUFBTSxjQUFjLEVBQUUsU0FBUyxNQUFNLEVBd1JsQyxDQUFDO0FBRVg7OztHQUdHO0FBQ0gsZUFBTyxNQUFNLG1CQUFtQixNQUFNLENBQUM7QUFFdkM7O0dBRUc7QUFDSCxlQUFPLE1BQU0sY0FBYyxJQUFJLENBQUMifQ==
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emoji_alphabet.d.ts","sourceRoot":"","sources":["../src/emoji_alphabet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAwRlC,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,cAAc,IAAI,CAAC"}