@docknetwork/wallet-sdk-wasm 1.7.0 → 1.7.6

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 (85) hide show
  1. package/lib/index.js +1 -0
  2. package/lib/index.mjs +1 -0
  3. package/lib/modules/network-manager.js +15 -12
  4. package/lib/modules/network-manager.mjs +15 -12
  5. package/lib/rpc-server.js +1 -0
  6. package/lib/rpc-server.mjs +1 -0
  7. package/lib/services/blockchain/service.js +22 -9
  8. package/lib/services/blockchain/service.mjs +23 -10
  9. package/lib/services/credential/bound-check.js +1 -1
  10. package/lib/services/credential/bound-check.mjs +1 -1
  11. package/lib/services/credential/delegatable-credentials.js +300 -0
  12. package/lib/services/credential/delegatable-credentials.mjs +263 -0
  13. package/lib/services/credential/index.js +39 -0
  14. package/lib/services/credential/index.mjs +4 -0
  15. package/lib/services/credential/pex-helpers.js +4 -4
  16. package/lib/services/credential/pex-helpers.mjs +4 -4
  17. package/lib/services/edv/index.js +1 -0
  18. package/lib/services/edv/index.mjs +1 -0
  19. package/lib/services/edv/service-rpc.js +23 -0
  20. package/lib/services/edv/service-rpc.mjs +23 -0
  21. package/lib/services/edv/service.js +81 -1
  22. package/lib/services/edv/service.mjs +78 -2
  23. package/lib/services/index.js +1 -0
  24. package/lib/services/index.mjs +1 -0
  25. package/lib/services/pex/config.js +4 -0
  26. package/lib/services/pex/config.mjs +4 -0
  27. package/lib/services/pex/service-rpc.js +4 -0
  28. package/lib/services/pex/service-rpc.mjs +4 -0
  29. package/lib/services/pex/service.js +7 -0
  30. package/lib/services/pex/service.mjs +7 -0
  31. package/lib/setup-nodejs.js +1 -0
  32. package/lib/setup-nodejs.mjs +1 -0
  33. package/lib/setup-tests.js +1 -0
  34. package/lib/setup-tests.mjs +1 -0
  35. package/lib/src/modules/event-manager.d.ts +0 -1
  36. package/lib/src/modules/event-manager.d.ts.map +1 -1
  37. package/lib/src/modules/network-manager.d.ts +2 -4
  38. package/lib/src/modules/network-manager.d.ts.map +1 -1
  39. package/lib/src/services/blockchain/configs.d.ts +1 -2
  40. package/lib/src/services/blockchain/configs.d.ts.map +1 -1
  41. package/lib/src/services/blockchain/service.d.ts +4 -3
  42. package/lib/src/services/blockchain/service.d.ts.map +1 -1
  43. package/lib/src/services/credential/bbs-revocation.d.ts +1 -1
  44. package/lib/src/services/credential/bbs-revocation.d.ts.map +1 -1
  45. package/lib/src/services/credential/bound-check.d.ts.map +1 -1
  46. package/lib/src/services/credential/delegatable-credentials.d.ts +272 -0
  47. package/lib/src/services/credential/delegatable-credentials.d.ts.map +1 -0
  48. package/lib/src/services/credential/index.d.ts +1 -0
  49. package/lib/src/services/credential/index.d.ts.map +1 -1
  50. package/lib/src/services/credential/pex-helpers.d.ts +2 -2
  51. package/lib/src/services/credential/pex-helpers.d.ts.map +1 -1
  52. package/lib/src/services/dids/keypair-utils.d.ts +2 -2
  53. package/lib/src/services/dids/keypair-utils.d.ts.map +1 -1
  54. package/lib/src/services/dids/service.d.ts +35 -3
  55. package/lib/src/services/dids/service.d.ts.map +1 -1
  56. package/lib/src/services/edv/service.d.ts +50 -1
  57. package/lib/src/services/edv/service.d.ts.map +1 -1
  58. package/lib/src/services/pex/config.d.ts +1 -0
  59. package/lib/src/services/pex/config.d.ts.map +1 -1
  60. package/lib/src/services/pex/service.d.ts +1 -0
  61. package/lib/src/services/pex/service.d.ts.map +1 -1
  62. package/lib/src/services/relay-service/service.d.ts +19 -7
  63. package/lib/src/services/relay-service/service.d.ts.map +1 -1
  64. package/lib/src/services/storage/service.d.ts.map +1 -1
  65. package/lib/src/services/util-crypto/service.d.ts +2 -2
  66. package/lib/src/services/util-crypto/service.d.ts.map +1 -1
  67. package/lib/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +24 -16
  69. package/rollup.config.mjs +5 -3
  70. package/src/globals.d.ts +3 -0
  71. package/src/modules/network-manager.ts +15 -14
  72. package/src/services/blockchain/configs.ts +1 -2
  73. package/src/services/blockchain/service.ts +26 -10
  74. package/src/services/credential/bound-check.ts +1 -1
  75. package/src/services/credential/delegatable-credentials.ts +409 -0
  76. package/src/services/credential/index.ts +16 -0
  77. package/src/services/credential/pex-helpers.js +4 -4
  78. package/src/services/credential/pex-helpers.test.js +2 -2
  79. package/src/services/edv/index.test.js +229 -0
  80. package/src/services/edv/service-rpc.js +23 -0
  81. package/src/services/edv/service.ts +119 -0
  82. package/src/services/pex/config.ts +4 -0
  83. package/src/services/pex/service-rpc.js +4 -0
  84. package/src/services/pex/service.ts +13 -0
  85. package/src/services/pex/tests/pex-service.test.js +210 -0
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import { InitializeEDVParams } from './configs';
8
8
  import EDVHTTPStorageInterface from '@docknetwork/universal-wallet/storage/edv-http-storage';
