@canton-network/core-signing-participant 1.15.0 → 1.16.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/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _canton_network_core_signing_lib = require("@canton-network/core-signing-lib");
3
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
3
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
4
4
  function _typeof(o) {
5
5
  "@babel/helpers - typeof";
6
6
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -9,8 +9,7 @@ function _typeof(o) {
9
9
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
10
  }, _typeof(o);
11
11
  }
12
- //#endregion
13
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
12
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
14
13
  function toPrimitive(t, r) {
15
14
  if ("object" != _typeof(t) || !t) return t;
16
15
  var e = t[Symbol.toPrimitive];
@@ -21,14 +20,12 @@ function toPrimitive(t, r) {
21
20
  }
22
21
  return ("string" === r ? String : Number)(t);
23
22
  }
24
- //#endregion
25
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
23
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
26
24
  function toPropertyKey(t) {
27
25
  var i = toPrimitive(t, "string");
28
26
  return "symbol" == _typeof(i) ? i : i + "";
29
27
  }
30
- //#endregion
31
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
28
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
32
29
  function _defineProperty(e, r, t) {
33
30
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
34
31
  value: t,
@@ -37,8 +34,7 @@ function _defineProperty(e, r, t) {
37
34
  writable: !0
38
35
  }) : e[r] = t, e;
39
36
  }
40
- //#endregion
41
- //#region src/controller.ts
37
+ // src/controller.ts
42
38
  var ParticipantSigningDriver = class {
43
39
  constructor() {
44
40
  _defineProperty(this, "partyMode", _canton_network_core_signing_lib.PartyMode.INTERNAL);
@@ -81,7 +77,6 @@ var ParticipantSigningDriver = class {
81
77
  }));
82
78
  }
83
79
  };
84
- //#endregion
85
80
  exports.ParticipantSigningDriver = ParticipantSigningDriver;
86
81
 
87
82
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["PartyMode","SigningProvider","buildController"],"sources":["../src/controller.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n buildController,\n type CreateKeyResult,\n type GetConfigurationResult,\n type GetKeysResult,\n type GetTransactionResult,\n type GetTransactionsResult,\n PartyMode,\n type SetConfigurationResult,\n type SigningDriverInterface,\n SigningProvider,\n type SignMessageResult,\n type SignTransactionParams,\n type SignTransactionResult,\n type SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport type { AuthContext } from '@canton-network/core-wallet-auth'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (_userId: AuthContext['userId'] | undefined) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || crypto.randomUUID(),\n status: 'signed',\n signature: 'none',\n })\n },\n signMessage: async (): Promise<SignMessageResult> => {\n return Promise.resolve({\n error: 'not_allowed',\n error_description:\n 'Signing messages is not supported with Participant.',\n })\n },\n getTransaction: function (): Promise<GetTransactionResult> {\n throw new Error('Function not implemented.')\n },\n getTransactions: function (): Promise<GetTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n getKeys: function (): Promise<GetKeysResult> {\n throw new Error('Function not implemented.')\n },\n createKey: function (): Promise<CreateKeyResult> {\n throw new Error('Function not implemented.')\n },\n getConfiguration: function (): Promise<GetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n setConfiguration: function (): Promise<SetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n subscribeTransactions:\n function (): Promise<SubscribeTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAa,2BAAb,MAAwE;;EAC7D,gBAAA,MAAA,aAAYA,iCAAAA,UAAU,QAAA;EACtB,gBAAA,MAAA,mBAAkBC,iCAAAA,gBAAgB,WAAA;EAElC,gBAAA,MAAA,eAAc,aAAA,GACjBC,iCAAAA,gBAAAA,CAAgB;GACZ,iBAAiB,OACb,WACiC;IACjC,OAAO,QAAQ,QAAQ;KACnB,MAAM,OAAO,gBAAgB,OAAO,WAAW;KAC/C,QAAQ;KACR,WAAW;IACf,CAAC;GACL;GACA,aAAa,YAAwC;IACjD,OAAO,QAAQ,QAAQ;KACnB,OAAO;KACP,mBACI;IACR,CAAC;GACL;GACA,gBAAgB,WAA2C;IACvD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,iBAAiB,WAA4C;IACzD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,SAAS,WAAoC;IACzC,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,WAAW,WAAsC;IAC7C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,uBACI,WAAkD;IAC9C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;EACR,CAAC,CAAA;;AACT"}
1
+ {"version":3,"file":"index.cjs","names":["PartyMode","SigningProvider","buildController"],"sources":["../src/controller.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n buildController,\n type CreateKeyResult,\n type GetConfigurationResult,\n type GetKeysResult,\n type GetTransactionResult,\n type GetTransactionsResult,\n PartyMode,\n type SetConfigurationResult,\n type SigningDriverInterface,\n SigningProvider,\n type SignMessageResult,\n type SignTransactionParams,\n type SignTransactionResult,\n type SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport type { AuthContext } from '@canton-network/core-wallet-auth'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (_userId: AuthContext['userId'] | undefined) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || crypto.randomUUID(),\n status: 'signed',\n signature: 'none',\n })\n },\n signMessage: async (): Promise<SignMessageResult> => {\n return Promise.resolve({\n error: 'not_allowed',\n error_description:\n 'Signing messages is not supported with Participant.',\n })\n },\n getTransaction: function (): Promise<GetTransactionResult> {\n throw new Error('Function not implemented.')\n },\n getTransactions: function (): Promise<GetTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n getKeys: function (): Promise<GetKeysResult> {\n throw new Error('Function not implemented.')\n },\n createKey: function (): Promise<CreateKeyResult> {\n throw new Error('Function not implemented.')\n },\n getConfiguration: function (): Promise<GetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n setConfiguration: function (): Promise<SetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n subscribeTransactions:\n function (): Promise<SubscribeTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAa,2BAAb,MAAwE;;EAC7D,gBAAA,MAAA,aAAYA,iCAAAA,UAAU,QAAA;EACtB,gBAAA,MAAA,mBAAkBC,iCAAAA,gBAAgB,WAAA;EAElC,gBAAA,MAAA,eAAc,aAAA,GACjBC,iCAAAA,gBAAAA,CAAgB;GACZ,iBAAiB,OACb,WACiC;IACjC,OAAO,QAAQ,QAAQ;KACnB,MAAM,OAAO,gBAAgB,OAAO,WAAW;KAC/C,QAAQ;KACR,WAAW;IACf,CAAC;GACL;GACA,aAAa,YAAwC;IACjD,OAAO,QAAQ,QAAQ;KACnB,OAAO;KACP,mBACI;IACR,CAAC;GACL;GACA,gBAAgB,WAA2C;IACvD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,iBAAiB,WAA4C;IACzD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,SAAS,WAAoC;IACzC,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,WAAW,WAAsC;IAC7C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,uBACI,WAAkD;IAC9C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;EACR,CAAC,CAAA;;AACT"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PartyMode, SigningProvider, buildController } from "@canton-network/core-signing-lib";
2
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
2
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
3
3
  function _typeof(o) {
4
4
  "@babel/helpers - typeof";
5
5
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -8,8 +8,7 @@ function _typeof(o) {
8
8
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
9
9
  }, _typeof(o);
10
10
  }
11
- //#endregion
12
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
11
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
13
12
  function toPrimitive(t, r) {
14
13
  if ("object" != _typeof(t) || !t) return t;
15
14
  var e = t[Symbol.toPrimitive];
@@ -20,14 +19,12 @@ function toPrimitive(t, r) {
20
19
  }
21
20
  return ("string" === r ? String : Number)(t);
22
21
  }
23
- //#endregion
24
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
22
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
25
23
  function toPropertyKey(t) {
26
24
  var i = toPrimitive(t, "string");
27
25
  return "symbol" == _typeof(i) ? i : i + "";
28
26
  }
29
- //#endregion
30
- //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
27
+ // \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
31
28
  function _defineProperty(e, r, t) {
32
29
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
33
30
  value: t,
@@ -36,8 +33,7 @@ function _defineProperty(e, r, t) {
36
33
  writable: !0
37
34
  }) : e[r] = t, e;
38
35
  }
