@canton-network/core-signing-participant 1.12.1 → 1.12.2-backport.3
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 +5 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -10
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let _canton_network_core_signing_lib = require("@canton-network/core-signing-lib");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
|
-
|
|
4
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
|
|
5
5
|
function _typeof(o) {
|
|
6
6
|
"@babel/helpers - typeof";
|
|
7
7
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -10,8 +10,7 @@ function _typeof(o) {
|
|
|
10
10
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
11
11
|
}, _typeof(o);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
|
|
13
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
|
|
15
14
|
function toPrimitive(t, r) {
|
|
16
15
|
if ("object" != _typeof(t) || !t) return t;
|
|
17
16
|
var e = t[Symbol.toPrimitive];
|
|
@@ -22,14 +21,12 @@ function toPrimitive(t, r) {
|
|
|
22
21
|
}
|
|
23
22
|
return ("string" === r ? String : Number)(t);
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
|
|
24
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
|
|
27
25
|
function toPropertyKey(t) {
|
|
28
26
|
var i = toPrimitive(t, "string");
|
|
29
27
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
30
28
|
}
|
|
31
|
-
|
|
32
|
-
//#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
|
|
29
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
|
|
33
30
|
function _defineProperty(e, r, t) {
|
|
34
31
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
35
32
|
value: t,
|
|
@@ -38,8 +35,7 @@ function _defineProperty(e, r, t) {
|
|
|
38
35
|
writable: !0
|
|
39
36
|
}) : e[r] = t, e;
|
|
40
37
|
}
|
|
41
|
-
|
|
42
|
-
//#region src/controller.ts
|
|
38
|
+
// src/controller.ts
|
|
43
39
|
var ParticipantSigningDriver = class {
|
|
44
40
|
constructor() {
|
|
45
41
|
_defineProperty(this, "partyMode", _canton_network_core_signing_lib.PartyMode.INTERNAL);
|
|
@@ -82,7 +78,6 @@ var ParticipantSigningDriver = class {
|
|
|
82
78
|
}));
|
|
83
79
|
}
|
|
84
80
|
};
|
|
85
|
-
//#endregion
|
|
86
81
|
exports.ParticipantSigningDriver = ParticipantSigningDriver;
|
|
87
82
|
|
|
88
83
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 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":"
|
|
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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;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,6 +1,6 @@
|
|
|
1
1
|
import { PartyMode, SigningProvider, buildController } from "@canton-network/core-signing-lib";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
|
-
|
|
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
|
-
|
|
13
|
-
//#region \0@oxc-project+runtime@0.142.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
|
-
|
|
25
|
-
//#region \0@oxc-project+runtime@0.142.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
|
-
|
|
31
|
-
//#region \0@oxc-project+runtime@0.142.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
|
-
|
|
41
|
-
//#region src/controller.ts
|
|
37
|
+
// src/controller.ts
|
|
42
38
|
var ParticipantSigningDriver = class {
|
|
43
39
|
constructor() {
|
|
44
40
|
_defineProperty(this, "partyMode", PartyMode.INTERNAL);
|
|
@@ -81,7 +77,6 @@ var ParticipantSigningDriver = class {
|
|
|
81
77
|
}));
|
|
82
78
|
}
|
|
83
79
|
};
|
|
84
|
-
//#endregion
|
|
85
80
|
export { ParticipantSigningDriver };
|
|
86
81
|
|
|
87
82
|
//# 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 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 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":"
|
|
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 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-signing-participant",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2-backport.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Wallet Gateway driver for Canton participant internal parties",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@canton-network/core-ledger-client": "^1.12.
|
|
20
|
-
"@canton-network/core-signing-lib": "^1.12.
|
|
21
|
-
"@canton-network/core-wallet-auth": "^1.12.
|
|
19
|
+
"@canton-network/core-ledger-client": "^1.12.2-backport.3",
|
|
20
|
+
"@canton-network/core-signing-lib": "^1.12.1-backport.3",
|
|
21
|
+
"@canton-network/core-wallet-auth": "^1.12.1-backport.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/fs-extra": "^11.0.4",
|
|
25
|
-
"@types/lodash": "^4.17.
|
|
25
|
+
"@types/lodash": "^4.17.27",
|
|
26
26
|
"@types/node": "^25.9.4",
|
|
27
|
-
"@vitest/coverage-v8": "^4.1.
|
|
28
|
-
"tsdown": "^0.22.
|
|
27
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
28
|
+
"tsdown": "^0.22.14",
|
|
29
29
|
"typescript": "^5.9.3",
|
|
30
|
-
"vitest": "^4.1.
|
|
30
|
+
"vitest": "^4.1.12"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
"dist/**"
|