@canton-network/core-signing-lib 0.1.0 → 0.3.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.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/rpc-gen/index.d.ts +30 -0
- package/dist/rpc-gen/index.d.ts.map +1 -0
- package/dist/rpc-gen/index.js +14 -0
- package/dist/rpc-gen/typings.d.ts +189 -0
- package/dist/rpc-gen/typings.d.ts.map +1 -0
- package/dist/rpc-gen/typings.js +3 -0
- package/package.json +7 -4
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,6 @@ export interface SigningDriverInterface {
|
|
|
24
24
|
controller: (userId: AuthContext['userId'] | undefined) => Methods;
|
|
25
25
|
}
|
|
26
26
|
export declare const signTransactionHash: (txHash: string, privateKey: string) => string;
|
|
27
|
-
export declare const getPublicKeyFromPrivate: (
|
|
27
|
+
export declare const getPublicKeyFromPrivate: (privateKeyBase64: string) => string;
|
|
28
28
|
export declare const createKeyPair: () => KeyPair;
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAIxD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACxE,cAAc,sBAAsB,CAAA;AAEpC,eAAO,MAAM,YAAY,OAAO,CAAA;AAEhC,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,QAAQ,GAAG,KAAK,IAAI,QAAQ,CAEpE;AAED,oBAAY,SAAS;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACxB;AAED,MAAM,WAAW,OAAO;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;CACrB;AAED,oBAAY,eAAe;IACvB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,UAAU,eAAe;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,SAAS,CAAA;IACpB,eAAe,EAAE,eAAe,CAAA;IAChC,UAAU,EAAE,CAAC,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,SAAS,KAAK,OAAO,CAAA;CACrE;AAED,eAAO,MAAM,mBAAmB,GAC5B,QAAQ,MAAM,EACd,YAAY,MAAM,KACnB,MAMF,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,kBAAkB,MAAM,KAAG,MAIlE,CAAA;AAED,eAAO,MAAM,aAAa,QAAO,OAMhC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
import nacl from 'tweetnacl';
|
|
2
4
|
import naclUtil from 'tweetnacl-util';
|
|
3
5
|
export { default as buildController } from './rpc-gen/index.js';
|
|
@@ -21,11 +23,10 @@ export const signTransactionHash = (txHash, privateKey) => {
|
|
|
21
23
|
const decodedKey = naclUtil.decodeBase64(privateKey);
|
|
22
24
|
return naclUtil.encodeBase64(nacl.sign.detached(naclUtil.decodeBase64(txHash), decodedKey));
|
|
23
25
|
};
|
|
24
|
-
export const getPublicKeyFromPrivate = (
|
|
25
|
-
const secretKey = naclUtil.decodeBase64(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return naclUtil.encodeBase64(publicKey);
|
|
26
|
+
export const getPublicKeyFromPrivate = (privateKeyBase64) => {
|
|
27
|
+
const secretKey = naclUtil.decodeBase64(privateKeyBase64);
|
|
28
|
+
const keyPair = nacl.sign.keyPair.fromSecretKey(secretKey);
|
|
29
|
+
return naclUtil.encodeBase64(keyPair.publicKey);
|
|
29
30
|
};
|
|
30
31
|
export const createKeyPair = () => {
|
|
31
32
|
const key = nacl.sign.keyPair();
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { SignTransaction } from './typings.js';
|
|
2
|
+
import { GetTransaction } from './typings.js';
|
|
3
|
+
import { GetTransactions } from './typings.js';
|
|
4
|
+
import { GetKeys } from './typings.js';
|
|
5
|
+
import { CreateKey } from './typings.js';
|
|
6
|
+
import { GetConfiguration } from './typings.js';
|
|
7
|
+
import { SetConfiguration } from './typings.js';
|
|
8
|
+
import { SubscribeTransactions } from './typings.js';
|
|
9
|
+
export type Methods = {
|
|
10
|
+
signTransaction: SignTransaction;
|
|
11
|
+
getTransaction: GetTransaction;
|
|
12
|
+
getTransactions: GetTransactions;
|
|
13
|
+
getKeys: GetKeys;
|
|
14
|
+
createKey: CreateKey;
|
|
15
|
+
getConfiguration: GetConfiguration;
|
|
16
|
+
setConfiguration: SetConfiguration;
|
|
17
|
+
subscribeTransactions: SubscribeTransactions;
|
|
18
|
+
};
|
|
19
|
+
declare function buildController(methods: Methods): {
|
|
20
|
+
signTransaction: SignTransaction;
|
|
21
|
+
getTransaction: GetTransaction;
|
|
22
|
+
getTransactions: GetTransactions;
|
|
23
|
+
getKeys: GetKeys;
|
|
24
|
+
createKey: CreateKey;
|
|
25
|
+
getConfiguration: GetConfiguration;
|
|
26
|
+
setConfiguration: SetConfiguration;
|
|
27
|
+
subscribeTransactions: SubscribeTransactions;
|
|
28
|
+
};
|
|
29
|
+
export default buildController;
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rpc-gen/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,MAAM,OAAO,GAAG;IAClB,eAAe,EAAE,eAAe,CAAA;IAChC,cAAc,EAAE,cAAc,CAAA;IAC9B,eAAe,EAAE,eAAe,CAAA;IAChC,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,SAAS,CAAA;IACpB,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,qBAAqB,EAAE,qBAAqB,CAAA;CAC/C,CAAA;AAED,iBAAS,eAAe,CAAC,OAAO,EAAE,OAAO;;;;;;;;;EAWxC;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Code generated by rpc-generator DO NOT EDIT!!
|
|
2
|
+
function buildController(methods) {
|
|
3
|
+
return {
|
|
4
|
+
signTransaction: methods.signTransaction,
|
|
5
|
+
getTransaction: methods.getTransaction,
|
|
6
|
+
getTransactions: methods.getTransactions,
|
|
7
|
+
getKeys: methods.getKeys,
|
|
8
|
+
createKey: methods.createKey,
|
|
9
|
+
getConfiguration: methods.getConfiguration,
|
|
10
|
+
setConfiguration: methods.setConfiguration,
|
|
11
|
+
subscribeTransactions: methods.subscribeTransactions,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default buildController;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Bytestring of the prepared transaction for verification purposes.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export type Tx = string;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* Hash of the prepared transaction that will be signed.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export type TxHash = string;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Public key used to sign the transaction.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export type PublicKey = string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* Internal txId used by the Wallet Kernel to store the transaction.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export type InternalTxId = string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* Unique identifier of the signed transaction given by the Signing Provider. This may not be the same as the internal txId given by the Wallet Kernel.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export type TxId = string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* Unique identifiers assigned by the Signing Provider of the transactions to subscribe to.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export type TxIds = TxId[];
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* List of public keys to filter transactions by
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export type PublicKeys = PublicKey[];
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* A human readable name for the key
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export type Name = string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* error code
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
export type ErrorCode = string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* A human readable error description
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export type ErrorDescription = string;
|
|
61
|
+
export interface Error {
|
|
62
|
+
error: ErrorCode;
|
|
63
|
+
error_description: ErrorDescription;
|
|
64
|
+
[k: string]: any;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* Status of the transaction signing process.
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
export type SigningStatus = 'pending' | 'signed' | 'rejected' | 'failed';
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* Signature of the transaction if it was signed.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
export type Signature = string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* Additional metadata about the transaction.
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
export interface Metadata {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}
|
|
86
|
+
export interface Transaction {
|
|
87
|
+
txId: TxId;
|
|
88
|
+
status: SigningStatus;
|
|
89
|
+
signature?: Signature;
|
|
90
|
+
publicKey?: PublicKey;
|
|
91
|
+
metadata?: Metadata;
|
|
92
|
+
[k: string]: any;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* List of transactions matching the provided filters
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
export type Transactions = Transaction[];
|
|
100
|
+
export interface ObjectOfTransactionsNe2GhqhN {
|
|
101
|
+
transactions?: Transactions;
|
|
102
|
+
[k: string]: any;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* Unique identifier for the key
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
export type Id = string;
|
|
110
|
+
export interface Key {
|
|
111
|
+
id: Id;
|
|
112
|
+
name: Name;
|
|
113
|
+
publicKey: PublicKey;
|
|
114
|
+
[k: string]: any;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* List of keys availabile at the Wallet Provider
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
export type Keys = Key[];
|
|
122
|
+
export interface SignTransactionParams {
|
|
123
|
+
tx: Tx;
|
|
124
|
+
txHash: TxHash;
|
|
125
|
+
publicKey: PublicKey;
|
|
126
|
+
internalTxId?: InternalTxId;
|
|
127
|
+
[k: string]: any;
|
|
128
|
+
}
|
|
129
|
+
export interface GetTransactionParams {
|
|
130
|
+
txId: TxId;
|
|
131
|
+
[k: string]: any;
|
|
132
|
+
}
|
|
133
|
+
export interface GetTransactionsParams {
|
|
134
|
+
txIds?: TxIds;
|
|
135
|
+
publicKeys?: PublicKeys;
|
|
136
|
+
[k: string]: any;
|
|
137
|
+
}
|
|
138
|
+
export interface CreateKeyParams {
|
|
139
|
+
name: Name;
|
|
140
|
+
[k: string]: any;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* Configuration parameters to set
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
export interface SetConfigurationParams {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}
|
|
150
|
+
export interface SubscribeTransactionsParams {
|
|
151
|
+
txIds: TxIds;
|
|
152
|
+
[k: string]: any;
|
|
153
|
+
}
|
|
154
|
+
export type SignTransactionResult = Error | Transaction;
|
|
155
|
+
export type GetTransactionResult = Error | Transaction;
|
|
156
|
+
export type GetTransactionsResult = Error | ObjectOfTransactionsNe2GhqhN;
|
|
157
|
+
export interface GetKeysResult {
|
|
158
|
+
keys?: Keys;
|
|
159
|
+
[k: string]: any;
|
|
160
|
+
}
|
|
161
|
+
export type CreateKeyResult = Error | Key;
|
|
162
|
+
export interface GetConfigurationResult {
|
|
163
|
+
[key: string]: any;
|
|
164
|
+
}
|
|
165
|
+
export interface SetConfigurationResult {
|
|
166
|
+
[key: string]: any;
|
|
167
|
+
}
|
|
168
|
+
export interface SubscribeTransactionsResult {
|
|
169
|
+
txId: TxId;
|
|
170
|
+
status: SigningStatus;
|
|
171
|
+
signature?: Signature;
|
|
172
|
+
publicKey?: PublicKey;
|
|
173
|
+
metadata?: Metadata;
|
|
174
|
+
[k: string]: any;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* Generated! Represents an alias to any of the provided schemas
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
export type SignTransaction = (params: SignTransactionParams) => Promise<SignTransactionResult>;
|
|
182
|
+
export type GetTransaction = (params: GetTransactionParams) => Promise<GetTransactionResult>;
|
|
183
|
+
export type GetTransactions = (params: GetTransactionsParams) => Promise<GetTransactionsResult>;
|
|
184
|
+
export type GetKeys = () => Promise<GetKeysResult>;
|
|
185
|
+
export type CreateKey = (params: CreateKeyParams) => Promise<CreateKeyResult>;
|
|
186
|
+
export type GetConfiguration = () => Promise<GetConfigurationResult>;
|
|
187
|
+
export type SetConfiguration = (params: SetConfigurationParams) => Promise<SetConfigurationResult>;
|
|
188
|
+
export type SubscribeTransactions = (params: SubscribeTransactionsParams) => Promise<SubscribeTransactionsResult>;
|
|
189
|
+
//# sourceMappingURL=typings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../src/rpc-gen/typings.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,MAAM,EAAE,GAAG,MAAM,CAAA;AACvB;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAC3B;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAC9B;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAA;AACzB;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,IAAI,EAAE,CAAA;AAC1B;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,EAAE,CAAA;AACpC;;;;GAIG;AACH,MAA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;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB;AACD,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,aAAa,CAAA;IACrB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB;AACD;;;;GAIG;AAEH,MAAM,MAAM,eAAe,GAAG,CAC1B,MAAM,EAAE,qBAAqB,KAC5B,OAAO,CAAC,qBAAqB,CAAC,CAAA;AACnC,MAAM,MAAM,cAAc,GAAG,CACzB,MAAM,EAAE,oBAAoB,KAC3B,OAAO,CAAC,oBAAoB,CAAC,CAAA;AAClC,MAAM,MAAM,eAAe,GAAG,CAC1B,MAAM,EAAE,qBAAqB,KAC5B,OAAO,CAAC,qBAAqB,CAAC,CAAA;AACnC,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,CAAA;AAClD,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;AAC7E,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,sBAAsB,CAAC,CAAA;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAC3B,MAAM,EAAE,sBAAsB,KAC7B,OAAO,CAAC,sBAAsB,CAAC,CAAA;AACpC,MAAM,MAAM,qBAAqB,GAAG,CAChC,MAAM,EAAE,2BAA2B,KAClC,OAAO,CAAC,2BAA2B,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canton-network/core-signing-lib",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"packageManager": "yarn@4.9.2",
|
|
3
|
+
"version": "0.3.0",
|
|
5
4
|
"type": "module",
|
|
5
|
+
"description": "Core library for signing driver implementations",
|
|
6
|
+
"repository": "github:hyperledger-labs/splice-wallet-kernel",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"packageManager": "yarn@4.9.4",
|
|
6
9
|
"main": "dist/index.js",
|
|
7
10
|
"types": "dist/index.d.ts",
|
|
8
11
|
"scripts": {
|
|
@@ -10,7 +13,7 @@
|
|
|
10
13
|
"clean": "tsc -b --clean && rm -rf ./dist"
|
|
11
14
|
},
|
|
12
15
|
"dependencies": {
|
|
13
|
-
"@canton-network/core-wallet-auth": "^0.
|
|
16
|
+
"@canton-network/core-wallet-auth": "^0.2.0",
|
|
14
17
|
"fs-extra": "^11.3.0",
|
|
15
18
|
"lodash": "^4.17.21",
|
|
16
19
|
"tweetnacl": "^1.0.3",
|
|
@@ -23,7 +26,7 @@
|
|
|
23
26
|
"typescript": "^5.8.3"
|
|
24
27
|
},
|
|
25
28
|
"files": [
|
|
26
|
-
"dist
|
|
29
|
+
"dist/**"
|
|
27
30
|
],
|
|
28
31
|
"publishConfig": {
|
|
29
32
|
"access": "public"
|