@canton-network/wallet-gateway-remote 1.7.0 → 1.8.1
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/LICENSE +202 -0
- package/README.md +19 -1
- package/dist/env.d.ts +8 -0
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +8 -0
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +29 -0
- package/dist/ledger/transaction-service.d.ts +1 -0
- package/dist/ledger/transaction-service.d.ts.map +1 -1
- package/dist/ledger/transaction-service.js +90 -1
- package/dist/ledger/transaction-service.test.js +35 -0
- package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.d.ts +18 -0
- package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.d.ts.map +1 -0
- package/dist/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.js +130 -0
- package/dist/ledger/wallet-allocation/wallet-allocation-service.d.ts +1 -0
- package/dist/ledger/wallet-allocation/wallet-allocation-service.d.ts.map +1 -1
- package/dist/ledger/wallet-allocation/wallet-allocation-service.js +15 -0
- package/dist/ledger/wallet-allocation/wallet-allocation-service.test.js +88 -0
- package/dist/user-api/controller.d.ts.map +1 -1
- package/dist/user-api/controller.js +27 -9
- package/dist/user-api/controller.test.js +82 -7
- package/dist/user-api/rpc-gen/typings.d.ts +1 -1
- package/dist/user-api/token-network-matching.d.ts.map +1 -1
- package/dist/user-api/token-network-matching.js +4 -3
- package/dist/web/frontend/404/index.html +2 -2
- package/dist/web/frontend/activities/index.html +2 -2
- package/dist/web/frontend/approve/index.html +2 -2
- package/dist/web/frontend/assets/{404-C0zn3s5P.js → 404-eHe1UlAO.js} +1 -1
- package/dist/web/frontend/assets/{activities-BuOktGvz.js → activities-BNiyUauf.js} +1 -1
- package/dist/web/frontend/assets/{addIdentityProvider-D91uvfNz.js → addIdentityProvider-gTMI7Z0x.js} +1 -1
- package/dist/web/frontend/assets/{addNetwork-DP0iR59C.js → addNetwork-B82E7ioc.js} +3 -3
- package/dist/web/frontend/assets/{addParty-DUoPRmUF.js → addParty-CZcERPC7.js} +3 -3
- package/dist/web/frontend/assets/{approve-BSMrd3FM.js → approve-msSywhWK.js} +1 -1
- package/dist/web/frontend/assets/{callback-oLJBpxTj.js → callback-DfNP22-V.js} +1 -1
- package/dist/web/frontend/assets/{identityProviders-DQlERLUf.js → identityProviders-BDguIzmc.js} +1 -1
- package/dist/web/frontend/assets/{index-BoxNLwXf.js → index-BT9e9Q96.js} +113 -113
- package/dist/web/frontend/assets/{index-D5Xh-WxM.js → index-ohjr2alM.js} +3 -3
- package/dist/web/frontend/assets/{login-GZTP8nvF.js → login-B9l6Znpd.js} +1 -1
- package/dist/web/frontend/assets/{networks-DHe8V-HP.js → networks-BdDz41wp.js} +2 -2
- package/dist/web/frontend/assets/{reviewIdentityProvider-tg2atORE.js → reviewIdentityProvider-C2mAfah_.js} +1 -1
- package/dist/web/frontend/assets/{reviewNetwork-ZZv-rrzm.js → reviewNetwork-DcGIAg6z.js} +1 -1
- package/dist/web/frontend/assets/{settings-BC6X9ar3.js → settings-DCnHy29n.js} +1 -1
- package/dist/web/frontend/callback/index.html +2 -2
- package/dist/web/frontend/identity-providers/add/index.html +2 -2
- package/dist/web/frontend/identity-providers/index.html +2 -2
- package/dist/web/frontend/identity-providers/review/index.html +2 -2
- package/dist/web/frontend/index.html +1 -1
- package/dist/web/frontend/login/index.html +2 -2
- package/dist/web/frontend/networks/add/index.html +2 -2
- package/dist/web/frontend/networks/index.html +2 -2
- package/dist/web/frontend/networks/review/index.html +2 -2
- package/dist/web/frontend/parties/add/index.html +3 -3
- package/dist/web/frontend/parties/index.html +2 -2
- package/dist/web/frontend/settings/index.html +2 -2
- package/package.json +43 -42
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ wallet-gateway --config-schema
|
|
|
42
42
|
|
|
43
43
|
## Codegen
|
|
44
44
|
|
|
45
|
-
The JSON-RPC API specs from `api-specs/` are generated into strongly-typed method builders for the remote RPC server. To update the codegen, run `
|
|
45
|
+
The JSON-RPC API specs from `api-specs/` are generated into strongly-typed method builders for the remote RPC server. To update the codegen, run `pnpm generate:dapp`.
|
|
46
46
|
|
|
47
47
|
## Dfns
|
|
48
48
|
|
|
@@ -70,6 +70,24 @@ The JSON-RPC API specs from `api-specs/` are generated into strongly-typed metho
|
|
|
70
70
|
- `BLOCKDAEMON_API_URL` - The base URL for the Blockdaemon API
|
|
71
71
|
- `BLOCKDAEMON_API_KEY` - Your Blockdaemon API key
|
|
72
72
|
|
|
73
|
+
## Securosys
|
|
74
|
+
|
|
75
|
+
The Securosys TSB signing driver is registered at startup as `securosys` when
|
|
76
|
+
`SECUROSYS_TSB_BASE_URL` is set. Set these environment variables before starting
|
|
77
|
+
the Gateway:
|
|
78
|
+
|
|
79
|
+
- `SECUROSYS_TSB_BASE_URL` — TSB base URL
|
|
80
|
+
- `SECUROSYS_TSB_KEY_MANAGEMENT_API_KEY` — `X-API-KEY` optional for key-management endpoints
|
|
81
|
+
- `SECUROSYS_TSB_KEY_OPERATION_API_KEY` — `X-API-KEY` optional for signing/request endpoints
|
|
82
|
+
- `SECUROSYS_TSB_BEARER_TOKEN` — optional bearer token for access-token mode
|
|
83
|
+
- `SECUROSYS_TSB_MTLS_P12_PATH` — optional client PKCS#12/P12 file for mTLS
|
|
84
|
+
- `SECUROSYS_TSB_MTLS_P12_PASSWORD` — optional PKCS#12/P12 password
|
|
85
|
+
- `SECUROSYS_TSB_KEY_PASSWORD` — optional TSB key password
|
|
86
|
+
- `SECUROSYS_TSB_SIGNATURE_ALGORITHM` — TSB signature algorithm, defaults to `EDDSA`
|
|
87
|
+
|
|
88
|
+
See [`@canton-network/core-signing-securosys`](../../core/signing-securosys/README.md)
|
|
89
|
+
for key creation, public-key, and signature format details.
|
|
90
|
+
|
|
73
91
|
## Postgres connection
|
|
74
92
|
|
|
75
93
|
To create a Postgres database you need to:
|
package/dist/env.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ export declare class Env {
|
|
|
5
5
|
static BLOCKDAEMON_API_URL: (fallback: string) => string;
|
|
6
6
|
static BLOCKDAEMON_API_KEY: (fallback: string) => string;
|
|
7
7
|
static BLOCKDAEMON_CAIP2: (fallback: string) => string;
|
|
8
|
+
static SECUROSYS_TSB_BASE_URL: () => string | undefined;
|
|
9
|
+
static SECUROSYS_TSB_KEY_MANAGEMENT_API_KEY: () => string | undefined;
|
|
10
|
+
static SECUROSYS_TSB_KEY_OPERATION_API_KEY: () => string | undefined;
|
|
11
|
+
static SECUROSYS_TSB_BEARER_TOKEN: () => string | undefined;
|
|
12
|
+
static SECUROSYS_TSB_MTLS_P12_PATH: () => string | undefined;
|
|
13
|
+
static SECUROSYS_TSB_MTLS_P12_PASSWORD: () => string | undefined;
|
|
14
|
+
static SECUROSYS_TSB_KEY_PASSWORD: () => string | undefined;
|
|
15
|
+
static SECUROSYS_TSB_SIGNATURE_ALGORITHM: (fallback: string) => string;
|
|
8
16
|
static DFNS_ORG_ID: () => string | undefined;
|
|
9
17
|
static DFNS_BASE_URL: (fallback: string) => string;
|
|
10
18
|
static DFNS_CRED_ID: () => string | undefined;
|
package/dist/env.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAGA,qBAAa,GAAG;IACZ,MAAM,CAAC,kBAAkB,2BAAsC;IAC/D,MAAM,CAAC,iBAAiB,2BAAqC;IAC7D,MAAM,CAAC,mBAAmB,GAAI,UAAU,MAAM,YACE;IAChD,MAAM,CAAC,mBAAmB,GAAI,UAAU,MAAM,YACE;IAChD,MAAM,CAAC,mBAAmB,GAAI,UAAU,MAAM,YACE;IAChD,MAAM,CAAC,iBAAiB,GAAI,UAAU,MAAM,YACE;IAC9C,MAAM,CAAC,WAAW,2BAA+B;IACjD,MAAM,CAAC,aAAa,GAAI,UAAU,MAAM,YACE;IAC1C,MAAM,CAAC,YAAY,2BAAgC;IACnD,MAAM,CAAC,gBAAgB,2BAAoC;IAC3D,MAAM,CAAC,eAAe,2BAAmC;IAEzD,MAAM,CAAC,GAAG,CACN,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAClD,MAAM;IACT,MAAM,CAAC,GAAG,CACN,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;QAAE,QAAQ,EAAE,IAAI,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/C,MAAM;IACT,MAAM,CAAC,GAAG,CACN,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,GAChE,MAAM,GAAG,SAAS;CAcxB"}
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAGA,qBAAa,GAAG;IACZ,MAAM,CAAC,kBAAkB,2BAAsC;IAC/D,MAAM,CAAC,iBAAiB,2BAAqC;IAC7D,MAAM,CAAC,mBAAmB,GAAI,UAAU,MAAM,YACE;IAChD,MAAM,CAAC,mBAAmB,GAAI,UAAU,MAAM,YACE;IAChD,MAAM,CAAC,mBAAmB,GAAI,UAAU,MAAM,YACE;IAChD,MAAM,CAAC,iBAAiB,GAAI,UAAU,MAAM,YACE;IAC9C,MAAM,CAAC,sBAAsB,2BAA0C;IACvE,MAAM,CAAC,oCAAoC,2BACQ;IACnD,MAAM,CAAC,mCAAmC,2BACQ;IAClD,MAAM,CAAC,0BAA0B,2BACQ;IACzC,MAAM,CAAC,2BAA2B,2BACQ;IAC1C,MAAM,CAAC,+BAA+B,2BACQ;IAC9C,MAAM,CAAC,0BAA0B,2BACQ;IACzC,MAAM,CAAC,iCAAiC,GAAI,UAAU,MAAM,YACE;IAC9D,MAAM,CAAC,WAAW,2BAA+B;IACjD,MAAM,CAAC,aAAa,GAAI,UAAU,MAAM,YACE;IAC1C,MAAM,CAAC,YAAY,2BAAgC;IACnD,MAAM,CAAC,gBAAgB,2BAAoC;IAC3D,MAAM,CAAC,eAAe,2BAAmC;IAEzD,MAAM,CAAC,GAAG,CACN,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAClD,MAAM;IACT,MAAM,CAAC,GAAG,CACN,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;QAAE,QAAQ,EAAE,IAAI,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/C,MAAM;IACT,MAAM,CAAC,GAAG,CACN,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,GAChE,MAAM,GAAG,SAAS;CAcxB"}
|
package/dist/env.js
CHANGED
|
@@ -7,6 +7,14 @@ export class Env {
|
|
|
7
7
|
static { this.BLOCKDAEMON_API_URL = (fallback) => Env.get('BLOCKDAEMON_API_URL', { fallback }); }
|
|
8
8
|
static { this.BLOCKDAEMON_API_KEY = (fallback) => Env.get('BLOCKDAEMON_API_KEY', { fallback }); }
|
|
9
9
|
static { this.BLOCKDAEMON_CAIP2 = (fallback) => Env.get('BLOCKDAEMON_CAIP2', { fallback }); }
|
|
10
|
+
static { this.SECUROSYS_TSB_BASE_URL = () => Env.get('SECUROSYS_TSB_BASE_URL'); }
|
|
11
|
+
static { this.SECUROSYS_TSB_KEY_MANAGEMENT_API_KEY = () => Env.get('SECUROSYS_TSB_KEY_MANAGEMENT_API_KEY'); }
|
|
12
|
+
static { this.SECUROSYS_TSB_KEY_OPERATION_API_KEY = () => Env.get('SECUROSYS_TSB_KEY_OPERATION_API_KEY'); }
|
|
13
|
+
static { this.SECUROSYS_TSB_BEARER_TOKEN = () => Env.get('SECUROSYS_TSB_BEARER_TOKEN'); }
|
|
14
|
+
static { this.SECUROSYS_TSB_MTLS_P12_PATH = () => Env.get('SECUROSYS_TSB_MTLS_P12_PATH'); }
|
|
15
|
+
static { this.SECUROSYS_TSB_MTLS_P12_PASSWORD = () => Env.get('SECUROSYS_TSB_MTLS_P12_PASSWORD'); }
|
|
16
|
+
static { this.SECUROSYS_TSB_KEY_PASSWORD = () => Env.get('SECUROSYS_TSB_KEY_PASSWORD'); }
|
|
17
|
+
static { this.SECUROSYS_TSB_SIGNATURE_ALGORITHM = (fallback) => Env.get('SECUROSYS_TSB_SIGNATURE_ALGORITHM', { fallback }); }
|
|
10
18
|
static { this.DFNS_ORG_ID = () => Env.get('DFNS_ORG_ID'); }
|
|
11
19
|
static { this.DFNS_BASE_URL = (fallback) => Env.get('DFNS_BASE_URL', { fallback }); }
|
|
12
20
|
static { this.DFNS_CRED_ID = () => Env.get('DFNS_CRED_ID'); }
|
package/dist/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AA4B7B,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AA0MvC,wBAAsB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iBAuNhE"}
|
package/dist/init.js
CHANGED
|
@@ -12,6 +12,7 @@ import { InternalSigningDriver } from '@canton-network/core-signing-internal';
|
|
|
12
12
|
import DfnsSigningProvider from '@canton-network/core-signing-dfns';
|
|
13
13
|
import FireblocksSigningProvider from '@canton-network/core-signing-fireblocks';
|
|
14
14
|
import BlockdaemonSigningProvider from '@canton-network/core-signing-blockdaemon';
|
|
15
|
+
import SecurosysSigningProvider from '@canton-network/core-signing-securosys';
|
|
15
16
|
import { jwtAuthService } from './auth/jwt-auth-service.js';
|
|
16
17
|
import express from 'express';
|
|
17
18
|
import { jwtAuth } from './middleware/jwtAuth.js';
|
|
@@ -192,6 +193,13 @@ export async function initialize(opts, logger) {
|
|
|
192
193
|
}
|
|
193
194
|
const keyInfo = { apiKey, apiSecret };
|
|
194
195
|
const userApiKeys = new Map([['user', keyInfo]]);
|
|
196
|
+
const securosysKeyManagementApiKey = Env.SECUROSYS_TSB_KEY_MANAGEMENT_API_KEY();
|
|
197
|
+
const securosysKeyOperationApiKey = Env.SECUROSYS_TSB_KEY_OPERATION_API_KEY();
|
|
198
|
+
const securosysBearerToken = Env.SECUROSYS_TSB_BEARER_TOKEN();
|
|
199
|
+
const securosysMtlsP12Path = Env.SECUROSYS_TSB_MTLS_P12_PATH();
|
|
200
|
+
const securosysMtlsP12Password = Env.SECUROSYS_TSB_MTLS_P12_PASSWORD();
|
|
201
|
+
const securosysKeyPassword = Env.SECUROSYS_TSB_KEY_PASSWORD();
|
|
202
|
+
const securosysBaseUrl = Env.SECUROSYS_TSB_BASE_URL();
|
|
195
203
|
const drivers = {
|
|
196
204
|
[SigningProvider.PARTICIPANT]: new ParticipantSigningDriver(),
|
|
197
205
|
[SigningProvider.WALLET_KERNEL]: new InternalSigningDriver(signingStore),
|
|
@@ -206,6 +214,27 @@ export async function initialize(opts, logger) {
|
|
|
206
214
|
caip2: Env.BLOCKDAEMON_CAIP2('canton:testnet'),
|
|
207
215
|
}),
|
|
208
216
|
};
|
|
217
|
+
if (securosysBaseUrl) {
|
|
218
|
+
drivers[SigningProvider.SECUROSYS] = new SecurosysSigningProvider({
|
|
219
|
+
baseUrl: securosysBaseUrl,
|
|
220
|
+
...(securosysKeyManagementApiKey && {
|
|
221
|
+
keyManagementApiKey: securosysKeyManagementApiKey,
|
|
222
|
+
}),
|
|
223
|
+
...(securosysKeyOperationApiKey && {
|
|
224
|
+
keyOperationApiKey: securosysKeyOperationApiKey,
|
|
225
|
+
}),
|
|
226
|
+
...(securosysBearerToken && { bearerToken: securosysBearerToken }),
|
|
227
|
+
...(securosysMtlsP12Path && { mtlsP12Path: securosysMtlsP12Path }),
|
|
228
|
+
...(securosysMtlsP12Password && {
|
|
229
|
+
mtlsP12Password: securosysMtlsP12Password,
|
|
230
|
+
}),
|
|
231
|
+
...(securosysKeyPassword && { keyPassword: securosysKeyPassword }),
|
|
232
|
+
signatureAlgorithm: Env.SECUROSYS_TSB_SIGNATURE_ALGORITHM('EDDSA'),
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
logger.warn('Securosys TSB base URL not set — Securosys signing provider will be unavailable');
|
|
237
|
+
}
|
|
209
238
|
if (Env.DFNS_ORG_ID() &&
|
|
210
239
|
Env.DFNS_CRED_ID() &&
|
|
211
240
|
Env.DFNS_PRIVATE_KEY() &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-service.d.ts","sourceRoot":"","sources":["../../src/ledger/transaction-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EACH,KAAK,EACL,WAAW,EACX,MAAM,EACN,OAAO,EACV,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAOhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EACH,aAAa,EACb,aAAa,EACb,UAAU,EAEb,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAA;AAMjE,OAAO,EACH,WAAW,EAEd,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"transaction-service.d.ts","sourceRoot":"","sources":["../../src/ledger/transaction-service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EACH,KAAK,EACL,WAAW,EACX,MAAM,EACN,OAAO,EACV,MAAM,mCAAmC,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAOhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EACH,aAAa,EACb,aAAa,EACb,UAAU,EAEb,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAA;AAMjE,OAAO,EACH,WAAW,EAEd,MAAM,kCAAkC,CAAA;AAGzC,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,aAAa,CAAA;AAW7D,qBAAa,kBAAkB;IAEvB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,QAAQ;gBAHR,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,YAAK,EACnC,QAAQ,EAAE,QAAQ;IAGjB,IAAI,CACb,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,GACvB,OAAO,CAAC,UAAU,CAAC;IAwDf,OAAO,CACV,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,CAAC,EAAE,aAAa,EAC7B,YAAY,CAAC,EAAE,YAAY,EAC3B,OAAO,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,aAAa,CAAC;IAkEZ,cAAc,CACvB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,GACzB,OAAO,CAAC,oBAAoB,CAAC;YAyDlB,iCAAiC;YAsBjC,mBAAmB;YAiCnB,oBAAoB;YAyDpB,mBAAmB;YAiHnB,kBAAkB;YAqHlB,YAAY;YA6GZ,iBAAiB;YA4GjB,sBAAsB;YAoDtB,mBAAmB;CAiEpC"}
|
|
@@ -4,6 +4,7 @@ import { LedgerClient } from '@canton-network/core-ledger-client';
|
|
|
4
4
|
import { SigningProvider, } from '@canton-network/core-signing-lib';
|
|
5
5
|
import { ledgerPrepareParams, logDynamically, } from '../utils.js';
|
|
6
6
|
import { AuthTokenProvider, } from '@canton-network/core-wallet-auth';
|
|
7
|
+
import { keyLabelFromPublicKey } from '@canton-network/core-signing-securosys';
|
|
7
8
|
function handleSigningError(result) {
|
|
8
9
|
if ('error' in result) {
|
|
9
10
|
throw new Error(`Error from signing driver: ${result.error_description}`);
|
|
@@ -42,6 +43,9 @@ export class TransactionService {
|
|
|
42
43
|
case SigningProvider.DFNS: {
|
|
43
44
|
return this.signWithDfns(authContext.userId, wallet, signParams);
|
|
44
45
|
}
|
|
46
|
+
case SigningProvider.SECUROSYS: {
|
|
47
|
+
return this.signWithSecurosys(authContext.userId, wallet, signParams);
|
|
48
|
+
}
|
|
45
49
|
default:
|
|
46
50
|
throw new Error(`Unsupported signing provider: ${wallet.signingProviderId}`);
|
|
47
51
|
}
|
|
@@ -72,7 +76,8 @@ export class TransactionService {
|
|
|
72
76
|
case SigningProvider.WALLET_KERNEL:
|
|
73
77
|
case SigningProvider.BLOCKDAEMON:
|
|
74
78
|
case SigningProvider.FIREBLOCKS:
|
|
75
|
-
case SigningProvider.DFNS:
|
|
79
|
+
case SigningProvider.DFNS:
|
|
80
|
+
case SigningProvider.SECUROSYS: {
|
|
76
81
|
if (!executeParams) {
|
|
77
82
|
throw new Error('Execute params are required for external signing');
|
|
78
83
|
}
|
|
@@ -456,6 +461,90 @@ export class TransactionService {
|
|
|
456
461
|
};
|
|
457
462
|
}
|
|
458
463
|
}
|
|
464
|
+
async signWithSecurosys(userId, wallet, signParams) {
|
|
465
|
+
const signingProvider = this.signingDrivers[SigningProvider.SECUROSYS];
|
|
466
|
+
if (!signingProvider) {
|
|
467
|
+
throw new Error('Securosys signing driver not available');
|
|
468
|
+
}
|
|
469
|
+
const driver = signingProvider.controller(userId);
|
|
470
|
+
const tx = await this.loadPreparedTransactionForSigning(signParams.transactionId);
|
|
471
|
+
let signingResult;
|
|
472
|
+
if (tx.externalTxId) {
|
|
473
|
+
signingResult = await driver
|
|
474
|
+
.getTransaction({
|
|
475
|
+
txId: tx.externalTxId,
|
|
476
|
+
})
|
|
477
|
+
.then(handleSigningError);
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
signingResult = await driver
|
|
481
|
+
.signTransaction({
|
|
482
|
+
tx: tx.preparedTransaction,
|
|
483
|
+
txHash: tx.preparedTransactionHash,
|
|
484
|
+
keyIdentifier: {
|
|
485
|
+
id: keyLabelFromPublicKey(wallet.publicKey),
|
|
486
|
+
publicKey: wallet.publicKey,
|
|
487
|
+
},
|
|
488
|
+
})
|
|
489
|
+
.then(handleSigningError);
|
|
490
|
+
}
|
|
491
|
+
const now = new Date();
|
|
492
|
+
logDynamically(this.logger, 'Securosys signing result', {
|
|
493
|
+
info: { transactionId: tx.id, status: signingResult.status },
|
|
494
|
+
debug: { signingResult, tx },
|
|
495
|
+
});
|
|
496
|
+
if (signingResult.status === 'signed') {
|
|
497
|
+
if (!signingResult.signature) {
|
|
498
|
+
throw new Error('No signature returned from signing driver');
|
|
499
|
+
}
|
|
500
|
+
const signedTx = {
|
|
501
|
+
id: tx.id,
|
|
502
|
+
commandId: tx.commandId,
|
|
503
|
+
status: signingResult.status,
|
|
504
|
+
preparedTransaction: tx.preparedTransaction,
|
|
505
|
+
preparedTransactionHash: tx.preparedTransactionHash,
|
|
506
|
+
origin: tx?.origin ?? null,
|
|
507
|
+
...(tx?.createdAt && {
|
|
508
|
+
createdAt: tx.createdAt,
|
|
509
|
+
}),
|
|
510
|
+
signedAt: now,
|
|
511
|
+
externalTxId: signingResult.txId,
|
|
512
|
+
};
|
|
513
|
+
await this.store.setTransactionSigned(tx.id, now, signingResult.txId);
|
|
514
|
+
this.notifier.emit('txChanged', signedTx);
|
|
515
|
+
return {
|
|
516
|
+
status: signingResult.status,
|
|
517
|
+
signature: signingResult.signature,
|
|
518
|
+
signedBy: wallet.namespace,
|
|
519
|
+
partyId: wallet.partyId,
|
|
520
|
+
externalTxId: signingResult.txId,
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
else {
|
|
524
|
+
const status = signingResult.status === 'pending' ? 'pending' : 'failed';
|
|
525
|
+
const pendingTx = {
|
|
526
|
+
id: tx.id,
|
|
527
|
+
commandId: tx.commandId,
|
|
528
|
+
status,
|
|
529
|
+
preparedTransaction: tx.preparedTransaction,
|
|
530
|
+
preparedTransactionHash: tx.preparedTransactionHash,
|
|
531
|
+
externalTxId: signingResult.txId,
|
|
532
|
+
origin: tx?.origin ?? null,
|
|
533
|
+
...(tx?.createdAt && {
|
|
534
|
+
createdAt: tx.createdAt,
|
|
535
|
+
}),
|
|
536
|
+
};
|
|
537
|
+
await this.store.setTransactionStatus(tx.id, status, {
|
|
538
|
+
externalTxId: signingResult.txId,
|
|
539
|
+
});
|
|
540
|
+
this.notifier.emit('txChanged', pendingTx);
|
|
541
|
+
return {
|
|
542
|
+
status: signingResult.status,
|
|
543
|
+
externalTxId: signingResult.txId,
|
|
544
|
+
partyId: wallet.partyId,
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
}
|
|
459
548
|
async executeWithParticipant(userId, executeParams, transaction, ledgerClient, network) {
|
|
460
549
|
const { partyId } = executeParams;
|
|
461
550
|
const { commandId } = transaction;
|
|
@@ -285,6 +285,35 @@ describe('TransactionService', () => {
|
|
|
285
285
|
});
|
|
286
286
|
});
|
|
287
287
|
});
|
|
288
|
+
describe('securosys', () => {
|
|
289
|
+
it('starts signing and persists the TSB request id when signing is pending', async () => {
|
|
290
|
+
const signTransaction = vi.fn().mockResolvedValue({
|
|
291
|
+
status: 'pending',
|
|
292
|
+
txId: 'tsb-request-1',
|
|
293
|
+
});
|
|
294
|
+
const store = createStore();
|
|
295
|
+
const service = createService(store, {
|
|
296
|
+
[SigningProvider.SECUROSYS]: createDriver({
|
|
297
|
+
signTransaction,
|
|
298
|
+
}),
|
|
299
|
+
}, notifier, logger);
|
|
300
|
+
const result = await service.sign(authContext, walletWithProvider(SigningProvider.SECUROSYS), signParams);
|
|
301
|
+
expect(signTransaction).toHaveBeenCalledWith({
|
|
302
|
+
tx: pendingTransaction.preparedTransaction,
|
|
303
|
+
txHash: pendingTransaction.preparedTransactionHash,
|
|
304
|
+
keyIdentifier: {
|
|
305
|
+
id: wallet.publicKey,
|
|
306
|
+
publicKey: wallet.publicKey,
|
|
307
|
+
},
|
|
308
|
+
});
|
|
309
|
+
expect(store.setTransactionStatus).toHaveBeenCalledWith(pendingTransaction.id, 'pending', { externalTxId: 'tsb-request-1' });
|
|
310
|
+
expect(result).toEqual({
|
|
311
|
+
status: 'pending',
|
|
312
|
+
externalTxId: 'tsb-request-1',
|
|
313
|
+
partyId: wallet.partyId,
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
});
|
|
288
317
|
it.each([
|
|
289
318
|
{
|
|
290
319
|
name: 'participant',
|
|
@@ -311,6 +340,11 @@ describe('TransactionService', () => {
|
|
|
311
340
|
provider: SigningProvider.DFNS,
|
|
312
341
|
auth: authContext,
|
|
313
342
|
},
|
|
343
|
+
{
|
|
344
|
+
name: 'securosys',
|
|
345
|
+
provider: SigningProvider.SECUROSYS,
|
|
346
|
+
auth: authContext,
|
|
347
|
+
},
|
|
314
348
|
])('rejects signing an already executed transaction for $name', async ({ provider, auth }) => {
|
|
315
349
|
const store = createStore(executedTransaction);
|
|
316
350
|
const service = createService(store, {
|
|
@@ -366,6 +400,7 @@ describe('TransactionService', () => {
|
|
|
366
400
|
SigningProvider.BLOCKDAEMON,
|
|
367
401
|
SigningProvider.FIREBLOCKS,
|
|
368
402
|
SigningProvider.DFNS,
|
|
403
|
+
SigningProvider.SECUROSYS,
|
|
369
404
|
])('executes with the provided signature for %s', async (signingProviderId) => {
|
|
370
405
|
const signedTransaction = {
|
|
371
406
|
...pendingTransaction,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UserId } from '@canton-network/core-wallet-auth';
|
|
2
|
+
import { Store, Wallet } from '@canton-network/core-wallet-store';
|
|
3
|
+
import { SigningDriverInterface } from '@canton-network/core-signing-lib';
|
|
4
|
+
import { Logger } from 'pino';
|
|
5
|
+
import { PartyAllocationService } from '../../party-allocation-service.js';
|
|
6
|
+
import { PartyHint, Primary } from '../../../user-api/rpc-gen/typings.js';
|
|
7
|
+
import type { WalletAllocator } from '../wallet-allocation-service.js';
|
|
8
|
+
export declare class SecurosysWalletAllocator implements WalletAllocator {
|
|
9
|
+
private store;
|
|
10
|
+
private logger;
|
|
11
|
+
private partyAllocator;
|
|
12
|
+
private signingDriver;
|
|
13
|
+
constructor(store: Store, logger: Logger, partyAllocator: PartyAllocationService, signingDriver: SigningDriverInterface);
|
|
14
|
+
createWallet(userId: UserId, _email: string | undefined, partyHint: PartyHint, primary?: Primary): Promise<Wallet>;
|
|
15
|
+
allocateParty(userId: UserId, _email: string | undefined, existingWallet: Wallet): Promise<void>;
|
|
16
|
+
private finalizeWallet;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=securosys-wallet-allocator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securosys-wallet-allocator.d.ts","sourceRoot":"","sources":["../../../../src/ledger/wallet-allocation/signing-providers/securosys-wallet-allocator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AACzD,OAAO,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,EAEH,sBAAsB,EAEzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAYtE,qBAAa,wBAAyB,YAAW,eAAe;IAExD,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,aAAa;gBAHb,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,sBAAsB,EACtC,aAAa,EAAE,sBAAsB;IAG3C,YAAY,CACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,SAAS,EAAE,SAAS,EACpB,OAAO,GAAE,OAAe,GACzB,OAAO,CAAC,MAAM,CAAC;IA4DZ,aAAa,CACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,cAAc,EAAE,MAAM,GACvB,OAAO,CAAC,IAAI,CAAC;YA+DF,cAAc;CA+C/B"}
|