9
+ export declare const HKDF_LENGTH = 32;
10
+ export declare const HKDF_HASH = "SHA-256";
9
11
  /**
10
12
  * Service class for managing Encrypted Data Vaults
11
13
  * @class
@@ -16,7 +18,10 @@ export declare class EDVService {
16
18
  storageInterface: EDVHTTPStorageInterface;
17
19
  private insertQueue;
18
20
  controller: string;
19
- rpcMethods: ((params: any) => any)[];
21
+ rpcMethods: (((params: any) => any) | ((biometricData: Buffer, identifier: string) => Buffer) | ((biometricData: Buffer, identifier: string) => Promise<{
22
+ key: Buffer;
23
+ iv: Buffer;
24
+ }>) | ((masterKey: Uint8Array, encryptionKey: Buffer, iv: Buffer) => Promise<Uint8Array>))[];
20
25
  /**
21
26
  * Creates a new EDVService instance
22
27
  * @constructor
@@ -141,6 +146,50 @@ export declare class EDVService {
141
146
  * });
142
147
  */
143
148
  delete(params: any): any;
149
+ /**
150
+ * Derives a key from biometric data using HKDF
151
+ * @param {Buffer} biometricData - Biometric data from provider
152
+ * @param {string} identifier - User's identifier as salt (email, phone number, etc.)
153
+ * @returns {Buffer} Derived key
154
+ * @example
155
+ * const key = edvService.deriveBiometricKey(biometricData, 'user@example.com');
156
+ */
157
+ deriveBiometricKey(biometricData: Buffer, identifier: string): Buffer;
158
+ /**
159
+ * Generates a key for encrypting/decrypting the master key
160
+ * @param {Buffer} biometricData - Biometric data from provider
161
+ * @param {string} identifier - User's identifier as salt (email, phone number, etc.)
162
+ * @returns {Promise<Object>} Encryption key and IV for AES encryption
163
+ * @returns {Buffer} returns.key - Encryption key
164
+ * @returns {Buffer} returns.iv - Initialization vector
165
+ * @example
166
+ * const { key, iv } = await edvService.deriveBiometricEncryptionKey(biometricData, 'user@example.com');
167
+ */
168
+ deriveBiometricEncryptionKey(biometricData: Buffer, identifier: string): Promise<{
169
+ key: Buffer;
170
+ iv: Buffer;
171
+ }>;
172
+ /**
173
+ * Encrypts the master key using a key derived from biometric data
174
+ * @param {Uint8Array} masterKey - The CloudWalletVault master key to encrypt
175
+ * @param {Buffer} encryptionKey - Key derived from biometric data
176
+ * @param {Buffer} iv - Initialization vector
177
+ * @returns {Promise<Uint8Array>} Encrypted master key
178
+ * @example
179
+ * const encrypted = await edvService.encryptMasterKey(masterKey, encryptionKey, iv);
180
+ */
181
+ encryptMasterKey(masterKey: Uint8Array, encryptionKey: Buffer, iv: Buffer): Promise<Uint8Array>;
182
+ /**
183
+ * Decrypts the master key using biometric-derived key
184
+ * @param {Uint8Array} encryptedKey - The encrypted master key
185
+ * @param {Buffer} decryptionKey - Key derived from biometric data
186
+ * @param {Buffer} iv - Initialization vector
187
+ * @returns {Promise<Uint8Array>} The decrypted master key
188
+ * @throws {Error} If decryption fails
189
+ * @example
190
+ * const masterKey = await edvService.decryptMasterKey(encryptedKey, decryptionKey, iv);
191
+ */
192
+ decryptMasterKey(encryptedKey: Uint8Array, decryptionKey: Buffer, iv: Buffer): Promise<Uint8Array>;
144
193
  }
