@dynamic-labs-wallet/node 0.0.198 → 0.0.199

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
@@ -6,6 +6,7 @@ var node = require('#internal/node');
6
6
  var uuid = require('uuid');
7
7
  var crypto = require('crypto');
8
8
  var logger$1 = require('@dynamic-labs/logger');
9
+ require('node:crypto');
9
10
 
10
11
  // Removed duplicate exports - these are already exported from #internal/core
11
12
  const getMPCSignatureScheme = ({ signingAlgorithm, baseRelayUrl = core.MPC_RELAY_PROD_API_URL })=>{
package/index.esm.js CHANGED
@@ -5,6 +5,7 @@ import { BIP340, ExportableEd25519, Ecdsa, MessageHash, EcdsaSignature, EcdsaKey
5
5
  import { v4 } from 'uuid';
6
6
  import crypto from 'crypto';
7
7
  import { Logger } from '@dynamic-labs/logger';
8
+ import 'node:crypto';
8
9
 
9
10
  // Removed duplicate exports - these are already exported from #internal/core
10
11
  const getMPCSignatureScheme = ({ signingAlgorithm, baseRelayUrl = MPC_RELAY_PROD_API_URL })=>{
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node",
3
- "version": "0.0.198",
3
+ "version": "0.0.199",
4
4
  "license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@dynamic-labs-wallet/core": "0.0.198",
7
+ "@dynamic-labs-wallet/core": "0.0.199",
8
8
  "@dynamic-labs-wallet/forward-mpc-client": "0.1.2",
9
9
  "@dynamic-labs/logger": "^4.25.3",
10
10
  "@dynamic-labs/sdk-api-core": "^0.0.801",
@@ -2,4 +2,6 @@ export { createDelegatedWalletClient } from './createDelegatedClient.js';
2
2
  export type { DelegatedWalletClient, DelegatedClientConfig, } from './createDelegatedClient.js';
3
3
  export { delegatedSignMessage } from './modules/sign.js';
4
4
  export { revokeDelegation } from './modules/revokeDelegation.js';
5
+ export { decryptDelegatedWebhookData } from './modules/decryptWebhookData.js';
6
+ export type { EncryptedDelegatedPayload } from './modules/decryptWebhookData.js';
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/delegatedClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,YAAY,EACV,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/delegatedClient/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,YAAY,EACV,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,YAAY,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { ServerKeyShare } from '../../mpc/types.js';
2
+ export type EncryptedDelegatedPayload = {
3
+ alg: string;
4
+ iv: string;
5
+ ct: string;
6
+ tag: string;
7
+ ek: string;
8
+ kid?: string;
9
+ };
10
+ export declare function decryptDelegatedWebhookData({ privateKeyPem, encryptedDelegatedKeyShare, encryptedWalletApiKey, }: {
11
+ privateKeyPem: string;
12
+ encryptedDelegatedKeyShare: EncryptedDelegatedPayload;
13
+ encryptedWalletApiKey: EncryptedDelegatedPayload;
14
+ }): {
15
+ decryptedDelegatedShare: ServerKeyShare;
16
+ decryptedWalletApiKey: string;
17
+ };
18
+ //# sourceMappingURL=decryptWebhookData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decryptWebhookData.d.ts","sourceRoot":"","sources":["../../../src/delegatedClient/modules/decryptWebhookData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,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;AAqCF,wBAAgB,2BAA2B,CAAC,EAC1C,aAAa,EACb,0BAA0B,EAC1B,qBAAqB,GACtB,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,0BAA0B,EAAE,yBAAyB,CAAC;IACtD,qBAAqB,EAAE,yBAAyB,CAAC;CAClD,GAAG;IACF,uBAAuB,EAAE,cAAc,CAAC;IACxC,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CA2CA"}