@docknetwork/wallet-sdk-wasm 1.7.0 → 1.7.7-alpha.0
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.
- package/lib/index.js +1 -0
- package/lib/index.mjs +1 -0
- package/lib/modules/network-manager.js +15 -12
- package/lib/modules/network-manager.mjs +15 -12
- package/lib/rpc-server.js +1 -0
- package/lib/rpc-server.mjs +1 -0
- package/lib/services/blockchain/service.js +22 -9
- package/lib/services/blockchain/service.mjs +23 -10
- package/lib/services/credential/bound-check.js +1 -1
- package/lib/services/credential/bound-check.mjs +1 -1
- package/lib/services/credential/delegatable-credentials.js +300 -0
- package/lib/services/credential/delegatable-credentials.mjs +263 -0
- package/lib/services/credential/index.js +39 -0
- package/lib/services/credential/index.mjs +4 -0
- package/lib/services/credential/pex-helpers.js +4 -4
- package/lib/services/credential/pex-helpers.mjs +4 -4
- package/lib/services/edv/index.js +1 -0
- package/lib/services/edv/index.mjs +1 -0
- package/lib/services/edv/service-rpc.js +23 -0
- package/lib/services/edv/service-rpc.mjs +23 -0
- package/lib/services/edv/service.js +81 -1
- package/lib/services/edv/service.mjs +78 -2
- package/lib/services/index.js +1 -0
- package/lib/services/index.mjs +1 -0
- package/lib/services/pex/config.js +4 -0
- package/lib/services/pex/config.mjs +4 -0
- package/lib/services/pex/service-rpc.js +4 -0
- package/lib/services/pex/service-rpc.mjs +4 -0
- package/lib/services/pex/service.js +7 -0
- package/lib/services/pex/service.mjs +7 -0
- package/lib/setup-nodejs.js +1 -0
- package/lib/setup-nodejs.mjs +1 -0
- package/lib/setup-tests.js +1 -0
- package/lib/setup-tests.mjs +1 -0
- package/lib/src/modules/event-manager.d.ts +0 -1
- package/lib/src/modules/event-manager.d.ts.map +1 -1
- package/lib/src/modules/network-manager.d.ts +2 -4
- package/lib/src/modules/network-manager.d.ts.map +1 -1
- package/lib/src/services/blockchain/configs.d.ts +1 -2
- package/lib/src/services/blockchain/configs.d.ts.map +1 -1
- package/lib/src/services/blockchain/service.d.ts +4 -3
- package/lib/src/services/blockchain/service.d.ts.map +1 -1
- package/lib/src/services/credential/bbs-revocation.d.ts +1 -1
- package/lib/src/services/credential/bbs-revocation.d.ts.map +1 -1
- package/lib/src/services/credential/bound-check.d.ts.map +1 -1
- package/lib/src/services/credential/delegatable-credentials.d.ts +272 -0
- package/lib/src/services/credential/delegatable-credentials.d.ts.map +1 -0
- package/lib/src/services/credential/index.d.ts +1 -0
- package/lib/src/services/credential/index.d.ts.map +1 -1
- package/lib/src/services/credential/pex-helpers.d.ts +2 -2
- package/lib/src/services/credential/pex-helpers.d.ts.map +1 -1
- package/lib/src/services/dids/keypair-utils.d.ts +2 -2
- package/lib/src/services/dids/keypair-utils.d.ts.map +1 -1
- package/lib/src/services/dids/service.d.ts +35 -3
- package/lib/src/services/dids/service.d.ts.map +1 -1
- package/lib/src/services/edv/service.d.ts +50 -1
- package/lib/src/services/edv/service.d.ts.map +1 -1
- package/lib/src/services/pex/config.d.ts +1 -0
- package/lib/src/services/pex/config.d.ts.map +1 -1
- package/lib/src/services/pex/service.d.ts +1 -0
- package/lib/src/services/pex/service.d.ts.map +1 -1
- package/lib/src/services/relay-service/service.d.ts +19 -7
- package/lib/src/services/relay-service/service.d.ts.map +1 -1
- package/lib/src/services/storage/service.d.ts.map +1 -1
- package/lib/src/services/util-crypto/service.d.ts +2 -2
- package/lib/src/services/util-crypto/service.d.ts.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +36 -16
- package/rollup.config.mjs +5 -3
- package/src/globals.d.ts +3 -0
- package/src/modules/network-manager.ts +15 -14
- package/src/services/blockchain/configs.ts +1 -2
- package/src/services/blockchain/service.ts +26 -10
- package/src/services/credential/bound-check.ts +1 -1
- package/src/services/credential/delegatable-credentials.ts +409 -0
- package/src/services/credential/index.ts +16 -0
- package/src/services/credential/pex-helpers.js +4 -4
- package/src/services/credential/pex-helpers.test.js +2 -2
- package/src/services/edv/index.test.js +229 -0
- package/src/services/edv/service-rpc.js +23 -0
- package/src/services/edv/service.ts +119 -0
- package/src/services/pex/config.ts +4 -0
- package/src/services/pex/service-rpc.js +4 -0
- package/src/services/pex/service.ts +13 -0
- 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,OAAO,uBAAuB,MAAM,wDAAwD,CAAC;
|
|
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,OAAO,uBAAuB,MAAM,wDAAwD,CAAC;AAY7F,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,eAAO,MAAM,SAAS,YAAY,CAAC;AAEnC;;;;;GAKG;AACH,qBAAa,UAAU;IACrB,gBAAgB,EAAE,uBAAuB,CAAC;IAE1C,OAAO,CAAC,WAAW,CAAmC;IAC/C,UAAU,EAAE,MAAM,CAAC;IAE1B,UAAU,aAwLG,GAAG,6BAoEkB,MAAM,cAAc,MAAM,KAAG,MAAM,qBAgBpD,MAAM,cACT,MAAM,KACjB,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,iBAqB1B,UAAU,iBACN,MAAM,MACjB,MAAM,KACT,OAAO,CAAC,UAAU,CAAC,KAzRpB;IAEF;;;OAGG;;IAKH;;;;;;;;;;;;;;;;;;OAkBG;IACG,UAAU,CAAC,EACf,OAAO,EACP,YAAY,EACZ,eAAe,EACf,MAAM,EACN,OAAO,GACR,EAAE,mBAAmB;IAuDtB;;;;;;;;;;;;;;OAcG;IACG,YAAY;;;;;IAgBlB;;;;;;;;;;OAUG;IACG,UAAU,CAAC,SAAS,EAAE,UAAU;;;;;IAetC;;;;;;OAMG;IACG,aAAa;IAInB;;;;;;;;;;;;OAYG;IACH,IAAI,CAAC,MAAM,EAAE,GAAG;IAIhB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,GAAG;IAIlB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,MAAM,EAAE,GAAG;IAUlB;;;;;;;;;OASG;IACH,MAAM,CAAC,MAAM,EAAE,GAAG;IAIlB;;;;;;;OAOG;IACH,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM;IAKrE;;;;;;;;;OASG;IACG,4BAA4B,CAChC,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAWvC;;;;;;;;OAQG;IACG,gBAAgB,CACpB,SAAS,EAAE,UAAU,EACrB,aAAa,EAAE,MAAM,EACrB,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,UAAU,CAAC;IAqBtB;;;;;;;;;OASG;IACG,gBAAgB,CACpB,YAAY,EAAE,UAAU,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;
|
|
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,
|
|
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) =>
|
|
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):
|
|
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):
|
|
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,
|
|
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,mEAuDjB,iBAAiB,+BAoBD,iCAAiC,+BA1DvC,2BAA2B,+BAlCrC,iBAAiB;;;;;;WA3BnC;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/storage/service.ts"],"names":[],"mappings":"AACA,qBAAa,cAAc;IACzB,UAAU,uBAWQ,
|
|
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,
|
|
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"}
|