145
194
  /**
146
195
  * Singleton instance of the EDV service
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/edv/service.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,OAAO,EAAC,mBAAmB,EAAc,MAAM,WAAW,CAAC;AAC3D,OAA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EACxB,aAAa,EAAE,MAAM,EACrB,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,UAAU,CAAC;CAwBvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,UAAU,EAAE,UAA6B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export declare const serviceName = "pex";
2
2
  export declare const validation: {
3
3
  filterCredentials: (params: FilterCredentialsParams) => void;
4
+ evaluateCredentials: (params: EvaluateCredentialsParams) => void;
4
5
  evaluatePresentation: (params: EvaluatePresentationParams) => void;
5
6
  };
6
7
  export type FilterCredentialsParams = {
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/services/pex/config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,UAAU;gCACO,uBAAuB;mCAIpB,0BAA0B;CAI1D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,GAAG,CAAC;IAClB,sBAAsB,EAAE,GAAG,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/services/pex/config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,UAAU;gCACO,uBAAuB;kCAIrB,yBAAyB;mCAIxB,0BAA0B;CAI1D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,YAAY,EAAE,GAAG,CAAC;IAClB,sBAAsB,EAAE,GAAG,CAAC;CAC7B,CAAC"}
@@ -12,6 +12,7 @@ declare class PEXService {
12
12
  constructor();
13
13
  rpcMethods: (((params: FilterCredentialsParams) => import("@sphereon/pex").SelectResults) | ((params: EvaluatePresentationParams) => import("@sphereon/pex").EvaluationResults) | ((params: CreatePresentationParams) => IPresentation))[];
14
14
  filterCredentials(params: FilterCredentialsParams): import("@sphereon/pex").SelectResults;
15
+ isCredentialSelectionValid(params: EvaluateCredentialsParams): boolean;
15
16
  evaluatePresentation(params: EvaluatePresentationParams): import("@sphereon/pex").EvaluationResults;
16
17
  presentationFrom(params: CreatePresentationParams): IPresentation;
17
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/pex/service.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAKlB;;;;;;IAMI;AACJ,wBAAgB,uBAAuB,CAAC,sBAAsB,KAAA,OAgD7D;AAED,cAAM,UAAU;IACd,IAAI,EAAE,MAAM,CAAC;;IAMb,UAAU,aAMgB,uBAAuB,wDAYpB,0BAA0B,4DAW9B,wBAAwB,uBAzB/C;IAEF,iBAAiB,CAAC,MAAM,EAAE,uBAAuB;IAYjD,oBAAoB,CAAC,MAAM,EAAE,0BAA0B;IAWvD,gBAAgB,CAAC,MAAM,EAAE,wBAAwB;CAgBlD;AAED,eAAO,MAAM,UAAU,YAAmB,CAAC"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/pex/service.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,UAAU,CAAC;AAKlB;;;;;;IAMI;AACJ,wBAAgB,uBAAuB,CAAC,sBAAsB,KAAA,OAgD7D;AAED,cAAM,UAAU;IACd,IAAI,EAAE,MAAM,CAAC;;IAMb,UAAU,aAOgB,uBAAuB,wDAwBpB,0BAA0B,4DAW9B,wBAAwB,uBArC/C;IAEF,iBAAiB,CAAC,MAAM,EAAE,uBAAuB;IAYjD,0BAA0B,CAAC,MAAM,EAAE,yBAAyB;IAY5D,oBAAoB,CAAC,MAAM,EAAE,0BAA0B;IAWvD,gBAAgB,CAAC,MAAM,EAAE,wBAAwB;CAgBlD;AAED,eAAO,MAAM,UAAU,YAAmB,CAAC"}
@@ -14,7 +14,13 @@ import { RelayService as relayServiceClient } from '@docknetwork/wallet-sdk-rela
14
14
  */
