@dynamic-labs-wallet/browser 0.0.0-pr384.2 → 0.0.0-pr526.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/index.cjs.js +685 -342
- package/index.esm.js +680 -345
- package/internal/core/bip340.cjs +1 -0
- package/internal/core/common.cjs +1 -0
- package/internal/core/ecdsa.cjs +1 -0
- package/internal/core/ed25519.cjs +1 -0
- package/internal/core/ed25519_exportable.cjs +1 -0
- package/internal/core/index.cjs +1 -0
- package/internal/core/sr25519.cjs +1 -0
- package/internal/core/types.cjs +1 -0
- package/internal/web/generated/libmpc_executor.js +2 -2
- package/internal/web/index.d.ts +1 -1
- package/internal/web/index.js +1 -1
- package/package.json +4 -4
- package/src/client.d.ts +97 -34
- package/src/client.d.ts.map +1 -1
- package/src/constants.d.ts +2 -0
- package/src/constants.d.ts.map +1 -1
- package/src/services/encryption.d.ts +19 -0
- package/src/services/encryption.d.ts.map +1 -0
- package/src/types.d.ts +36 -1
- package/src/types.d.ts.map +1 -1
- package/src/utils.d.ts +8 -2
- package/src/utils.d.ts.map +1 -1
- package/internal/core/bip340.js +0 -1
- package/internal/core/common.js +0 -1
- package/internal/core/ecdsa.js +0 -1
- package/internal/core/ed25519.js +0 -1
- package/internal/core/ed25519_exportable.js +0 -1
- package/internal/core/index.js +0 -1
- package/internal/core/package.json +0 -17
- package/internal/core/sr25519.js +0 -1
- package/internal/core/types.js +0 -1
- package/internal/web/package.json +0 -17
- /package/internal/core/{native.js → native.cjs} +0 -0
package/src/client.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import type
|
|
1
|
+
import { BIP340KeygenResult, EcdsaKeygenResult, type EcdsaPublicKey, EcdsaSignature, ExportableEd25519KeygenResult, MessageHash } from '#internal/web';
|
|
2
|
+
import { AuthMode, BackupLocation, type BackupLocationWithExternalKeyShareId, DynamicApiClient, type DynamicWalletClientProps, type FeatureFlags, type InitializeResult, type KeyShareBackupInfo, ThresholdSignatureScheme, type TraceContext, WalletOperation } from '@dynamic-labs-wallet/core';
|
|
3
|
+
import { type InstrumentOptions } from '@dynamic-labs/logger';
|
|
4
|
+
import { type SignMessageContext, RoomTypeEnum } from '@dynamic-labs/sdk-api-core';
|
|
4
5
|
import type { ClientInitKeygenResult, ClientKeyShare } from './mpc/types.js';
|
|
5
6
|
import { type SupportedStorage } from './services/localStorage.js';
|
|
6
|
-
import type
|
|
7
|
+
import { type Room, type ShareDistribution, type WalletProperties } from './types.js';
|
|
7
8
|
export declare class DynamicWalletClient {
|
|
8
9
|
environmentId: string;
|
|
9
10
|
storageKey: string;
|
|
10
11
|
debug: boolean;
|
|
11
12
|
protected userId: string | undefined;
|
|
12
13
|
protected sessionId: string | undefined;
|
|
13
|
-
protected delegatedAccessEndpoint: string | undefined;
|
|
14
14
|
protected initializePromise: Promise<InitializeResult> | null;
|
|
15
15
|
protected logger: import("@dynamic-labs/logger").Logger;
|
|
16
16
|
protected apiClient: DynamicApiClient;
|
|
@@ -21,12 +21,17 @@ export declare class DynamicWalletClient {
|
|
|
21
21
|
} | null;
|
|
22
22
|
protected baseMPCRelayApiUrl?: string;
|
|
23
23
|
protected iframe: HTMLIFrameElement | null;
|
|
24
|
+
protected forwardMPCEnabled: boolean;
|
|
24
25
|
readonly instanceId: string;
|
|
25
26
|
readonly iframeDomain: string;
|
|
26
27
|
readonly featureFlags: FeatureFlags;
|
|
27
28
|
protected authMode: AuthMode;
|
|
28
29
|
protected sdkVersion?: string;
|
|
29
|
-
|
|
30
|
+
protected baseClientKeysharesRelayApiUrl?: string;
|
|
31
|
+
protected static rooms: Room[];
|
|
32
|
+
protected static roomsInitializing: boolean;
|
|
33
|
+
constructor({ environmentId, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags, authMode, authToken, sdkVersion, forwardMPCClient, baseClientKeysharesRelayApiUrl, }: DynamicWalletClientProps);
|
|
34
|
+
private initializeForwardMPCClient;
|
|
30
35
|
getAuthMode(): AuthMode;
|
|
31
36
|
/**
|
|
32
37
|
* Check if the SDK version meets the requirement for signed session ID
|
|
@@ -35,11 +40,11 @@ export declare class DynamicWalletClient {
|
|
|
35
40
|
*/
|
|
36
41
|
private requiresSignedSessionId;
|
|
37
42
|
initLoggerContext(authToken: string): Promise<void>;
|
|
38
|
-
initialize(): Promise<InitializeResult>;
|
|
43
|
+
initialize(traceContext?: TraceContext): Promise<InitializeResult>;
|
|
39
44
|
/**
|
|
40
45
|
* Client initialization logic
|
|
41
46
|
*/
|
|
42
|
-
protected _initialize(): Promise<InitializeResult>;
|
|
47
|
+
protected _initialize(traceContext?: TraceContext): Promise<InitializeResult>;
|
|
43
48
|
serverInitializeKeyGen({ chainName, clientKeygenIds, dynamicRequestId, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
44
49
|
chainName: string;
|
|
45
50
|
clientKeygenIds: string[];
|
|
@@ -67,35 +72,50 @@ export declare class DynamicWalletClient {
|
|
|
67
72
|
rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
|
|
68
73
|
clientKeygenResults: ClientKeyShare[];
|
|
69
74
|
}>;
|
|
70
|
-
keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
75
|
+
keyGen({ chainName, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext, }: {
|
|
71
76
|
chainName: string;
|
|
72
77
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
73
78
|
onError?: (error: Error) => void;
|
|
74
79
|
onCeremonyComplete?: (accountAddress: string, walletId: string) => void;
|
|
80
|
+
traceContext?: TraceContext;
|
|
75
81
|
}): Promise<{
|
|
76
82
|
rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
|
|
77
83
|
clientKeyShares: ClientKeyShare[];
|
|
78
84
|
}>;
|
|
79
|
-
importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete, }: {
|
|
85
|
+
importRawPrivateKey({ chainName, privateKey, thresholdSignatureScheme, onError, onCeremonyComplete, traceContext, }: {
|
|
80
86
|
chainName: string;
|
|
81
87
|
privateKey: string;
|
|
82
88
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
83
89
|
onError?: (error: Error) => void;
|
|
84
90
|
onCeremonyComplete?: (accountAddress: string, walletId: string) => void;
|
|
91
|
+
traceContext?: TraceContext;
|
|
85
92
|
}): Promise<{
|
|
86
93
|
rawPublicKey: EcdsaPublicKey | Uint8Array | string | undefined;
|
|
87
94
|
clientKeyShares: ClientKeyShare[];
|
|
88
95
|
}>;
|
|
89
|
-
serverSign({ walletId, message, isFormatted, mfaToken, context, onError, dynamicRequestId, }: {
|
|
96
|
+
serverSign({ walletId, message, isFormatted, mfaToken, roomId, context, onError, dynamicRequestId, traceContext, }: {
|
|
90
97
|
walletId: string;
|
|
91
98
|
message: string | Uint8Array;
|
|
92
99
|
dynamicRequestId: string;
|
|
93
100
|
isFormatted?: boolean;
|
|
94
101
|
mfaToken?: string;
|
|
102
|
+
roomId?: string;
|
|
95
103
|
context?: SignMessageContext;
|
|
96
104
|
onError?: (error: Error) => void;
|
|
105
|
+
traceContext?: TraceContext;
|
|
97
106
|
}): Promise<import("@dynamic-labs-wallet/core").OpenRoomResponse>;
|
|
98
|
-
|
|
107
|
+
forwardMPCClientSign({ chainName, message, roomId, keyShare, derivationPath, formattedMessage, dynamicRequestId, isFormatted, traceContext, }: {
|
|
108
|
+
chainName: string;
|
|
109
|
+
message: string | Uint8Array;
|
|
110
|
+
roomId: string;
|
|
111
|
+
keyShare: ClientKeyShare;
|
|
112
|
+
derivationPath: Uint32Array | undefined;
|
|
113
|
+
formattedMessage: string | Uint8Array | MessageHash;
|
|
114
|
+
dynamicRequestId: string;
|
|
115
|
+
isFormatted?: boolean;
|
|
116
|
+
traceContext?: TraceContext;
|
|
117
|
+
}): Promise<Uint8Array | EcdsaSignature>;
|
|
118
|
+
clientSign({ chainName, message, roomId, keyShare, derivationPath, isFormatted, dynamicRequestId, traceContext, }: {
|
|
99
119
|
chainName: string;
|
|
100
120
|
message: string | Uint8Array;
|
|
101
121
|
roomId: string;
|
|
@@ -103,8 +123,9 @@ export declare class DynamicWalletClient {
|
|
|
103
123
|
keyShare: ClientKeyShare;
|
|
104
124
|
derivationPath: Uint32Array | undefined;
|
|
105
125
|
isFormatted?: boolean;
|
|
126
|
+
traceContext?: TraceContext;
|
|
106
127
|
}): Promise<Uint8Array | EcdsaSignature>;
|
|
107
|
-
sign({ accountAddress, message, chainName, password, isFormatted, signedSessionId, mfaToken, context, onError, }: {
|
|
128
|
+
sign({ accountAddress, message, chainName, password, isFormatted, signedSessionId, mfaToken, context, onError, traceContext, }: {
|
|
108
129
|
accountAddress: string;
|
|
109
130
|
message: string | Uint8Array;
|
|
110
131
|
chainName: string;
|
|
@@ -114,13 +135,15 @@ export declare class DynamicWalletClient {
|
|
|
114
135
|
mfaToken?: string;
|
|
115
136
|
context?: SignMessageContext;
|
|
116
137
|
onError?: (error: Error) => void;
|
|
138
|
+
traceContext?: TraceContext;
|
|
117
139
|
}): Promise<Uint8Array | EcdsaSignature>;
|
|
118
|
-
refreshWalletAccountShares({ accountAddress, chainName, password, signedSessionId, mfaToken, }: {
|
|
140
|
+
refreshWalletAccountShares({ accountAddress, chainName, password, signedSessionId, mfaToken, traceContext, }: {
|
|
119
141
|
accountAddress: string;
|
|
120
142
|
chainName: string;
|
|
121
143
|
password?: string;
|
|
122
144
|
signedSessionId: string;
|
|
123
145
|
mfaToken?: string;
|
|
146
|
+
traceContext?: TraceContext;
|
|
124
147
|
}): Promise<void>;
|
|
125
148
|
getExportId({ chainName, clientKeyShare, }: {
|
|
126
149
|
chainName: string;
|
|
@@ -152,7 +175,7 @@ export declare class DynamicWalletClient {
|
|
|
152
175
|
existingClientKeygenIds: string[];
|
|
153
176
|
existingClientKeyShares: ClientKeyShare[];
|
|
154
177
|
}>;
|
|
155
|
-
reshare({ chainName, accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password, signedSessionId, backupToGoogleDrive, delegateToProjectEnvironment, mfaToken, }: {
|
|
178
|
+
reshare({ chainName, accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password, signedSessionId, backupToGoogleDrive, delegateToProjectEnvironment, mfaToken, revokeDelegation, }: {
|
|
156
179
|
chainName: string;
|
|
157
180
|
accountAddress: string;
|
|
158
181
|
oldThresholdSignatureScheme: ThresholdSignatureScheme;
|
|
@@ -162,27 +185,28 @@ export declare class DynamicWalletClient {
|
|
|
162
185
|
backupToGoogleDrive?: boolean;
|
|
163
186
|
delegateToProjectEnvironment?: boolean;
|
|
164
187
|
mfaToken?: string;
|
|
188
|
+
revokeDelegation?: boolean;
|
|
165
189
|
}): Promise<void>;
|
|
166
|
-
|
|
167
|
-
accountAddress: string;
|
|
168
|
-
chainName: string;
|
|
169
|
-
delegatedKeyShares: string[];
|
|
170
|
-
environmentId: string;
|
|
171
|
-
userId: string;
|
|
172
|
-
walletId: string;
|
|
173
|
-
}): Promise<any>;
|
|
190
|
+
private performDelegationOperation;
|
|
174
191
|
delegateKeyShares({ accountAddress, password, signedSessionId, mfaToken, }: {
|
|
175
192
|
accountAddress: string;
|
|
176
193
|
password?: string;
|
|
177
194
|
signedSessionId: string;
|
|
178
195
|
mfaToken?: string;
|
|
179
196
|
}): Promise<BackupLocationWithExternalKeyShareId[]>;
|
|
180
|
-
|
|
197
|
+
revokeDelegation({ accountAddress, password, signedSessionId, mfaToken, }: {
|
|
198
|
+
accountAddress: string;
|
|
199
|
+
password?: string;
|
|
200
|
+
signedSessionId: string;
|
|
201
|
+
mfaToken?: string;
|
|
202
|
+
}): Promise<void>;
|
|
203
|
+
exportKey({ accountAddress, chainName, password, signedSessionId, mfaToken, traceContext, }: {
|
|
181
204
|
accountAddress: string;
|
|
182
205
|
chainName: string;
|
|
183
206
|
password?: string;
|
|
184
207
|
signedSessionId: string;
|
|
185
208
|
mfaToken?: string;
|
|
209
|
+
traceContext?: TraceContext;
|
|
186
210
|
}): Promise<{
|
|
187
211
|
derivedPrivateKey: string | undefined;
|
|
188
212
|
}>;
|
|
@@ -212,6 +236,21 @@ export declare class DynamicWalletClient {
|
|
|
212
236
|
clientKeyShares: ClientKeyShare[];
|
|
213
237
|
overwriteOrMerge?: 'overwrite' | 'merge';
|
|
214
238
|
}): Promise<void>;
|
|
239
|
+
backupSharesWithDistribution({ accountAddress, password, signedSessionId, distribution, preserveDelegatedLocation, }: {
|
|
240
|
+
accountAddress: string;
|
|
241
|
+
password?: string;
|
|
242
|
+
signedSessionId: string;
|
|
243
|
+
distribution: ShareDistribution;
|
|
244
|
+
preserveDelegatedLocation?: boolean;
|
|
245
|
+
}): Promise<{
|
|
246
|
+
message: string;
|
|
247
|
+
walletId: string;
|
|
248
|
+
locationsWithKeyShares: {
|
|
249
|
+
location: BackupLocation;
|
|
250
|
+
keyShareId: string;
|
|
251
|
+
externalKeyShareId?: string;
|
|
252
|
+
}[];
|
|
253
|
+
}>;
|
|
215
254
|
/**
|
|
216
255
|
* Central backup orchestrator that encrypts and stores wallet key shares.
|
|
217
256
|
*
|
|
@@ -231,6 +270,10 @@ export declare class DynamicWalletClient {
|
|
|
231
270
|
* 4. Updates backup metadata and synchronizes wallet state
|
|
232
271
|
* 5. Persists the updated wallet map to local storage
|
|
233
272
|
*
|
|
273
|
+
* **Delegated Key Shares:**
|
|
274
|
+
* - When delegatedKeyshare is provided, the method will not store the delegated key share but it will mark the delegated share as backed up on Dynamic's backend
|
|
275
|
+
* - and encrypt the delegated key share to publish it to the webhook
|
|
276
|
+
*
|
|
234
277
|
* @param params - The backup operation parameters
|
|
235
278
|
* @param params.accountAddress - The account address of the wallet to backup
|
|
236
279
|
* @param params.clientKeyShares - Optional specific key shares to backup (uses localStorage if not provided)
|
|
@@ -239,19 +282,23 @@ export declare class DynamicWalletClient {
|
|
|
239
282
|
* @param params.backupToGoogleDrive - Whether to backup to Google Drive (defaults to false)
|
|
240
283
|
* @returns Promise with backup metadata including share locations and IDs
|
|
241
284
|
*/
|
|
242
|
-
storeEncryptedBackupByWallet({ accountAddress, clientKeyShares, password, signedSessionId, backupToGoogleDrive, }: {
|
|
285
|
+
storeEncryptedBackupByWallet({ accountAddress, clientKeyShares, password, signedSessionId, backupToGoogleDrive, delegatedKeyshare, }: {
|
|
243
286
|
accountAddress: string;
|
|
244
287
|
clientKeyShares?: ClientKeyShare[];
|
|
245
288
|
password?: string;
|
|
246
289
|
signedSessionId: string;
|
|
247
290
|
backupToGoogleDrive?: boolean;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
291
|
+
delegatedKeyshare?: ClientKeyShare;
|
|
292
|
+
}): Promise<{
|
|
293
|
+
keyShareIds: string[];
|
|
294
|
+
message: string;
|
|
295
|
+
walletId: string;
|
|
296
|
+
locationsWithKeyShares: {
|
|
297
|
+
location: BackupLocation;
|
|
298
|
+
keyShareId: string;
|
|
299
|
+
externalKeyShareId?: string;
|
|
300
|
+
}[];
|
|
301
|
+
}>;
|
|
255
302
|
storeEncryptedBackupByWalletWithRetry({ accountAddress, clientKeyShares, password, signedSessionId, }: {
|
|
256
303
|
accountAddress: string;
|
|
257
304
|
clientKeyShares?: ClientKeyShare[];
|
|
@@ -335,11 +382,11 @@ export declare class DynamicWalletClient {
|
|
|
335
382
|
* @returns Promise<string[]> - Array of Google Drive key share IDs that were uploaded
|
|
336
383
|
*/
|
|
337
384
|
private uploadKeySharesToGoogleDrive;
|
|
338
|
-
|
|
385
|
+
exportClientKeysharesFromGoogleDrive({ accountAddress, password, signedSessionId, }: {
|
|
339
386
|
accountAddress: string;
|
|
340
387
|
password?: string;
|
|
341
388
|
signedSessionId: string;
|
|
342
|
-
}): Promise<
|
|
389
|
+
}): Promise<void>;
|
|
343
390
|
exportClientKeyshares({ accountAddress, password, signedSessionId, }: {
|
|
344
391
|
accountAddress: string;
|
|
345
392
|
password?: string;
|
|
@@ -401,5 +448,21 @@ export declare class DynamicWalletClient {
|
|
|
401
448
|
* @param authToken - auth token to sync
|
|
402
449
|
*/
|
|
403
450
|
syncAuthToken(authToken: string): void;
|
|
451
|
+
createRooms({ roomType, thresholdSignatureScheme, roomCount, }: {
|
|
452
|
+
roomType: RoomTypeEnum;
|
|
453
|
+
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
454
|
+
roomCount?: number;
|
|
455
|
+
}): Promise<void>;
|
|
456
|
+
restoreRooms(): Promise<Room[] | undefined>;
|
|
457
|
+
getRooms(): Promise<Room[]>;
|
|
458
|
+
getRoom(): Promise<Room | undefined>;
|
|
459
|
+
/**
|
|
460
|
+
* Helper method to instrument with automatic properties inclusion
|
|
461
|
+
*/
|
|
462
|
+
instrument(message: string, context: InstrumentOptions & Record<string, any>): void;
|
|
463
|
+
getTraceContext(traceContext?: TraceContext): TraceContext & {
|
|
464
|
+
now: number;
|
|
465
|
+
time: number;
|
|
466
|
+
};
|
|
404
467
|
}
|
|
405
468
|
//# sourceMappingURL=client.d.ts.map
|
package/src/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../packages/src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAER,cAAc,EACd,KAAK,oCAAoC,EAEzC,gBAAgB,EAChB,KAAK,wBAAwB,EAE7B,KAAK,YAAY,EAOjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EAGvB,wBAAwB,EAExB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,kBAAkB,EAElB,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EAEnB,6BAA6B,EAE9B,MAAM,eAAe,CAAC;AAMvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAYrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EA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AAO,EAAE,MAAM,EACf,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC/C,IAAI;IAcP,eAAe,CACb,YAAY,CAAC,EAAE,YAAY,GAC1B,YAAY,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAQhD"}
|
package/src/constants.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ export declare const BACKUP_FILENAME = "dynamicWalletKeyShareBackup.json";
|
|
|
5
5
|
export declare const CLIENT_KEYSHARE_EXPORT_FILENAME_PREFIX = "dynamicWalletKeyShareBackup";
|
|
6
6
|
export declare const SIGNED_SESSION_ID_MIN_VERSION = "4.25.4";
|
|
7
7
|
export declare const SIGNED_SESSION_ID_MIN_VERSION_BY_NAMESPACE: Record<string, string>;
|
|
8
|
+
export declare const ROOM_EXPIRATION_TIME: number;
|
|
9
|
+
export declare const ROOM_CACHE_COUNT = 5;
|
|
8
10
|
//# sourceMappingURL=constants.d.ts.map
|
package/src/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../packages/src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,eAAO,MAAM,WAAW,+BAA+B,CAAC;AAExD,eAAO,MAAM,eAAe,qCAAqC,CAAC;AAElE,eAAO,MAAM,sCAAsC,gCACpB,CAAC;AAEhC,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAGtD,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAC7D,MAAM,EACN,MAAM,CAIP,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../packages/src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD,eAAO,MAAM,WAAW,+BAA+B,CAAC;AAExD,eAAO,MAAM,eAAe,qCAAqC,CAAC;AAElE,eAAO,MAAM,sCAAsC,gCACpB,CAAC;AAEhC,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAGtD,eAAO,MAAM,0CAA0C,EAAE,MAAM,CAC7D,MAAM,EACN,MAAM,CAIP,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAiB,CAAC;AACnD,eAAO,MAAM,gBAAgB,IAAI,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Algorithm label for the new hybrid encryption standard */
|
|
2
|
+
export declare const ALG_LABEL_RSA = "HYBRID-RSA-AES-256";
|
|
3
|
+
/** Envelope returned for encrypted delegated key share */
|
|
4
|
+
export type EncryptedDelegatedKeyShareEnvelope = {
|
|
5
|
+
alg: typeof ALG_LABEL_RSA;
|
|
6
|
+
iv: string;
|
|
7
|
+
ct: string;
|
|
8
|
+
tag: string;
|
|
9
|
+
ek: string;
|
|
10
|
+
kid?: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Encrypts data using HYBRID-RSA-AES-256 encryption scheme with Web Crypto API.
|
|
14
|
+
* 1. Generate random AES-256 key
|
|
15
|
+
* 2. Encrypt AES key with RSA public key
|
|
16
|
+
* 3. Encrypt data with AES-256-GCM
|
|
17
|
+
*/
|
|
18
|
+
export declare const encryptDelegatedKeyShare: (data: string, publicKeyPem: string, keyId?: string) => Promise<EncryptedDelegatedKeyShareEnvelope>;
|
|
19
|
+
//# sourceMappingURL=encryption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../../src/services/encryption.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAElD,0DAA0D;AAC1D,MAAM,MAAM,kCAAkC,GAAG;IAC/C,GAAG,EAAE,OAAO,aAAa,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAiDF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,SAC7B,MAAM,gBACE,MAAM,UACZ,MAAM,KACb,OAAO,CAAC,kCAAkC,CA0D5C,CAAC"}
|
package/src/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type KeyShareBackupInfo, type ThresholdSignatureScheme } from '@dynamic-labs-wallet/core';
|
|
2
|
+
import type { ClientKeyShare } from './mpc/types.js';
|
|
2
3
|
export interface WalletProperties {
|
|
3
4
|
chainName: string;
|
|
4
5
|
walletId: string;
|
|
@@ -7,4 +8,38 @@ export interface WalletProperties {
|
|
|
7
8
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
8
9
|
derivationPath?: string;
|
|
9
10
|
}
|
|
11
|
+
export type ShareDistribution = {
|
|
12
|
+
dynamicBackendShares: ClientKeyShare[];
|
|
13
|
+
googleDriveShares: ClientKeyShare[];
|
|
14
|
+
delegatedShare?: ClientKeyShare;
|
|
15
|
+
};
|
|
16
|
+
export declare const createDelegationWithGoogleDriveDistribution: ({ existingShares, delegatedShare, }: {
|
|
17
|
+
existingShares: ClientKeyShare[];
|
|
18
|
+
delegatedShare: ClientKeyShare;
|
|
19
|
+
}) => ShareDistribution;
|
|
20
|
+
export declare const createDelegationOnlyDistribution: ({ existingShares, delegatedShare, }: {
|
|
21
|
+
existingShares: ClientKeyShare[];
|
|
22
|
+
delegatedShare: ClientKeyShare;
|
|
23
|
+
}) => ShareDistribution;
|
|
24
|
+
export declare const createGoogleDriveOnlyDistribution: ({ allShares, }: {
|
|
25
|
+
allShares: ClientKeyShare[];
|
|
26
|
+
}) => ShareDistribution;
|
|
27
|
+
export declare const createDynamicOnlyDistribution: ({ allShares, }: {
|
|
28
|
+
allShares: ClientKeyShare[];
|
|
29
|
+
}) => ShareDistribution;
|
|
30
|
+
export declare const hasGoogleDriveBackup: (backupInfo?: KeyShareBackupInfo) => boolean;
|
|
31
|
+
export declare const hasDelegatedBackup: (backupInfo?: KeyShareBackupInfo) => boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Distribution for adding Google Drive backup to an existing delegation.
|
|
34
|
+
* Client's shares go to both Dynamic and Google Drive.
|
|
35
|
+
* delegatedShare is undefined - we don't re-publish, but preserve the location.
|
|
36
|
+
*/
|
|
37
|
+
export declare const createAddGoogleDriveToExistingDelegationDistribution: ({ clientShares, }: {
|
|
38
|
+
clientShares: ClientKeyShare[];
|
|
39
|
+
}) => ShareDistribution;
|
|
40
|
+
export type Room = {
|
|
41
|
+
roomId: string;
|
|
42
|
+
createdAt: number;
|
|
43
|
+
expiresAt: number;
|
|
44
|
+
};
|
|
10
45
|
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB,EAAE,kBAAkB,CAAC;IAC9C,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oBAAoB,EAAE,cAAc,EAAE,CAAC;IACvC,iBAAiB,EAAE,cAAc,EAAE,CAAC;IACpC,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,2CAA2C,wCAGrD;IACD,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,cAAc,EAAE,cAAc,CAAC;CAChC,KAAG,iBAIF,CAAC;AAEH,eAAO,MAAM,gCAAgC,wCAG1C;IACD,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,cAAc,EAAE,cAAc,CAAC;CAChC,KAAG,iBAIF,CAAC;AAEH,eAAO,MAAM,iCAAiC,mBAE3C;IACD,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B,KAAG,iBAGF,CAAC;AAEH,eAAO,MAAM,6BAA6B,mBAEvC;IACD,SAAS,EAAE,cAAc,EAAE,CAAC;CAC7B,KAAG,iBAGF,CAAC;AAEH,eAAO,MAAM,oBAAoB,gBAClB,kBAAkB,KAC9B,OACoE,CAAC;AAExE,eAAO,MAAM,kBAAkB,gBAAiB,kBAAkB,KAAG,OACD,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,oDAAoD,sBAE9D;IACD,YAAY,EAAE,cAAc,EAAE,CAAC;CAChC,KAAG,iBAGF,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/src/utils.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { MessageHash } from '#internal/web';
|
|
1
2
|
import { type KeyShareBackupInfo, type ThresholdSignatureScheme, type WaasWalletProperties } from '@dynamic-labs-wallet/core';
|
|
2
3
|
import type { JwtVerifiedCredential } from '@dynamic-labs/sdk-api-core';
|
|
3
|
-
import { MessageHash } from '#internal/web';
|
|
4
4
|
import type { ClientKeyShare } from './mpc/types.js';
|
|
5
5
|
export declare const isBrowser: () => boolean;
|
|
6
|
-
export declare const getClientKeyShareExportFileName: ({ thresholdSignatureScheme, accountAddress, }: {
|
|
6
|
+
export declare const getClientKeyShareExportFileName: ({ thresholdSignatureScheme, accountAddress, isGoogleDrive, }: {
|
|
7
7
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
8
8
|
accountAddress: string;
|
|
9
|
+
isGoogleDrive?: boolean;
|
|
9
10
|
}) => string;
|
|
10
11
|
export declare const getClientKeyShareBackupInfo: (params?: {
|
|
11
12
|
walletProperties: WaasWalletProperties;
|
|
@@ -57,5 +58,10 @@ export declare const createBackupData: ({ encryptedKeyShares, accountAddress, th
|
|
|
57
58
|
shareCount: number;
|
|
58
59
|
};
|
|
59
60
|
};
|
|
61
|
+
export declare const downloadStringAsFile: ({ filename, content, mimeType, }: {
|
|
62
|
+
filename: string;
|
|
63
|
+
content: string;
|
|
64
|
+
mimeType?: string;
|
|
65
|
+
}) => void;
|
|
60
66
|
export {};
|
|
61
67
|
//# sourceMappingURL=utils.d.ts.map
|
package/src/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../packages/src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../packages/src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM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AAuB,wBACb,qBAAqB,EAAE,KAC3C,MAAM,GAAG,SAOX,CAAC;AAEF,eAAO,MAAM,gBAAgB,mFAK1B;IACD,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;;;;;;;;;;;CAaA,CAAC;AAEF,eAAO,MAAM,oBAAoB,qCAI9B;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,SAQA,CAAC"}
|
package/internal/core/bip340.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.BIP340=void 0;let _1=require("."),utils_1=require("@noble/hashes/utils"),common_1=require("./common");function getTweak(e){if(0!==(e="string"!=typeof e?(0,utils_1.bytesToHex)(e):e).length&&64!==e.length)throw new Error("Tweak must be 32 bytes long");return e}class BIP340{constructor(e,t){this.NATIVE=e,this.URL=t}async initKeygen(){var e=await(await this.NATIVE).initKeygen();return new _1.BIP340InitKeygenResult(e.pubkey,e.keypair)}async exportID(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).bip340GetExportID(e)}async createRoom(e,t){return(0,common_1.sanitizeNumberOfParties)(e),(await this.NATIVE).createRoom(this.URL,e,t)}async keygen(e,t,r,i,a){if((0,common_1.sanitizeNumberOfParties)(t,r),a.length!==t-1)throw new Error(`keygenIds length must be exactly: ${t-1}, it is: `+a.length);e=await(await this.NATIVE).bip340Keygen(e,this.URL,t,r,i.keygenSecret,a);if(e.pubkey&&e.secret_share)return t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share,new _1.BIP340KeygenResult(t,r);throw new Error("Keygen failed, no public key or secret share was returned.")}async sign(e,t,r,i=new Uint32Array,a=new Uint8Array){t="string"==typeof t?t:t.secretShare,"string"!=typeof r&&(r=(0,utils_1.bytesToHex)(r)),a=getTweak(a),e=await(await this.NATIVE).bip340Sign(e,this.URL,t,r,Array.from(i),a);return(0,utils_1.hexToBytes)(e)}async refresh(e,t){var t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).bip340Refresh(e,this.URL,t);if(e.pubkey&&e.secret_share)return t=(0,utils_1.hexToBytes)(e.pubkey),e=e.secret_share,new _1.BIP340KeygenResult(t,e);throw new Error("Keygen failed, no public key or secret share was returned.")}async reshareNewParty(e,t,r,i,a){e=await(await this.NATIVE).bip340ReshareNewParty(e,this.URL,t,r,i.keygenSecret,a),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.BIP340KeygenResult(t,r)}async reshareRemainingParty(e,t,r,i){r="string"==typeof r?r:r.secretShare,e=await(await this.NATIVE).bip340ReshareRemainingParty(e,this.URL,t,r,i),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.BIP340KeygenResult(t,r)}async deriveTweakPubkey(e,t=new Uint32Array,r=new Uint8Array){e="string"==typeof e?e:e.secretShare,e=await(await this.NATIVE).bip340DeriveTweakPubkey(e,Array.from(t),getTweak(r));return(0,utils_1.hexToBytes)(e)}async getXpub(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).bip340GetXpub(e)}async deriveTweakPubkeyFromXpub(e,t=new Uint32Array,r=new Uint8Array){e=await(await this.NATIVE).bip340DeriveTweakPubkeyFromXpub(e,Array.from(t),getTweak(r));return(0,utils_1.hexToBytes)(e)}async exportFullPrivateKey(e,t,r){t="string"==typeof t?t:t.secretShare;return(await this.NATIVE).bip340ExportFullPrivateKey(e,this.URL,t,r)}async derivePrivateKeyFromXpriv(e,t=new Uint32Array){return(await this.NATIVE).bip340DerivePrivateKeyFromXpriv(e,Array.from(t))}async offlineExportFullPrivateKey(e){e=e.map(e=>{if("string"==typeof e)return e;if(e instanceof _1.BIP340KeygenResult)return e.secretShare;throw"UnknownType"});return(await this.NATIVE).bip340OfflineExportFullPrivateKey(e)}async importPrivateKeyRecipient(e,t,r,i){e=await(await this.NATIVE).bip340ImportPrivateKeyRecipient(e,this.URL,t,r.keygenSecret,i),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.BIP340KeygenResult(t,r)}async importPrivateKeyImporter(e,t,r,i,a){e=await(await this.NATIVE).bip340ImportPrivateKeyImporter(e,this.URL,t,r,i.keygenSecret,a),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.BIP340KeygenResult(t,r)}}exports.BIP340=BIP340;
|
package/internal/core/common.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function sanitizeNumberOfParties(...e){for(var r of e)if(!Number.isInteger(r)||r<1||65535<r)throw new RangeError(`numberOfParties should be an integer in the range: 1..65_535, instead got: ${r} `)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.sanitizeNumberOfParties=sanitizeNumberOfParties;
|
package/internal/core/ecdsa.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.Ecdsa=void 0;let _1=require("./"),common_1=require("./common");class Ecdsa{constructor(e,t){this.NATIVE=e,this.URL=t}async createRoom(e,t){return(0,common_1.sanitizeNumberOfParties)(e),(await this.NATIVE).createRoom(this.URL,e,t)}async initKeygen(){var e=await(await this.NATIVE).initKeygen();return new _1.EcdsaInitKeygenResult(e.pubkey,e.keypair)}async exportID(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).ecdsaGetExportID(e)}async keygen(e,t,r,a,s){if((0,common_1.sanitizeNumberOfParties)(t,r),s.length!==t-1)throw new Error(`keygenIds length must be exactly: ${t-1}, it is: `+s.length);e=await(await this.NATIVE).ecdsaKeygen(e,this.URL,t,r,a.keygenSecret,s),t=new _1.EcdsaPublicKey(e.pubkey),r=e.secret_share;return new _1.EcdsaKeygenResult(t,r)}async sign(e,t,r,a=new Uint32Array){t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).ecdsaSign(e,this.URL,t,r.toHex(),Array.from(a));return _1.EcdsaSignature.fromBuffer(e)}async refresh(e,t){t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).ecdsaRefresh(e,this.URL,t),t=new _1.EcdsaPublicKey(e.pubkey),e=e.secret_share;return new _1.EcdsaKeygenResult(t,e)}async reshareNewParty(e,t,r,a,s){e=await(await this.NATIVE).ecdsaReshareNewParty(e,this.URL,t,r,a.keygenSecret,s),t=new _1.EcdsaPublicKey(e.pubkey),r=e.secret_share;return new _1.EcdsaKeygenResult(t,r)}async reshareRemainingParty(e,t,r,a){r="string"==typeof r?r:r.secretShare,e=await(await this.NATIVE).ecdsaReshareRemainingParty(e,this.URL,t,r,a),t=new _1.EcdsaPublicKey(e.pubkey),r=e.secret_share;return new _1.EcdsaKeygenResult(t,r)}async derivePubkey(e,t=new Uint32Array){e="string"==typeof e?e:e.secretShare,e=await(await this.NATIVE).ecdsaDerivePubkey(e,Array.from(t));return new _1.EcdsaPublicKey(e)}async getXpub(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).ecdsaGetXpub(e)}async derivePubkeyFromXpub(e,t=new Uint32Array){e=await(await this.NATIVE).ecdsaDerivePubkeyFromXpub(e,Array.from(t));return new _1.EcdsaPublicKey(e)}async exportFullPrivateKey(e,t,r){t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).ecdsaExportFullPrivateKey(e,this.URL,t,r);return e||void 0}async derivePrivateKeyFromXpriv(e,t=new Uint32Array){return(await this.NATIVE).ecdsaDerivePrivateKeyFromXpriv(e,Array.from(t))}async offlineExportFullPrivateKey(e){e=e.map(e=>{if("string"==typeof e)return e;if(e instanceof _1.EcdsaKeygenResult)return e.secretShare;throw"UnknownType"});return(await this.NATIVE).ecdsaOfflineExportFullPrivateKey(e)}async importPrivateKeyRecipient(e,t,r,a){e=await(await this.NATIVE).ecdsaImportPrivateKeyRecipient(e,this.URL,t,r.keygenSecret,a),t=new _1.EcdsaPublicKey(e.pubkey),r=e.secret_share;return new _1.EcdsaKeygenResult(t,r)}async importPrivateKeyImporter(e,t,r,a,s){e=await(await this.NATIVE).ecdsaImportPrivateKeyImporter(e,this.URL,t,r,a.keygenSecret,s),t=new _1.EcdsaPublicKey(e.pubkey),r=e.secret_share;return new _1.EcdsaKeygenResult(t,r)}getHostUrl(e){return e||this.URL}}exports.Ecdsa=Ecdsa;
|
package/internal/core/ed25519.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.Ed25519=void 0;let _1=require("./"),utils_1=require("@noble/hashes/utils"),common_1=require("./common");class Ed25519{constructor(e,t){this.NATIVE=e,this.URL=t}async initKeygen(){var e=await(await this.NATIVE).initKeygen();return new _1.Ed25519InitKeygenResult(e.pubkey,e.keypair)}async exportID(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).ed25519GetExportID(e)}async createRoom(e,t){return(0,common_1.sanitizeNumberOfParties)(e),(await this.NATIVE).createRoom(this.URL,e,t)}async keygen(e,t,r,i,s){if((0,common_1.sanitizeNumberOfParties)(t,r),s.length!==t-1)throw new Error(`keygenIds length must be exactly: ${t-1}, it is: `+s.length);e=await(await this.NATIVE).ed25519Keygen(e,this.URL,t,r,i.keygenSecret,s);if(e.pubkey&&e.secret_share)return t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share,new _1.Ed25519KeygenResult(t,r);throw new Error("Keygen failed, no public key or secret share was returned.")}async sign(e,t,r,i=new Uint32Array){"string"!=typeof r&&(r=(0,utils_1.bytesToHex)(r));t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).ed25519Sign(e,this.URL,t,r,Array.from(i));return(0,utils_1.hexToBytes)(e)}async refresh(e,t){var t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).ed25519Refresh(e,this.URL,t);if(e.pubkey&&e.secret_share)return t=(0,utils_1.hexToBytes)(e.pubkey),e=e.secret_share,new _1.Ed25519KeygenResult(t,e);throw new Error("Keygen failed, no public key or secret share was returned.")}async reshareNewParty(e,t,r,i,s){e=await(await this.NATIVE).ed25519ReshareNewParty(e,this.URL,t,r,i.keygenSecret,s),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.Ed25519KeygenResult(t,r)}async reshareRemainingParty(e,t,r,i){r="string"==typeof r?r:r.secretShare,e=await(await this.NATIVE).ed25519ReshareRemainingParty(e,this.URL,t,r,i),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.Ed25519KeygenResult(t,r)}async derivePubkey(e,t=new Uint32Array){e="string"==typeof e?e:e.secretShare,e=await(await this.NATIVE).ed25519DerivePubkey(e,Array.from(t));return(0,utils_1.hexToBytes)(e)}async getSpub(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).ed25519GetSpub(e)}async derivePubkeyFromSpub(e,t){e=await(await this.NATIVE).ed25519DerivePubkeyFromSpub(e,Array.from(t));return(0,utils_1.hexToBytes)(e)}async exportFullPrivateKey(e,t,r){t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).ed25519ExportFullPrivateKey(e,this.URL,t,r);return e||void 0}async derivePrivateKeyFromSpriv(e,t=new Uint32Array){return(await this.NATIVE).ed25519DerivePrivateKeyFromSpriv(e,Array.from(t))}async offlineExportFullPrivateKey(e){e=e.map(e=>{if("string"==typeof e)return e;if(e instanceof _1.Ed25519KeygenResult)return e.secretShare;throw"UnknownType"});return(await this.NATIVE).ed25519OfflineExportFullPrivateKey(e)}async importPrivateKeyRecipient(e,t,r,i){e=await(await this.NATIVE).ed25519ImportPrivateKeyRecipient(e,this.URL,t,r.keygenSecret,i),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.Ed25519KeygenResult(t,r)}async importPrivateKeyImporter(e,t,r,i,s,a=!1){e=await(await this.NATIVE).ed25519ImportPrivateKeyImporter(e,this.URL,t,r,i.keygenSecret,s,a),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.Ed25519KeygenResult(t,r)}}exports.Ed25519=Ed25519;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExportableEd25519=void 0;let _1=require("./"),utils_1=require("@noble/hashes/utils"),common_1=require("./common");class ExportableEd25519{constructor(e,t){this.NATIVE=e,this.URL=t}async initKeygen(){var e=await(await this.NATIVE).initKeygen();return new _1.ExportableEd25519InitKeygenResult(e.pubkey,e.keypair)}async exportID(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).exportableEd25519GetExportID(e)}async createRoom(e,t){return(0,common_1.sanitizeNumberOfParties)(e),(await this.NATIVE).createRoom(this.URL,e,t)}async sampleKey(e,t,r,a,s){if((0,common_1.sanitizeNumberOfParties)(t,r),s.length!==t-1)throw new Error(`keygenIds length must be exactly: ${t-1}, it is: `+s.length);e=await(await this.NATIVE).exportableEd25519SampleKey(e,this.URL,t,r,a.keygenSecret,s);if(e.pubkey&&e.secret_share)return t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share,new _1.ExportableEd25519KeygenResult(t,r);throw new Error("Key sampling failed, no public key or secret share was returned.")}async receiveKey(e,t,r,a,s){if((0,common_1.sanitizeNumberOfParties)(t,r),s.length!==t-1)throw new Error(`keygenIds length must be exactly: ${t-1}, it is: `+s.length);e=await(await this.NATIVE).exportableEd25519ReceiveKey(e,this.URL,t,r,a.keygenSecret,s);if(e.pubkey&&e.secret_share)return t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share,new _1.ExportableEd25519KeygenResult(t,r);throw new Error("Key receive failed, no public key or secret share was returned.")}async sign(e,t,r){"string"!=typeof r&&(r=(0,utils_1.bytesToHex)(r));t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).exportableEd25519Sign(e,this.URL,t,r);return(0,utils_1.hexToBytes)(e)}async refresh(e,t){var t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).exportableEd25519Refresh(e,this.URL,t);if(e.pubkey&&e.secret_share)return t=(0,utils_1.hexToBytes)(e.pubkey),e=e.secret_share,new _1.ExportableEd25519KeygenResult(t,e);throw new Error("Keygen failed, no public key or secret share was returned.")}async reshareNewParty(e,t,r,a,s){e=await(await this.NATIVE).exportableEd25519ReshareNewParty(e,this.URL,t,r,a.keygenSecret,s),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.ExportableEd25519KeygenResult(t,r)}async reshareRemainingParty(e,t,r,a){r="string"==typeof r?r:r.secretShare,e=await(await this.NATIVE).exportableEd25519ReshareRemainingParty(e,this.URL,t,r,a),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.ExportableEd25519KeygenResult(t,r)}async getPrivateKey(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).exportableEd25519GetPubkey(e)}async exportFullPrivateKey(e,t,r){t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).exportableEd25519ExportFullPrivateKey(e,this.URL,t,r);return e||void 0}async offlineExportFullPrivateKey(e){e=e.map(e=>{if("string"==typeof e)return e;if(e instanceof _1.ExportableEd25519KeygenResult)return e.secretShare;throw new Error("UnknownType")});return(await this.NATIVE).exportableEd25519OfflineExportFullPrivateKey(e)}async importPrivateKeyRecipient(e,t,r,a){e=await(await this.NATIVE).exportableEd25519ImportPrivateKeyRecipient(e,this.URL,t,r.keygenSecret,a),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.ExportableEd25519KeygenResult(t,r)}async importPrivateKeyImporter(e,t,r,a,s){e=await(await this.NATIVE).exportableEd25519ImportPrivateKeyImporter(e,this.URL,t,r,a.keygenSecret,s),t=(0,utils_1.hexToBytes)(e.pubkey),r=e.secret_share;return new _1.ExportableEd25519KeygenResult(t,r)}async getPubkey(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).exportableEd25519GetPubkey(e)}}exports.ExportableEd25519=ExportableEd25519;
|
package/internal/core/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.BIP340=exports.Sr25519=exports.ExportableEd25519=exports.Ed25519=exports.Ecdsa=exports.MessageHash=exports.BIP340KeygenResult=exports.BIP340InitKeygenResult=exports.Sr25519KeygenResult=exports.Sr25519InitKeygenResult=exports.ExportableEd25519KeygenResult=exports.ExportableEd25519InitKeygenResult=exports.Ed25519KeygenResult=exports.Ed25519InitKeygenResult=exports.EcdsaSignature=exports.EcdsaPublicKey=exports.EcdsaKeygenResult=exports.EcdsaInitKeygenResult=void 0;let types_1=require("./types"),ecdsa_1=(Object.defineProperty(exports,"EcdsaInitKeygenResult",{value:types_1.EcdsaInitKeygenResult}),Object.defineProperty(exports,"EcdsaKeygenResult",{value:types_1.EcdsaKeygenResult}),Object.defineProperty(exports,"EcdsaPublicKey",{value:types_1.EcdsaPublicKey}),Object.defineProperty(exports,"EcdsaSignature",{value:types_1.EcdsaSignature}),Object.defineProperty(exports,"Ed25519InitKeygenResult",{value:types_1.Ed25519InitKeygenResult}),Object.defineProperty(exports,"Ed25519KeygenResult",{value:types_1.Ed25519KeygenResult}),Object.defineProperty(exports,"ExportableEd25519InitKeygenResult",{value:types_1.ExportableEd25519InitKeygenResult}),Object.defineProperty(exports,"ExportableEd25519KeygenResult",{value:types_1.ExportableEd25519KeygenResult}),Object.defineProperty(exports,"Sr25519InitKeygenResult",{value:types_1.Sr25519InitKeygenResult}),Object.defineProperty(exports,"Sr25519KeygenResult",{value:types_1.Sr25519KeygenResult}),Object.defineProperty(exports,"BIP340InitKeygenResult",{value:types_1.BIP340InitKeygenResult}),Object.defineProperty(exports,"BIP340KeygenResult",{value:types_1.BIP340KeygenResult}),Object.defineProperty(exports,"MessageHash",{value:types_1.MessageHash}),require("./ecdsa")),ed25519_1=(Object.defineProperty(exports,"Ecdsa",{value:ecdsa_1.Ecdsa}),require("./ed25519")),ed25519_exportable_1=(Object.defineProperty(exports,"Ed25519",{value:ed25519_1.Ed25519}),require("./ed25519_exportable")),sr25519_1=(Object.defineProperty(exports,"ExportableEd25519",{value:ed25519_exportable_1.ExportableEd25519}),require("./sr25519")),bip340_1=(Object.defineProperty(exports,"Sr25519",{value:sr25519_1.Sr25519}),require("./bip340"));Object.defineProperty(exports,"BIP340",{value:bip340_1.BIP340});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "#internal/core",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"type": "commonjs",
|
|
5
|
-
"main": "./index.js",
|
|
6
|
-
"types": "./index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./index.d.ts",
|
|
10
|
-
"require": "./index.js",
|
|
11
|
-
"import": "./index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@noble/hashes": "1.7.1"
|
|
16
|
-
}
|
|
17
|
-
}
|
package/internal/core/sr25519.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.Sr25519=void 0;let _1=require("./"),utils_1=require("@noble/hashes/utils"),common_1=require("./common");class Sr25519{constructor(e,r){this.NATIVE=e,this.URL=r}async initKeygen(){var e=await(await this.NATIVE).initKeygen();return new _1.Sr25519InitKeygenResult(e.pubkey,e.keypair)}async exportID(e){e="string"==typeof e?e:e.secretShare;return(await this.NATIVE).sr25519GetExportID(e)}async createRoom(e,r){return(0,common_1.sanitizeNumberOfParties)(e),(await this.NATIVE).createRoom(this.URL,e,r)}async keygen(e,r,t,s,i){if((0,common_1.sanitizeNumberOfParties)(r,t),i.length!==r-1)throw new Error(`keygenIds length must be exactly: ${r-1}, it is: `+i.length);e=await(await this.NATIVE).sr25519Keygen(e,this.URL,r,t,s.keygenSecret,i);if(e.pubkey&&e.secret_share)return r=(0,utils_1.hexToBytes)(e.pubkey),t=e.secret_share,new _1.Sr25519KeygenResult(r,t);throw new Error("Keygen failed, no public key or secret share was returned.")}async sign(e,r,t,s=[]){"string"!=typeof t&&(t=(0,utils_1.bytesToHex)(t));r="string"==typeof r?r:r.secretShare,e=await(await this.NATIVE).sr25519Sign(e,this.URL,r,t,Array.from(s));return(0,utils_1.hexToBytes)(e)}async refresh(e,r){var r="string"==typeof r?r:r.secretShare,e=await(await this.NATIVE).sr25519Refresh(e,this.URL,r);if(e.pubkey&&e.secret_share)return r=(0,utils_1.hexToBytes)(e.pubkey),e=e.secret_share,new _1.Sr25519KeygenResult(r,e);throw new Error("Keygen failed, no public key or secret share was returned.")}async reshareNewParty(e,r,t,s,i){e=await(await this.NATIVE).sr25519ReshareNewParty(e,this.URL,r,t,s.keygenSecret,i),r=(0,utils_1.hexToBytes)(e.pubkey),t=e.secret_share;return new _1.Sr25519KeygenResult(r,t)}async reshareRemainingParty(e,r,t,s){t="string"==typeof t?t:t.secretShare,e=await(await this.NATIVE).sr25519ReshareRemainingParty(e,this.URL,r,t,s),r=(0,utils_1.hexToBytes)(e.pubkey),t=e.secret_share;return new _1.Sr25519KeygenResult(r,t)}async derivePubkey(e,r=[]){e="string"==typeof e?e:e.secretShare,e=await(await this.NATIVE).sr25519DerivePubkey(e,Array.from(r));return(0,utils_1.hexToBytes)(e)}async getPubkey(e){e="string"==typeof e?e:e.secretShare,e=await(await this.NATIVE).sr25519GetPubkey(e);return(0,utils_1.hexToBytes)(e)}async derivePubkeyFromPubkey(e,r){e=await(await this.NATIVE).sr25519DerivePubkeyFromPubkey((0,utils_1.bytesToHex)(e),Array.from(r));return(0,utils_1.hexToBytes)(e)}async exportFullPrivateKey(e,r,t){r="string"==typeof r?r:r.secretShare,e=await(await this.NATIVE).sr25519ExportFullPrivateKey(e,this.URL,r,t);return e||void 0}async derivePrivateKeyFromPrivateKey(e,r,t=[]){return(await this.NATIVE).sr25519DerivePrivateKeyFromPrivateKey(e,Array.from(t),r)}async offlineExportFullPrivateKey(e){e=e.map(e=>{if("string"==typeof e)return e;if(e instanceof _1.Sr25519KeygenResult)return e.secretShare;throw"UnknownType"});return(await this.NATIVE).sr25519OfflineExportFullPrivateKey(e)}async importPrivateKeyRecipient(e,r,t,s){e=await(await this.NATIVE).sr25519ImportPrivateKeyRecipient(e,this.URL,r,t.keygenSecret,s),r=(0,utils_1.hexToBytes)(e.pubkey),t=e.secret_share;return new _1.Sr25519KeygenResult(r,t)}async importPrivateKeyImporter(e,r,t,s,i,a=!1){e=await(await this.NATIVE).sr25519ImportPrivateKeyImporter(e,this.URL,r,t,s.keygenSecret,i,a),r=(0,utils_1.hexToBytes)(e.pubkey),t=e.secret_share;return new _1.Sr25519KeygenResult(r,t)}}exports.Sr25519=Sr25519;
|
package/internal/core/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.BIP340InitKeygenResult=exports.BIP340KeygenResult=exports.EcdsaSignature=exports.Sr25519InitKeygenResult=exports.ExportableEd25519InitKeygenResult=exports.ExportableEd25519KeygenResult=exports.Sr25519KeygenResult=exports.Ed25519InitKeygenResult=exports.Ed25519KeygenResult=exports.EcdsaInitKeygenResult=exports.EcdsaKeygenResult=exports.EcdsaPublicKey=exports.MessageHash=void 0;let utils_1=require("@noble/hashes/utils"),sha3_1=require("@noble/hashes/sha3"),sha256_1=require("@noble/hashes/sha256");class MessageHash{constructor(e){if(this.bytes=new Uint8Array,"string"==typeof e){if(e.length!==2*MessageHash.LENGTH)throw new Error("Invalid length for MessageHash: "+e.length);this.bytes=(0,utils_1.hexToBytes)(e)}else{if(e.length!==MessageHash.LENGTH)throw new Error("Invalid length for MessageHash: "+e.length);this.bytes=e}}static sha256(e){return new MessageHash((0,sha256_1.sha256)(e))}static sha256d(e){return new MessageHash((0,sha256_1.sha256)((0,sha256_1.sha256)(e)))}static keccak256(e){return new MessageHash((0,sha3_1.keccak_256)(e))}toHex(){return(0,utils_1.bytesToHex)(this.bytes)}}(exports.MessageHash=MessageHash).LENGTH=32;class EcdsaPublicKey{constructor(e){if((e="string"==typeof e?(0,utils_1.hexToBytes)(e):e).length===EcdsaPublicKey.LENGTH+1)this.pubkey=e.slice(1);else{if(e.length!==EcdsaPublicKey.LENGTH)throw new RangeError(`Invalid ${this.constructor.name} length, expected: ${EcdsaPublicKey.LENGTH} bytes, found: `+e.length);this.pubkey=e}}serializeUncompressed(){return new Uint8Array([4,...this.pubkey])}serializeCompressed(){var e=1&this.pubkey[63];return new Uint8Array([2+e,...this.pubkey.slice(0,32)])}pubKeyAsHex(){return(0,utils_1.bytesToHex)(this.serializeUncompressed())}}(exports.EcdsaPublicKey=EcdsaPublicKey).LENGTH=64;class EcdsaKeygenResult{constructor(e,s){this.pubkey=e,this.secretShare=s}}exports.EcdsaKeygenResult=EcdsaKeygenResult;class EcdsaInitKeygenResult{constructor(e,s){this.keygenId=e,this.keygenSecret=s}}exports.EcdsaInitKeygenResult=EcdsaInitKeygenResult;class Ed25519KeygenResult{constructor(e,s){this.pubkey=e,this.secretShare=s}}exports.Ed25519KeygenResult=Ed25519KeygenResult;class Ed25519InitKeygenResult{constructor(e,s){this.keygenId=e,this.keygenSecret=s}}exports.Ed25519InitKeygenResult=Ed25519InitKeygenResult;class Sr25519KeygenResult{constructor(e,s){this.pubkey=e,this.secretShare=s}}exports.Sr25519KeygenResult=Sr25519KeygenResult;class ExportableEd25519KeygenResult{constructor(e,s){this.pubkey=e,this.secretShare=s}}exports.ExportableEd25519KeygenResult=ExportableEd25519KeygenResult;class ExportableEd25519InitKeygenResult{constructor(e,s){this.keygenId=e,this.keygenSecret=s}}exports.ExportableEd25519InitKeygenResult=ExportableEd25519InitKeygenResult;class Sr25519InitKeygenResult{constructor(e,s){this.keygenId=e,this.keygenSecret=s}}exports.Sr25519InitKeygenResult=Sr25519InitKeygenResult;class EcdsaSignature{static fromBuffer(e){"string"==typeof e&&(e=(0,utils_1.hexToBytes)(e));var s=2*EcdsaSignature.FIELD_SIZE+EcdsaSignature.MAX_DER_LEN+1,t=2*EcdsaSignature.FIELD_SIZE+EcdsaSignature.MIN_DER_LEN+1;if(e.length<t||e.length>s)throw new RangeError(`Invalid ${this.constructor.name} length, expected between ${t}..${s} bytes, found: `+e.length);var t=e.subarray(0,EcdsaSignature.FIELD_SIZE),s=e.subarray(EcdsaSignature.FIELD_SIZE,2*EcdsaSignature.FIELD_SIZE),r=e[2*EcdsaSignature.FIELD_SIZE],e=e.subarray(2*EcdsaSignature.FIELD_SIZE+1);return new EcdsaSignature(t,s,r,e)}constructor(e,s,t,r){if(s.length!==EcdsaSignature.FIELD_SIZE)throw new RangeError(`Invalid 's' length, expected: ${EcdsaSignature.FIELD_SIZE} found: `+s.length);if(e.length!==EcdsaSignature.FIELD_SIZE)throw new RangeError(`Invalid 'r' length, expected: ${EcdsaSignature.FIELD_SIZE} found: `+e.length);if(!Number.isInteger(t)||t<27||30<t)throw new RangeError("Invalid 'v' value, expected 27/28/29/30 found: "+t);if(r.length<EcdsaSignature.MIN_DER_LEN||r.length>EcdsaSignature.MAX_DER_LEN)throw new RangeError(`Invalid DER encoding, expected length: ${EcdsaSignature.MIN_DER_LEN}..${EcdsaSignature.MAX_DER_LEN} found: `+r.length);this.r=e,this.s=s,this.v=t,this.der=r}}(exports.EcdsaSignature=EcdsaSignature).FIELD_SIZE=32,EcdsaSignature.MAX_DER_LEN=72,EcdsaSignature.MIN_DER_LEN=8;class BIP340KeygenResult{constructor(e,s){this.pubkey=e,this.secretShare=s}}exports.BIP340KeygenResult=BIP340KeygenResult;class BIP340InitKeygenResult{constructor(e,s){this.keygenId=e,this.keygenSecret=s}}exports.BIP340InitKeygenResult=BIP340InitKeygenResult;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "#internal/web",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"type": "commonjs",
|
|
5
|
-
"main": "./index.js",
|
|
6
|
-
"types": "./index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./index.d.ts",
|
|
10
|
-
"require": "./index.js",
|
|
11
|
-
"import": "./index.js"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"dependencies": {
|
|
15
|
-
"@noble/hashes": "1.7.1"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
File without changes
|