39
- //#endregion
40
- //#region src/controller.ts
36
+ // src/controller.ts
41
37
  var ParticipantSigningDriver = class {
42
38
  constructor() {
43
39
  _defineProperty(this, "partyMode", PartyMode.INTERNAL);
@@ -80,7 +76,6 @@ var ParticipantSigningDriver = class {
80
76
  }));
81
77
  }
82
78
  };
83
- //#endregion
84
79
  export { ParticipantSigningDriver };
85
80
 
86
81
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/controller.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n buildController,\n type CreateKeyResult,\n type GetConfigurationResult,\n type GetKeysResult,\n type GetTransactionResult,\n type GetTransactionsResult,\n PartyMode,\n type SetConfigurationResult,\n type SigningDriverInterface,\n SigningProvider,\n type SignMessageResult,\n type SignTransactionParams,\n type SignTransactionResult,\n type SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport type { AuthContext } from '@canton-network/core-wallet-auth'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (_userId: AuthContext['userId'] | undefined) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || crypto.randomUUID(),\n status: 'signed',\n signature: 'none',\n })\n },\n signMessage: async (): Promise<SignMessageResult> => {\n return Promise.resolve({\n error: 'not_allowed',\n error_description:\n 'Signing messages is not supported with Participant.',\n })\n },\n getTransaction: function (): Promise<GetTransactionResult> {\n throw new Error('Function not implemented.')\n },\n getTransactions: function (): Promise<GetTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n getKeys: function (): Promise<GetKeysResult> {\n throw new Error('Function not implemented.')\n },\n createKey: function (): Promise<CreateKeyResult> {\n throw new Error('Function not implemented.')\n },\n getConfiguration: function (): Promise<GetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n setConfiguration: function (): Promise<SetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n subscribeTransactions:\n function (): Promise<SubscribeTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAa,2BAAb,MAAwE;;EAC7D,gBAAA,MAAA,aAAY,UAAU,QAAA;EACtB,gBAAA,MAAA,mBAAkB,gBAAgB,WAAA;EAElC,gBAAA,MAAA,eAAc,YACjB,gBAAgB;GACZ,iBAAiB,OACb,WACiC;IACjC,OAAO,QAAQ,QAAQ;KACnB,MAAM,OAAO,gBAAgB,OAAO,WAAW;KAC/C,QAAQ;KACR,WAAW;IACf,CAAC;GACL;GACA,aAAa,YAAwC;IACjD,OAAO,QAAQ,QAAQ;KACnB,OAAO;KACP,mBACI;IACR,CAAC;GACL;GACA,gBAAgB,WAA2C;IACvD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,iBAAiB,WAA4C;IACzD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,SAAS,WAAoC;IACzC,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,WAAW,WAAsC;IAC7C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,uBACI,WAAkD;IAC9C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;EACR,CAAC,CAAA;;AACT"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/controller.ts"],"sourcesContent":["// Copyright (c) 2025-2026 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n buildController,\n type CreateKeyResult,\n type GetConfigurationResult,\n type GetKeysResult,\n type GetTransactionResult,\n type GetTransactionsResult,\n PartyMode,\n type SetConfigurationResult,\n type SigningDriverInterface,\n SigningProvider,\n type SignMessageResult,\n type SignTransactionParams,\n type SignTransactionResult,\n type SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport type { AuthContext } from '@canton-network/core-wallet-auth'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (_userId: AuthContext['userId'] | undefined) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || crypto.randomUUID(),\n status: 'signed',\n signature: 'none',\n })\n },\n signMessage: async (): Promise<SignMessageResult> => {\n return Promise.resolve({\n error: 'not_allowed',\n error_description:\n 'Signing messages is not supported with Participant.',\n })\n },\n getTransaction: function (): Promise<GetTransactionResult> {\n throw new Error('Function not implemented.')\n },\n getTransactions: function (): Promise<GetTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n getKeys: function (): Promise<GetKeysResult> {\n throw new Error('Function not implemented.')\n },\n createKey: function (): Promise<CreateKeyResult> {\n throw new Error('Function not implemented.')\n },\n getConfiguration: function (): Promise<GetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n setConfiguration: function (): Promise<SetConfigurationResult> {\n throw new Error('Function not implemented.')\n },\n subscribeTransactions:\n function (): Promise<SubscribeTransactionsResult> {\n throw new Error('Function not implemented.')\n },\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,IAAa,2BAAb,MAAwE;;EAC7D,gBAAA,MAAA,aAAY,UAAU,QAAA;EACtB,gBAAA,MAAA,mBAAkB,gBAAgB,WAAA;EAElC,gBAAA,MAAA,eAAc,YACjB,gBAAgB;GACZ,iBAAiB,OACb,WACiC;IACjC,OAAO,QAAQ,QAAQ;KACnB,MAAM,OAAO,gBAAgB,OAAO,WAAW;KAC/C,QAAQ;KACR,WAAW;IACf,CAAC;GACL;GACA,aAAa,YAAwC;IACjD,OAAO,QAAQ,QAAQ;KACnB,OAAO;KACP,mBACI;IACR,CAAC;GACL;GACA,gBAAgB,WAA2C;IACvD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,iBAAiB,WAA4C;IACzD,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,SAAS,WAAoC;IACzC,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,WAAW,WAAsC;IAC7C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,kBAAkB,WAA6C;IAC3D,MAAM,IAAI,MAAM,2BAA2B;GAC/C;GACA,uBACI,WAAkD;IAC9C,MAAM,IAAI,MAAM,2BAA2B;GAC/C;EACR,CAAC,CAAA;;AACT"}
package/package.json CHANGED
@@ -1,31 +1,29 @@
1
1
  {
2
2
  "name": "@canton-network/core-signing-participant",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "type": "module",
5
5
  "description": "Wallet Gateway driver for Canton participant internal parties",
6
6
  "license": "Apache-2.0",
7
7
  "sideEffects": false,
8
8
  "main": "dist/index.cjs",
9
9
  "module": "dist/index.js",
10
- "types": "dist/types/index.d.ts",
10
+ "types": "dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/types/index.d.ts",
13
+ "types": "./dist/index.d.ts",
14
14
  "import": "./dist/index.js",
15
15
  "require": "./dist/index.cjs",
16
16
  "default": "./dist/index.js"
17
17
  }
18
18
  },
19
19
  "dependencies": {
20
- "@canton-network/core-ledger-client": "2.1.0",
21
- "@canton-network/core-signing-lib": "1.15.0",
22
- "@canton-network/core-wallet-auth": "2.1.0"
20
+ "@canton-network/core-signing-lib": "1.16.0",
21
+ "@canton-network/core-wallet-auth": "2.2.0"
23
22
  },
24
23
  "devDependencies": {
25
- "@types/lodash": "^4.17.26",
26
24
  "@types/node": "^25.9.9",
27
25
  "@vitest/coverage-v8": "^5.0.5",
28
- "tsdown": "^0.23.1",
26
+ "tsdown": "^0.23.2",
29
27
  "typescript": "npm:@typescript/typescript6@^6.0.2",
30
28
  "vitest": "^5.0.5"
31
29
  },