15
15
  export declare class RelayService {
16
16
  name: string;
17
- rpcMethods: (((params: AckMessagesParams) => any) | ((params: GetMessagesParams) => any) | ((params: RegisterDIDPushNotificationParams) => any) | ((params: ResolveDidcommMessageParams) => any) | ((params: SendMessageParams) => any))[];
17
+ rpcMethods: (((params: AckMessagesParams) => Promise<import("axios").AxiosResponse<any, any>>) | ((params: GetMessagesParams) => Promise<any>) | ((params: RegisterDIDPushNotificationParams) => Promise<any>) | ((params: ResolveDidcommMessageParams) => Promise<any>) | ((params: SendMessageParams) => Promise<{
18
+ success: boolean;
19
+ endpoint: any;
20
+ } | {
21
+ success: any;
22
+ endpoint?: undefined;
23
+ }>))[];
18
24
  /**
19
25
  * Creates a new RelayService instance
20
26
  * @constructor
@@ -37,7 +43,13 @@ export declare class RelayService {
37
43
  * type: 'basic-message'
38
44
  * });
39
45
  */
40
- sendMessage(params: SendMessageParams): any;
46
+ sendMessage(params: SendMessageParams): Promise<{
47
+ success: boolean;
48
+ endpoint: any;
49
+ } | {
50
+ success: any;
51
+ endpoint?: undefined;
52
+ }>;
41
53
  /**
42
54
  * Acknowledges receipt of messages from the relay service
43
55
  * @param {AckMessagesParams} params - Acknowledgment parameters
@@ -50,7 +62,7 @@ export declare class RelayService {
50
62
  * messageIds: ['msg-1', 'msg-2']
51
63
  * });
52
64
  */
53
- ackMessages(params: AckMessagesParams): any;
65
+ ackMessages(params: AckMessagesParams): Promise<import("axios").AxiosResponse<any, any>>;
54
66
  /**
55
67
  * Resolves and decrypts a DIDComm message
56
68
  * @param {ResolveDidcommMessageParams} params - Resolution parameters
@@ -64,7 +76,7 @@ export declare class RelayService {
64
76
  * keyPairDoc: recipientKeyPair
65
77
  * });
66
78
  */
67
- resolveDidcommMessage(params: ResolveDidcommMessageParams): any;
79
+ resolveDidcommMessage(params: ResolveDidcommMessageParams): Promise<any>;
68
80
  /**
69
81
  * Signs a JWT using the provided key pair
70
82
  * @param {ResolveDidcommMessageParams} params - Signing parameters
@@ -78,7 +90,7 @@ export declare class RelayService {
78
90
  * keyPairDoc: signerKeyPair
79
91
  * });
80
92
  */
81
- signJwt(params: ResolveDidcommMessageParams): any;
93
+ signJwt(params: ResolveDidcommMessageParams): Promise<string>;
82
94
  /**
83
95
  * Retrieves messages from the relay service
84
96
  * @param {GetMessagesParams} params - Retrieval parameters
@@ -94,7 +106,7 @@ export declare class RelayService {
94
106
  * skipMessageResolution: false
95
107
  * });
96
108
  */
97
- getMessages(params: GetMessagesParams): any;
109
+ getMessages(params: GetMessagesParams): Promise<any>;
98
110
  /**
99
111
  * Registers a DID for push notifications
100
112
  * @param {RegisterDIDPushNotificationParams} params - Registration parameters
@@ -110,7 +122,7 @@ export declare class RelayService {
110
122
  * platform: 'android'
111
123
  * });
112
124
  */
113
- registerDIDPushNotification(params: RegisterDIDPushNotificationParams): any;
125
+ registerDIDPushNotification(params: RegisterDIDPushNotificationParams): Promise<any>;
114
126
  }
