@dynamic-labs-wallet/node 0.0.164 → 0.0.166

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 CHANGED
@@ -66,7 +66,8 @@ const getExternalServerKeyShareBackupInfo = (params)=>{
66
66
  [core.BackupLocation.GOOGLE_DRIVE]: [],
67
67
  [core.BackupLocation.ICLOUD]: [],
68
68
  [core.BackupLocation.USER]: [],
69
- [core.BackupLocation.EXTERNAL]: []
69
+ [core.BackupLocation.EXTERNAL]: [],
70
+ [core.BackupLocation.DELEGATED]: []
70
71
  };
71
72
  if (!(params == null ? void 0 : (_params_walletProperties = params.walletProperties) == null ? void 0 : _params_walletProperties.keyShares)) {
72
73
  return {
package/index.esm.js CHANGED
@@ -66,7 +66,8 @@ const getExternalServerKeyShareBackupInfo = (params)=>{
66
66
  [BackupLocation.GOOGLE_DRIVE]: [],
67
67
  [BackupLocation.ICLOUD]: [],
68
68
  [BackupLocation.USER]: [],
69
- [BackupLocation.EXTERNAL]: []
69
+ [BackupLocation.EXTERNAL]: [],
70
+ [BackupLocation.DELEGATED]: []
70
71
  };
71
72
  if (!(params == null ? void 0 : (_params_walletProperties = params.walletProperties) == null ? void 0 : _params_walletProperties.keyShares)) {
72
73
  return {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node",
3
- "version": "0.0.164",
3
+ "version": "0.0.166",
4
4
  "license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
5
5
  "dependencies": {
6
- "@dynamic-labs-wallet/core": "0.0.164",
6
+ "@dynamic-labs-wallet/core": "0.0.166",
7
7
  "@dynamic-labs/logger": "^4.25.3",
8
8
  "uuid": "11.1.0",
9
9
  "@noble/hashes": "1.7.1"
package/src/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { EcdsaKeygenResult, BIP340KeygenResult, EcdsaPublicKey, EcdsaSignature, ExportableEd25519KeygenResult } from '../../internal/node';
1
+ import { EcdsaKeygenResult, BIP340KeygenResult, EcdsaPublicKey, EcdsaSignature, ExportableEd25519KeygenResult } from '../internal/node';
2
2
  import { ThresholdSignatureScheme, DynamicApiClient, WalletOperation, KeyShareBackupInfo, BackupLocation } from '@dynamic-labs-wallet/core';
3
3
  import { ServerInitKeygenResult } from './mpc/types';
4
4
  import { WalletProperties } from './types';
package/src/mpc/mpc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SigningAlgorithm } from '@dynamic-labs-wallet/core';
2
- import { Ecdsa, ExportableEd25519, BIP340, BIP340KeygenResult, EcdsaPublicKey, ExportableEd25519KeygenResult, EcdsaKeygenResult, MessageHash, EcdsaInitKeygenResult, ExportableEd25519InitKeygenResult, BIP340InitKeygenResult, EcdsaSignature } from '../../../internal/node';
2
+ import { Ecdsa, ExportableEd25519, BIP340, BIP340KeygenResult, EcdsaPublicKey, ExportableEd25519KeygenResult, EcdsaKeygenResult, MessageHash, EcdsaInitKeygenResult, ExportableEd25519InitKeygenResult, BIP340InitKeygenResult, EcdsaSignature } from '../../internal/node';
3
3
  export { Ecdsa, ExportableEd25519, BIP340, EcdsaPublicKey, EcdsaKeygenResult, ExportableEd25519KeygenResult, BIP340KeygenResult, MessageHash, EcdsaInitKeygenResult, ExportableEd25519InitKeygenResult, BIP340InitKeygenResult, EcdsaSignature, };
4
4
  export declare const getMPCSignatureScheme: ({ signingAlgorithm, baseRelayUrl, }: {
5
5
  signingAlgorithm: SigningAlgorithm;
@@ -1,6 +1,6 @@
1
- import { BIP340InitKeygenResult, BIP340KeygenResult, Ed25519InitKeygenResult, EcdsaInitKeygenResult, EcdsaKeygenResult, Ed25519KeygenResult, MessageHash } from '../../../internal/node';
1
+ import { BIP340InitKeygenResult, BIP340KeygenResult, Ed25519InitKeygenResult, EcdsaInitKeygenResult, EcdsaKeygenResult, Ed25519KeygenResult, MessageHash } from '../../internal/node';
2
2
  export type ServerInitKeygenResult = EcdsaInitKeygenResult | Ed25519InitKeygenResult | BIP340InitKeygenResult;
3
3
  export type ServerKeyShare = EcdsaKeygenResult | Ed25519KeygenResult | BIP340KeygenResult;
4
4
  export type SignMessage = MessageHash | Uint8Array;
5
- export type { Ecdsa, Ed25519, BIP340, EcdsaPublicKey, EcdsaKeygenResult, Ed25519KeygenResult, BIP340KeygenResult, MessageHash, EcdsaSignature, } from '../../../internal/node';
5
+ export type { Ecdsa, Ed25519, BIP340, EcdsaPublicKey, EcdsaKeygenResult, Ed25519KeygenResult, BIP340KeygenResult, MessageHash, EcdsaSignature, } from '../../internal/node';
6
6
  //# sourceMappingURL=types.d.ts.map
package/src/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { WaasWalletProperties, KeyShareBackupInfo } from '@dynamic-labs-wallet/core';
2
2
  import { ServerKeyShare } from './mpc/types';
3
- import { MessageHash } from '../../internal/node';
3
+ import { MessageHash } from '../internal/node';
4
4
  export declare const bytesToBase64: (arr: Uint8Array) => string;
5
5
  export declare const stringToBytes: (str: string) => Uint8Array;
6
6
  export declare const base64ToBytes: (base64: string) => Uint8Array;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../packages/src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EACpB,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,eAAO,MAAM,aAAa,QAAS,UAAU,WAE5C,CAAC;AAEF,eAAO,MAAM,aAAa,QAAS,MAAM,eAExC,CAAC;AAEF,eAAO,MAAM,aAAa,WAAY,MAAM,eAE3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,QAAS,MAAM,KAAG,MAEjD,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,MAAM,YAKtC,CAAC;AAEF,eAAO,MAAM,mCAAmC,Y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