@taquito/signer 25.0.0 → 25.1.0-rc0
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/README.md +19 -2
- package/dist/lib/in-memory-signer.js +19 -4
- package/dist/lib/mldsa-key.js +85 -0
- package/dist/lib/version.js +2 -2
- package/dist/taquito-signer.es6.js +2677 -149
- package/dist/taquito-signer.es6.js.map +1 -1
- package/dist/taquito-signer.umd.js +2676 -148
- package/dist/taquito-signer.umd.js.map +1 -1
- package/dist/types/key-interface.d.ts +2 -2
- package/dist/types/mldsa-key.d.ts +18 -0
- package/package.json +9 -8
|
@@ -11,14 +11,14 @@ export interface SigningKeyWithProofOfPossession extends SigningKey {
|
|
|
11
11
|
export declare function isPOP(k: SigningKey): k is SigningKeyWithProofOfPossession;
|
|
12
12
|
export interface PublicKey {
|
|
13
13
|
/**
|
|
14
|
-
* Compare two public keys of the same
|
|
14
|
+
* Compare two public keys of the same signature scheme
|
|
15
15
|
* @param other the other PublicKey class to compare to
|
|
16
16
|
* @returns -1 if this public key is less than the other, 0 if they are equal, 1 if this public key is greater than the other
|
|
17
17
|
* @throws InvalidPublicKeyError
|
|
18
18
|
*/
|
|
19
19
|
compare(other: PublicKey): number;
|
|
20
20
|
/**
|
|
21
|
-
* Hash of the public key (tz1, tz2, tz3, tz4 addresses)
|
|
21
|
+
* Hash of the public key (tz1, tz2, tz3, tz4, tz5 addresses)
|
|
22
22
|
* @returns the hash of the public key
|
|
23
23
|
*/
|
|
24
24
|
hash(): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RawSignResult } from '@taquito/core';
|
|
2
|
+
import { PublicKey, SigningKey } from './key-interface';
|
|
3
|
+
export declare class MLDSAKey implements SigningKey {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(key: string, decrypt?: (key: Uint8Array) => Uint8Array);
|
|
6
|
+
sign(message: Uint8Array): RawSignResult;
|
|
7
|
+
publicKey(): PublicKey;
|
|
8
|
+
secretKey(): string;
|
|
9
|
+
}
|
|
10
|
+
export declare class MLDSAPublicKey implements PublicKey {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(src: string | Uint8Array);
|
|
13
|
+
compare(other: PublicKey): number;
|
|
14
|
+
hash(): string;
|
|
15
|
+
bytes(): Uint8Array;
|
|
16
|
+
toProtocol(): Uint8Array;
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/signer",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.1.0-rc0",
|
|
4
4
|
"description": "Software signer implementations and signing utilities for Taquito.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"taquito",
|
|
@@ -57,11 +57,12 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@noble/curves": "^1.9.7",
|
|
60
|
-
"@
|
|
61
|
-
"@noble/
|
|
60
|
+
"@noble/hashes": "2.2.0",
|
|
61
|
+
"@noble/post-quantum": "0.7.1",
|
|
62
|
+
"@scure/bip39": "2.2.0",
|
|
62
63
|
"@stablelib/nacl": "^1.0.4",
|
|
63
|
-
"@taquito/core": "^25.
|
|
64
|
-
"@taquito/utils": "^25.
|
|
64
|
+
"@taquito/core": "^25.1.0-rc0",
|
|
65
|
+
"@taquito/utils": "^25.1.0-rc0",
|
|
65
66
|
"@types/bn.js": "^5.1.5",
|
|
66
67
|
"bn.js": "^5.2.2",
|
|
67
68
|
"typedarray-to-buffer": "^4.0.0"
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
71
72
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
72
73
|
"@types/bluebird": "^3.5.42",
|
|
73
|
-
"@types/node": "^22.20.
|
|
74
|
+
"@types/node": "^22.20.5",
|
|
74
75
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
75
76
|
"@typescript-eslint/parser": "^6.21.0",
|
|
76
77
|
"colors": "^1.4.0",
|
|
@@ -78,11 +79,11 @@
|
|
|
78
79
|
"eslint": "^8.57.0",
|
|
79
80
|
"lint-staged": "^15.2.7",
|
|
80
81
|
"lodash.camelcase": "^4.3.0",
|
|
81
|
-
"prettier": "^3.
|
|
82
|
+
"prettier": "^3.9.10",
|
|
82
83
|
"prompt": "^1.3.0",
|
|
83
84
|
"replace-in-file": "^8.1.0",
|
|
84
85
|
"rimraf": "^6.0.1",
|
|
85
|
-
"rollup": "^4.
|
|
86
|
+
"rollup": "^4.64.7",
|
|
86
87
|
"rollup-plugin-json": "^4.0.0",
|
|
87
88
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
88
89
|
"rollup-plugin-typescript2": "^0.37.0",
|