@canton-network/core-signing-participant 1.7.0 → 1.9.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,53 +1,87 @@
1
- 'use strict';
2
-
3
- var coreSigningLib = require('@canton-network/core-signing-lib');
4
- var crypto = require('crypto');
5
-
6
- var __defProp = Object.defineProperty;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let _canton_network_core_signing_lib = require("@canton-network/core-signing-lib");
3
+ let node_crypto = require("node:crypto");
4
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
5
+ function _typeof(o) {
6
+ "@babel/helpers - typeof";
7
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
8
+ return typeof o;
9
+ } : function(o) {
10
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
11
+ }, _typeof(o);
12
+ }
13
+ //#endregion
14
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
15
+ function toPrimitive(t, r) {
16
+ if ("object" != _typeof(t) || !t) return t;
17
+ var e = t[Symbol.toPrimitive];
18
+ if (void 0 !== e) {
19
+ var i = e.call(t, r || "default");
20
+ if ("object" != _typeof(i)) return i;
21
+ throw new TypeError("@@toPrimitive must return a primitive value.");
22
+ }
23
+ return ("string" === r ? String : Number)(t);
24
+ }
25
+ //#endregion
26
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
27
+ function toPropertyKey(t) {
28
+ var i = toPrimitive(t, "string");
29
+ return "symbol" == _typeof(i) ? i : i + "";
30
+ }
31
+ //#endregion
32
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
33
+ function _defineProperty(e, r, t) {
34
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
35
+ value: t,
36
+ enumerable: !0,
37
+ configurable: !0,
38
+ writable: !0
39
+ }) : e[r] = t, e;
40
+ }
41
+ //#endregion
42
+ //#region src/controller.ts
9
43
  var ParticipantSigningDriver = class {
10
- constructor() {
11
- __publicField(this, "partyMode", coreSigningLib.PartyMode.INTERNAL);
12
- __publicField(this, "signingProvider", coreSigningLib.SigningProvider.PARTICIPANT);
13
- __publicField(this, "controller", (_userId) => coreSigningLib.buildController({
14
- signTransaction: async (params) => {
15
- return Promise.resolve({
16
- txId: params.internalTxId || crypto.randomUUID(),
17
- status: "signed"
18
- });
19
- },
20
- signMessage: async () => {
21
- return Promise.resolve({
22
- error: "not_allowed",
23
- error_description: "Signing messages is not supported with Participant."
24
- });
25
- },
26
- getTransaction: function() {
27
- throw new Error("Function not implemented.");
28
- },
29
- getTransactions: function() {
30
- throw new Error("Function not implemented.");
31
- },
32
- getKeys: function() {
33
- throw new Error("Function not implemented.");
34
- },
35
- createKey: function() {
36
- throw new Error("Function not implemented.");
37
- },
38
- getConfiguration: function() {
39
- throw new Error("Function not implemented.");
40
- },
41
- setConfiguration: function() {
42
- throw new Error("Function not implemented.");
43
- },
44
- subscribeTransactions: function() {
45
- throw new Error("Function not implemented.");
46
- }
47
- }));
48
- }
44
+ constructor() {
45
+ _defineProperty(this, "partyMode", _canton_network_core_signing_lib.PartyMode.INTERNAL);
46
+ _defineProperty(this, "signingProvider", _canton_network_core_signing_lib.SigningProvider.PARTICIPANT);
47
+ _defineProperty(this, "controller", (_userId) => (0, _canton_network_core_signing_lib.buildController)({
48
+ signTransaction: async (params) => {
49
+ return Promise.resolve({
50
+ txId: params.internalTxId || (0, node_crypto.randomUUID)(),
51
+ status: "signed"
52
+ });
53
+ },
54
+ signMessage: async () => {
55
+ return Promise.resolve({
56
+ error: "not_allowed",
57
+ error_description: "Signing messages is not supported with Participant."
58
+ });
59
+ },
60
+ getTransaction: function() {
61
+ throw new Error("Function not implemented.");
62
+ },
63
+ getTransactions: function() {
64
+ throw new Error("Function not implemented.");
65
+ },
66
+ getKeys: function() {
67
+ throw new Error("Function not implemented.");
68
+ },
69
+ createKey: function() {
70
+ throw new Error("Function not implemented.");
71
+ },
72
+ getConfiguration: function() {
73
+ throw new Error("Function not implemented.");
74
+ },
75
+ setConfiguration: function() {
76
+ throw new Error("Function not implemented.");
77
+ },
78
+ subscribeTransactions: function() {
79
+ throw new Error("Function not implemented.");
80
+ }
81
+ }));
82
+ }
49
83
  };