115
127
  /**
116
128
  * Low-level relay service client for direct API access
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/relay-service/service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,2BAA2B,EAC3B,iCAAiC,EAGjC,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAC,YAAY,IAAI,kBAAkB,EAAC,MAAM,2CAA2C,CAAC;AAE7F;;;;;GAKG;AACH,qBAAa,YAAY;IACvB,IAAI,EAAE,MAAM,CAAC;IAEb,UAAU,aAmDU,iBAAiB,sBAuDjB,iBAAiB,sBAoBD,iCAAiC,sBA1DvC,2BAA2B,sBAlCrC,iBAAiB,aA3BnC;IAEF;;;OAGG;;IAKH;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,MAAM,EAAE,iBAAiB;IAKrC;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,MAAM,EAAE,iBAAiB;IAIrC;;;;;;;;;;;;OAYG;IACH,qBAAqB,CAAC,MAAM,EAAE,2BAA2B;IAKzD;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,MAAM,EAAE,2BAA2B;IAK3C;;;;;;;;;;;;;;OAcG;IACH,WAAW,CAAC,MAAM,EAAE,iBAAiB;IAKrC;;;;;;;;;;;;;;OAcG;IACH,2BAA2B,CAAC,MAAM,EAAE,iCAAiC;CAItE;AAED;;;;GAIG;AACH,OAAO,EAAC,kBAAkB,EAAC,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,YAAY,EAAE,YAAiC,CAAC"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/relay-service/service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,2BAA2B,EAC3B,iCAAiC,EAGjC,iBAAiB,EAClB,MAAM,WAAW,CAAC;A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AM,cAAc,EAAE,cAAqC,CAAC"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/storage/service.ts"],"names":[],"mappings":"AACA,qBAAa,cAAc;IACzB,UAAU,uBAWQ,OAAO,CAAC,GAAG,CAAC,IAN5B;;IAMF,OAAO,CAAC,GAAG,IAAI,OAAA,GAAG,OAAO,CAAC,GAAG,CAAC;IAI9B,UAAU,CAAC,GAAG,IAAI,OAAA,GAAG,OAAO,CAAC,GAAG,CAAC;IAIjC,OAAO,CAAC,GAAG,IAAI,OAAA,GAAG,OAAO,CAAC,GAAG,CAAC;IAI9B,UAAU,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CAGhC;AAED,eAAO,MAAM,cAAc,EAAE,cAAqC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  export declare class UtilCryptoService {
2
- rpcMethods: (((value: any) => boolean) | ((numWords?: number) => string) | ((phrase: any) => Uint8Array) | ((hex: string) => string))[];
2
+ rpcMethods: (((value: any) => boolean) | ((numWords?: number) => string) | ((phrase: any) => Uint8Array<ArrayBuffer>) | ((hex: string) => string))[];
3
3
  constructor();
4
4
  mnemonicGenerate(numWords?: number): string;
5
- mnemonicToMiniSecret(phrase: any): Uint8Array;
5
+ mnemonicToMiniSecret(phrase: any): Uint8Array<ArrayBuffer>;
6
6
  isBase64(value: any): boolean;
7
7
  hexToString(hex: string): string;
8
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/util-crypto/service.ts"],"names":[],"mappings":"AAeA,qBAAa,iBAAiB;IAC5B,UAAU,wGA4EO,MAAM,KAAG,MAAM,KAvE9B;;IAMF,gBAAgB,CAAC,QAAQ,SAAK;IAqB9B,oBAAoB,CAAC,MAAM,KAAA;IAiB3B,QAAQ,CAAC,KAAK,KAAA;IA2Bd,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;CAUjC;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAA2C,CAAC"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/util-crypto/service.ts"],"names":[],"mappings":"AAeA,qBAAa,iBAAiB;IAC5B,UAAU,qHA4EO,MAAM,KAAG,MAAM,KAvE9B;;IAMF,gBAAgB,CAAC,QAAQ,SAAK;IAqB9B,oBAAoB,CAAC,MAAM,KAAA;IAiB3B,QAAQ,CAAC,KAAK,KAAA;IA2Bd,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;CAUjC;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAA2C,CAAC"}