50
-
84
+ //#endregion
51
85
  exports.ParticipantSigningDriver = ParticipantSigningDriver;
52
- //# sourceMappingURL=index.cjs.map
86
+
53
87
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/controller.ts"],"names":["PartyMode","SigningProvider","buildController","randomUUID"],"mappings":";;;;;;;;AAsBO,IAAM,2BAAN,MAAiE;AAAA,EAAjE,WAAA,GAAA;AACH,IAAA,aAAA,CAAA,IAAA,EAAO,aAAYA,wBAAA,CAAU,QAAA,CAAA;AAC7B,IAAA,aAAA,CAAA,IAAA,EAAO,mBAAkBC,8BAAA,CAAgB,WAAA,CAAA;AAEzC,IAAA,aAAA,CAAA,IAAA,EAAO,YAAA,EAAa,CAChB,OAAA,KAEAC,8BAAA,CAAgB;AAAA,MACZ,eAAA,EAAiB,OACb,MAAA,KACiC;AACjC,QAAA,OAAO,QAAQ,OAAA,CAAQ;AAAA,UACnB,IAAA,EAAM,MAAA,CAAO,YAAA,IAAgBC,iBAAA,EAAW;AAAA,UACxC,MAAA,EAAQ;AAAA,SACX,CAAA;AAAA,MACL,CAAA;AAAA,MACA,aAAa,YAAwC;AACjD,QAAA,OAAO,QAAQ,OAAA,CAAQ;AAAA,UACnB,KAAA,EAAO,aAAA;AAAA,UACP,iBAAA,EACI;AAAA,SACP,CAAA;AAAA,MACL,CAAA;AAAA,MACA,gBAAgB,WAA2C;AACvD,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,iBAAiB,WAA4C;AACzD,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,SAAS,WAAoC;AACzC,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,WAAW,WAAsC;AAC7C,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,kBAAkB,WAA6C;AAC3D,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,kBAAkB,WAA6C;AAC3D,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,uBACI,WAAkD;AAC9C,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C;AAAA,KACP,CAAA,CAAA;AAAA,EAAA;AACT","file":"index.cjs","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 CreateKeyResult,\n GetConfigurationResult,\n GetKeysResult,\n GetTransactionResult,\n GetTransactionsResult,\n PartyMode,\n SetConfigurationResult,\n SigningDriverInterface,\n SigningProvider,\n SignMessageResult,\n SignTransactionParams,\n SignTransactionResult,\n SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport { AuthContext } from '@canton-network/core-wallet-auth'\nimport { randomUUID } from 'node:crypto'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (\n _userId: AuthContext['userId'] | undefined // eslint-disable-line @typescript-eslint/no-unused-vars\n ) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || randomUUID(),\n status: 'signed',\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"]}
1
+ {"version":3,"file":"index.cjs","names":["PartyMode","SigningProvider","buildController","randomUUID"],"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 CreateKeyResult,\n GetConfigurationResult,\n GetKeysResult,\n GetTransactionResult,\n GetTransactionsResult,\n PartyMode,\n SetConfigurationResult,\n SigningDriverInterface,\n SigningProvider,\n SignMessageResult,\n SignTransactionParams,\n SignTransactionResult,\n SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport { AuthContext } from '@canton-network/core-wallet-auth'\nimport { randomUUID } from 'node:crypto'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (\n _userId: AuthContext['userId'] | undefined // eslint-disable-line @typescript-eslint/no-unused-vars\n ) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || randomUUID(),\n status: 'signed',\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAa,2BAAb,MAAwE;;EAC7D,gBAAA,MAAA,aAAYA,iCAAAA,UAAU,QAAA;EACtB,gBAAA,MAAA,mBAAkBC,iCAAAA,gBAAgB,WAAA;EAElC,gBAAA,MAAA,eACH,aAAA,GAEAC,iCAAAA,gBAAAA,CAAgB;GACZ,iBAAiB,OACb,WACiC;IACjC,OAAO,QAAQ,QAAQ;KACnB,MAAM,OAAO,iBAAA,GAAgBC,YAAAA,WAAAA,CAAW;KACxC,QAAQ;IACZ,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,51 +1,86 @@
1
- import { PartyMode, SigningProvider, buildController } from '@canton-network/core-signing-lib';
2
- import { randomUUID } from 'crypto';
3
-
4
- var __defProp = Object.defineProperty;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
1
+ import { PartyMode, SigningProvider, buildController } from "@canton-network/core-signing-lib";
2
+ import { randomUUID } from "node:crypto";
3
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
4
+ function _typeof(o) {
5
+ "@babel/helpers - typeof";
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
7
+ return typeof o;
8
+ } : function(o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+ //#endregion
13
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
14
+ function toPrimitive(t, r) {
15
+ if ("object" != _typeof(t) || !t) return t;
16
+ var e = t[Symbol.toPrimitive];
17
+ if (void 0 !== e) {
18
+ var i = e.call(t, r || "default");
19
+ if ("object" != _typeof(i)) return i;
20
+ throw new TypeError("@@toPrimitive must return a primitive value.");
21
+ }
22
+ return ("string" === r ? String : Number)(t);
23
+ }
24
+ //#endregion
25
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
26
+ function toPropertyKey(t) {
27
+ var i = toPrimitive(t, "string");
28
+ return "symbol" == _typeof(i) ? i : i + "";
29
+ }
30
+ //#endregion
31
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
32
+ function _defineProperty(e, r, t) {
33
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
34
+ value: t,
35
+ enumerable: !0,
36
+ configurable: !0,
37
+ writable: !0
38
+ }) : e[r] = t, e;
39
+ }
40
+ //#endregion
41
+ //#region src/controller.ts
7
42
  var ParticipantSigningDriver = class {
8
- constructor() {
9
- __publicField(this, "partyMode", PartyMode.INTERNAL);
10
- __publicField(this, "signingProvider", SigningProvider.PARTICIPANT);
11
- __publicField(this, "controller", (_userId) => buildController({
12
- signTransaction: async (params) => {
13
- return Promise.resolve({
14
- txId: params.internalTxId || randomUUID(),
15
- status: "signed"
16
- });
17
- },
18
- signMessage: async () => {
19
- return Promise.resolve({
20
- error: "not_allowed",
21
- error_description: "Signing messages is not supported with Participant."
22
- });
23
- },
24
- getTransaction: function() {
25
- throw new Error("Function not implemented.");
26
- },
27
- getTransactions: function() {
28
- throw new Error("Function not implemented.");
29
- },
30
- getKeys: function() {
31
- throw new Error("Function not implemented.");
32
- },
33
- createKey: function() {
34
- throw new Error("Function not implemented.");
35
- },
36
- getConfiguration: function() {
37
- throw new Error("Function not implemented.");
38
- },
39
- setConfiguration: function() {
40
- throw new Error("Function not implemented.");
41
- },
42
- subscribeTransactions: function() {
43
- throw new Error("Function not implemented.");
44
- }
45
- }));
46
- }
43
+ constructor() {
44
+ _defineProperty(this, "partyMode", PartyMode.INTERNAL);
45
+ _defineProperty(this, "signingProvider", SigningProvider.PARTICIPANT);
46
+ _defineProperty(this, "controller", (_userId) => buildController({
47
+ signTransaction: async (params) => {
48
+ return Promise.resolve({
49
+ txId: params.internalTxId || randomUUID(),
50
+ status: "signed"
51
+ });
52
+ },
53
+ signMessage: async () => {
54
+ return Promise.resolve({
55
+ error: "not_allowed",
56
+ error_description: "Signing messages is not supported with Participant."
57
+ });
58
+ },
59
+ getTransaction: function() {
60
+ throw new Error("Function not implemented.");
61
+ },
62
+ getTransactions: function() {
63
+ throw new Error("Function not implemented.");
64
+ },
65
+ getKeys: function() {
66
+ throw new Error("Function not implemented.");
67
+ },
68
+ createKey: function() {
69
+ throw new Error("Function not implemented.");
70
+ },
71
+ getConfiguration: function() {
72
+ throw new Error("Function not implemented.");
73
+ },
74
+ setConfiguration: function() {
75
+ throw new Error("Function not implemented.");
76
+ },
77
+ subscribeTransactions: function() {
78
+ throw new Error("Function not implemented.");
79
+ }
80
+ }));
81
+ }
47
82
  };
48
-
83
+ //#endregion
49
84
  export { ParticipantSigningDriver };
50
- //# sourceMappingURL=index.js.map
85
+
51
86
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/controller.ts"],"names":[],"mappings":";;;;;;AAsBO,IAAM,2BAAN,MAAiE;AAAA,EAAjE,WAAA,GAAA;AACH,IAAA,aAAA,CAAA,IAAA,EAAO,aAAY,SAAA,CAAU,QAAA,CAAA;AAC7B,IAAA,aAAA,CAAA,IAAA,EAAO,mBAAkB,eAAA,CAAgB,WAAA,CAAA;AAEzC,IAAA,aAAA,CAAA,IAAA,EAAO,YAAA,EAAa,CAChB,OAAA,KAEA,eAAA,CAAgB;AAAA,MACZ,eAAA,EAAiB,OACb,MAAA,KACiC;AACjC,QAAA,OAAO,QAAQ,OAAA,CAAQ;AAAA,UACnB,IAAA,EAAM,MAAA,CAAO,YAAA,IAAgB,UAAA,EAAW;AAAA,UACxC,MAAA,EAAQ;AAAA,SACX,CAAA;AAAA,MACL,CAAA;AAAA,MACA,aAAa,YAAwC;AACjD,QAAA,OAAO,QAAQ,OAAA,CAAQ;AAAA,UACnB,KAAA,EAAO,aAAA;AAAA,UACP,iBAAA,EACI;AAAA,SACP,CAAA;AAAA,MACL,CAAA;AAAA,MACA,gBAAgB,WAA2C;AACvD,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,iBAAiB,WAA4C;AACzD,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,SAAS,WAAoC;AACzC,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,WAAW,WAAsC;AAC7C,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,kBAAkB,WAA6C;AAC3D,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,kBAAkB,WAA6C;AAC3D,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C,CAAA;AAAA,MACA,uBACI,WAAkD;AAC9C,QAAA,MAAM,IAAI,MAAM,2BAA2B,CAAA;AAAA,MAC/C;AAAA,KACP,CAAA,CAAA;AAAA,EAAA;AACT","file":"index.js","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 CreateKeyResult,\n GetConfigurationResult,\n GetKeysResult,\n GetTransactionResult,\n GetTransactionsResult,\n PartyMode,\n SetConfigurationResult,\n SigningDriverInterface,\n SigningProvider,\n SignMessageResult,\n SignTransactionParams,\n SignTransactionResult,\n SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport { AuthContext } from '@canton-network/core-wallet-auth'\nimport { randomUUID } from 'node:crypto'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (\n _userId: AuthContext['userId'] | undefined // eslint-disable-line @typescript-eslint/no-unused-vars\n ) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || randomUUID(),\n status: 'signed',\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"]}
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 CreateKeyResult,\n GetConfigurationResult,\n GetKeysResult,\n GetTransactionResult,\n GetTransactionsResult,\n PartyMode,\n SetConfigurationResult,\n SigningDriverInterface,\n SigningProvider,\n SignMessageResult,\n SignTransactionParams,\n SignTransactionResult,\n SubscribeTransactionsResult,\n} from '@canton-network/core-signing-lib'\nimport { AuthContext } from '@canton-network/core-wallet-auth'\nimport { randomUUID } from 'node:crypto'\n\nexport class ParticipantSigningDriver implements SigningDriverInterface {\n public partyMode = PartyMode.INTERNAL\n public signingProvider = SigningProvider.PARTICIPANT\n\n public controller = (\n _userId: AuthContext['userId'] | undefined // eslint-disable-line @typescript-eslint/no-unused-vars\n ) =>\n buildController({\n signTransaction: async (\n params: SignTransactionParams\n ): Promise<SignTransactionResult> => {\n return Promise.resolve({\n txId: params.internalTxId || randomUUID(),\n status: 'signed',\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAa,2BAAb,MAAwE;;EAC7D,gBAAA,MAAA,aAAY,UAAU,QAAA;EACtB,gBAAA,MAAA,mBAAkB,gBAAgB,WAAA;EAElC,gBAAA,MAAA,eACH,YAEA,gBAAgB;GACZ,iBAAiB,OACb,WACiC;IACjC,OAAO,QAAQ,QAAQ;KACnB,MAAM,OAAO,gBAAgB,WAAW;KACxC,QAAQ;IACZ,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@canton-network/core-signing-participant",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "description": "Wallet Gateway driver for Canton participant internal parties",
6
6
  "license": "Apache-2.0",
@@ -16,26 +16,26 @@
16
16
  }
17
17
  },
18
18
  "scripts": {
19
- "build": "tsup --onSuccess \"tsc\"",
20
- "dev": "tsup --watch --onSuccess \"tsc\"",
19
+ "build": "tsdown --onSuccess \"tsc\"",
20
+ "dev": "tsdown --watch --onSuccess \"tsc\"",
21
21
  "clean": "tsc -b --clean && rm -rf ./dist",
22
22
  "flatpack": "yarn pack --out \"$FLATPACK_OUTDIR\"",
23
23
  "test": "vitest run --project node --project browser",
24
24
  "test:coverage": "vitest run --project node --coverage"
25
25
  },
26
26
  "dependencies": {
27
- "@canton-network/core-ledger-client": "^1.7.0",
28
- "@canton-network/core-signing-lib": "^1.7.0",
29
- "@canton-network/core-wallet-auth": "^1.7.0"
27
+ "@canton-network/core-ledger-client": "^1.9.0",
28
+ "@canton-network/core-signing-lib": "^1.9.0",
29
+ "@canton-network/core-wallet-auth": "^1.9.0"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/fs-extra": "^11.0.4",
33
33
  "@types/lodash": "^4.17.24",
34
- "@types/node": "^25.9.3",
35
- "@vitest/coverage-v8": "^4.1.8",
36
- "tsup": "^8.5.1",
34
+ "@types/node": "^25.9.4",
35
+ "@vitest/coverage-v8": "^4.1.10",
36
+ "tsdown": "^0.22.9",
37
37
  "typescript": "^5.9.3",
38
- "vitest": "^4.1.8"
38
+ "vitest": "^4.1.10"
39
39
  },
40
40
  "files": [
41
41
  "dist/**"