@agrozyme/eckey 0.0.5 → 0.0.6
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 +27 -27
- package/dist/types.d.ts +1 -1
- package/oclif.manifest.json +21 -19
- package/package.json +13 -14
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ $ npm install -g @agrozyme/eckey
|
|
|
13
13
|
$ eckey COMMAND
|
|
14
14
|
running command...
|
|
15
15
|
$ eckey (--version)
|
|
16
|
-
@agrozyme/eckey/0.0.
|
|
16
|
+
@agrozyme/eckey/0.0.6 win32-x64 node-v24.14.1
|
|
17
17
|
$ eckey --help [COMMAND]
|
|
18
18
|
USAGE
|
|
19
19
|
$ eckey COMMAND
|
|
@@ -36,18 +36,18 @@ convert string to other format
|
|
|
36
36
|
```
|
|
37
37
|
USAGE
|
|
38
38
|
$ eckey convert --data <value> [--from
|
|
39
|
-
base16|base32|base32crockford|base32hex|base58|
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr|base58xrp|base64|base64url|base64urlnopad|hex|
|
|
40
|
+
utf8|base58check] [--to base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr|base58xrp|base64|base6
|
|
41
|
+
4url|base64urlnopad|hex|utf8|base58check]
|
|
42
42
|
|
|
43
43
|
FLAGS
|
|
44
44
|
--data=<value> (required)
|
|
45
45
|
--from=<option> [default: hex]
|
|
46
|
-
<options: base16|base32|base32crockford|base32hex|base58|
|
|
47
|
-
|
|
|
46
|
+
<options: base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr|base58xrp|base64|base
|
|
47
|
+
64url|base64urlnopad|hex|utf8|base58check>
|
|
48
48
|
--to=<option> [default: hex]
|
|
49
|
-
<options: base16|base32|base32crockford|base32hex|base58|
|
|
50
|
-
|
|
|
49
|
+
<options: base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr|base58xrp|base64|base
|
|
50
|
+
64url|base64urlnopad|hex|utf8|base58check>
|
|
51
51
|
|
|
52
52
|
DESCRIPTION
|
|
53
53
|
convert string to other format
|
|
@@ -56,7 +56,7 @@ EXAMPLES
|
|
|
56
56
|
$ eckey convert
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
_See code: [src/commands/convert.ts](https://gitlab.com/agrozyme-package/TypeScript/eckey/blob/v0.0.
|
|
59
|
+
_See code: [src/commands/convert.ts](https://gitlab.com/agrozyme-package/TypeScript/eckey/blob/v0.0.6/src/commands/convert.ts)_
|
|
60
60
|
|
|
61
61
|
## `eckey help [COMMAND]`
|
|
62
62
|
|
|
@@ -67,7 +67,7 @@ USAGE
|
|
|
67
67
|
$ eckey help [COMMAND...] [-n]
|
|
68
68
|
|
|
69
69
|
ARGUMENTS
|
|
70
|
-
COMMAND... Command to show help for.
|
|
70
|
+
[COMMAND...] Command to show help for.
|
|
71
71
|
|
|
72
72
|
FLAGS
|
|
73
73
|
-n, --nested-commands Include all nested commands in the output.
|
|
@@ -76,7 +76,7 @@ DESCRIPTION
|
|
|
76
76
|
Display help for eckey.
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/
|
|
79
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.43/src/commands/help.ts)_
|
|
80
80
|
|
|
81
81
|
## `eckey make`
|
|
82
82
|
|
|
@@ -85,18 +85,18 @@ make elliptic curve key pair
|
|
|
85
85
|
```
|
|
86
86
|
USAGE
|
|
87
87
|
$ eckey make --curve
|
|
88
|
-
bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|p256|p384|p521|
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|babyjubjub|p256|secp256r1|p384|secp384r1|p521|secp
|
|
89
|
+
521r1|pallas|vesta|schnorr|secp256k1 [--format base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr
|
|
90
|
+
|base58xrp|base64|base64url|base64urlnopad|hex|utf8|base58check] [--count <value>]
|
|
91
91
|
|
|
92
92
|
FLAGS
|
|
93
93
|
--count=<value> [default: 1]
|
|
94
94
|
--curve=<option> (required)
|
|
95
|
-
<options: bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|p256|
|
|
96
|
-
|
|
95
|
+
<options: bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|babyjubjub|p256|secp256
|
|
96
|
+
r1|p384|secp384r1|p521|secp521r1|pallas|vesta|schnorr|secp256k1>
|
|
97
97
|
--format=<option> [default: hex]
|
|
98
|
-
<options: base16|base32|base32crockford|base32hex|base58|
|
|
99
|
-
|
|
98
|
+
<options: base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr|base58xrp|base64|ba
|
|
99
|
+
se64url|base64urlnopad|hex|utf8|base58check>
|
|
100
100
|
|
|
101
101
|
DESCRIPTION
|
|
102
102
|
make elliptic curve key pair
|
|
@@ -105,7 +105,7 @@ EXAMPLES
|
|
|
105
105
|
$ eckey make
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
_See code: [src/commands/make.ts](https://gitlab.com/agrozyme-package/TypeScript/eckey/blob/v0.0.
|
|
108
|
+
_See code: [src/commands/make.ts](https://gitlab.com/agrozyme-package/TypeScript/eckey/blob/v0.0.6/src/commands/make.ts)_
|
|
109
109
|
|
|
110
110
|
## `eckey pair`
|
|
111
111
|
|
|
@@ -114,18 +114,18 @@ convert key pair to other format
|
|
|
114
114
|
```
|
|
115
115
|
USAGE
|
|
116
116
|
$ eckey pair --data <value> --curve
|
|
117
|
-
bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|p256|p384|p521|
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|babyjubjub|p256|secp256r1|p384|secp384r1|p521|secp
|
|
118
|
+
521r1|pallas|vesta|schnorr|secp256k1 [--format base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr
|
|
119
|
+
|base58xrp|base64|base64url|base64urlnopad|hex|utf8|base58check]
|
|
120
120
|
|
|
121
121
|
FLAGS
|
|
122
122
|
--curve=<option> (required)
|
|
123
|
-
<options: bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|p256|
|
|
124
|
-
|
|
123
|
+
<options: bls12_381|bn254|ed448|ed448ph|ed25519|ed25519ctx|ed25519ph|jubjub|babyjubjub|p256|secp256
|
|
124
|
+
r1|p384|secp384r1|p521|secp521r1|pallas|vesta|schnorr|secp256k1>
|
|
125
125
|
--data=<value> (required)
|
|
126
126
|
--format=<option> [default: hex]
|
|
127
|
-
<options: base16|base32|base32crockford|base32hex|base58|
|
|
128
|
-
|
|
127
|
+
<options: base16|base32|base32crockford|base32hex|base58|base58flickr|base58xmr|base58xrp|base64|ba
|
|
128
|
+
se64url|base64urlnopad|hex|utf8|base58check>
|
|
129
129
|
|
|
130
130
|
DESCRIPTION
|
|
131
131
|
convert key pair to other format
|
|
@@ -134,5 +134,5 @@ EXAMPLES
|
|
|
134
134
|
$ eckey pair
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
-
_See code: [src/commands/pair.ts](https://gitlab.com/agrozyme-package/TypeScript/eckey/blob/v0.0.
|
|
137
|
+
_See code: [src/commands/pair.ts](https://gitlab.com/agrozyme-package/TypeScript/eckey/blob/v0.0.6/src/commands/pair.ts)_
|
|
138
138
|
<!-- commandsstop -->
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const bytesCoderKeys: ("base16" | "base32" | "base32crockford" | "base32hex" | "base58" | "base58flickr" | "base58xmr" | "base58xrp" | "base64" | "base64url" | "base64urlnopad" | "hex" | "utf8" | "base58check")[];
|
|
2
|
-
export declare const curveKeys: ("bls12_381" | "bn254" | "ed448" | "ed448ph" | "ed25519" | "ed25519ctx" | "ed25519ph" | "jubjub" | "p256" | "secp256r1" | "p384" | "secp384r1" | "p521" | "secp521r1" | "pallas" | "vesta" | "schnorr" | "secp256k1")[];
|
|
2
|
+
export declare const curveKeys: ("bls12_381" | "bn254" | "ed448" | "ed448ph" | "ed25519" | "ed25519ctx" | "ed25519ph" | "jubjub" | "babyjubjub" | "p256" | "secp256r1" | "p384" | "secp384r1" | "p521" | "secp521r1" | "pallas" | "vesta" | "schnorr" | "secp256k1")[];
|
package/oclif.manifest.json
CHANGED
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"base32crockford",
|
|
27
27
|
"base32hex",
|
|
28
28
|
"base58",
|
|
29
|
-
"base58check",
|
|
30
29
|
"base58flickr",
|
|
31
30
|
"base58xmr",
|
|
32
31
|
"base58xrp",
|
|
@@ -34,7 +33,8 @@
|
|
|
34
33
|
"base64url",
|
|
35
34
|
"base64urlnopad",
|
|
36
35
|
"hex",
|
|
37
|
-
"utf8"
|
|
36
|
+
"utf8",
|
|
37
|
+
"base58check"
|
|
38
38
|
],
|
|
39
39
|
"type": "option"
|
|
40
40
|
},
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"base32crockford",
|
|
50
50
|
"base32hex",
|
|
51
51
|
"base58",
|
|
52
|
-
"base58check",
|
|
53
52
|
"base58flickr",
|
|
54
53
|
"base58xmr",
|
|
55
54
|
"base58xrp",
|
|
@@ -57,7 +56,8 @@
|
|
|
57
56
|
"base64url",
|
|
58
57
|
"base64urlnopad",
|
|
59
58
|
"hex",
|
|
60
|
-
"utf8"
|
|
59
|
+
"utf8",
|
|
60
|
+
"base58check"
|
|
61
61
|
],
|
|
62
62
|
"type": "option"
|
|
63
63
|
}
|
|
@@ -99,16 +99,17 @@
|
|
|
99
99
|
"ed25519ctx",
|
|
100
100
|
"ed25519ph",
|
|
101
101
|
"jubjub",
|
|
102
|
+
"babyjubjub",
|
|
102
103
|
"p256",
|
|
104
|
+
"secp256r1",
|
|
103
105
|
"p384",
|
|
106
|
+
"secp384r1",
|
|
104
107
|
"p521",
|
|
108
|
+
"secp521r1",
|
|
105
109
|
"pallas",
|
|
110
|
+
"vesta",
|
|
106
111
|
"schnorr",
|
|
107
|
-
"secp256k1"
|
|
108
|
-
"secp256r1",
|
|
109
|
-
"secp384r1",
|
|
110
|
-
"secp521r1",
|
|
111
|
-
"vesta"
|
|
112
|
+
"secp256k1"
|
|
112
113
|
],
|
|
113
114
|
"type": "option"
|
|
114
115
|
},
|
|
@@ -123,7 +124,6 @@
|
|
|
123
124
|
"base32crockford",
|
|
124
125
|
"base32hex",
|
|
125
126
|
"base58",
|
|
126
|
-
"base58check",
|
|
127
127
|
"base58flickr",
|
|
128
128
|
"base58xmr",
|
|
129
129
|
"base58xrp",
|
|
@@ -131,7 +131,8 @@
|
|
|
131
131
|
"base64url",
|
|
132
132
|
"base64urlnopad",
|
|
133
133
|
"hex",
|
|
134
|
-
"utf8"
|
|
134
|
+
"utf8",
|
|
135
|
+
"base58check"
|
|
135
136
|
],
|
|
136
137
|
"type": "option"
|
|
137
138
|
},
|
|
@@ -187,16 +188,17 @@
|
|
|
187
188
|
"ed25519ctx",
|
|
188
189
|
"ed25519ph",
|
|
189
190
|
"jubjub",
|
|
191
|
+
"babyjubjub",
|
|
190
192
|
"p256",
|
|
193
|
+
"secp256r1",
|
|
191
194
|
"p384",
|
|
195
|
+
"secp384r1",
|
|
192
196
|
"p521",
|
|
197
|
+
"secp521r1",
|
|
193
198
|
"pallas",
|
|
199
|
+
"vesta",
|
|
194
200
|
"schnorr",
|
|
195
|
-
"secp256k1"
|
|
196
|
-
"secp256r1",
|
|
197
|
-
"secp384r1",
|
|
198
|
-
"secp521r1",
|
|
199
|
-
"vesta"
|
|
201
|
+
"secp256k1"
|
|
200
202
|
],
|
|
201
203
|
"type": "option"
|
|
202
204
|
},
|
|
@@ -211,7 +213,6 @@
|
|
|
211
213
|
"base32crockford",
|
|
212
214
|
"base32hex",
|
|
213
215
|
"base58",
|
|
214
|
-
"base58check",
|
|
215
216
|
"base58flickr",
|
|
216
217
|
"base58xmr",
|
|
217
218
|
"base58xrp",
|
|
@@ -219,7 +220,8 @@
|
|
|
219
220
|
"base64url",
|
|
220
221
|
"base64urlnopad",
|
|
221
222
|
"hex",
|
|
222
|
-
"utf8"
|
|
223
|
+
"utf8",
|
|
224
|
+
"base58check"
|
|
223
225
|
],
|
|
224
226
|
"type": "option"
|
|
225
227
|
}
|
|
@@ -264,5 +266,5 @@
|
|
|
264
266
|
]
|
|
265
267
|
}
|
|
266
268
|
},
|
|
267
|
-
"version": "0.0.
|
|
269
|
+
"version": "0.0.6"
|
|
268
270
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agrozyme/eckey",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Elliptic Curve Key CLI",
|
|
5
5
|
"author": "",
|
|
6
6
|
"bin": {
|
|
@@ -17,25 +17,24 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@agrozyme/crypto": "^1.0.
|
|
21
|
-
"@oclif/core": "^4.
|
|
22
|
-
"@oclif/plugin-help": "^6.2.
|
|
23
|
-
"@oclif/plugin-plugins": "^5.4.
|
|
20
|
+
"@agrozyme/crypto": "^1.0.13",
|
|
21
|
+
"@oclif/core": "^4.10.5",
|
|
22
|
+
"@oclif/plugin-help": "^6.2.43",
|
|
23
|
+
"@oclif/plugin-plugins": "^5.4.59",
|
|
24
24
|
"rambdax": "^11.3.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@oclif/test": "^4.1.
|
|
28
|
-
"@
|
|
29
|
-
"@types/
|
|
30
|
-
"@types/node": "^18.19.
|
|
31
|
-
"chai": "^
|
|
32
|
-
"
|
|
33
|
-
"oclif": "^4.17.43",
|
|
27
|
+
"@oclif/test": "^4.1.18",
|
|
28
|
+
"@rstest/core": "^0.9.6",
|
|
29
|
+
"@types/chai": "^5.2.3",
|
|
30
|
+
"@types/node": "^18.19.130",
|
|
31
|
+
"chai": "^6.2.2",
|
|
32
|
+
"oclif": "^4.23.0",
|
|
34
33
|
"pkg": "^5.8.1",
|
|
35
34
|
"shx": "^0.4.0",
|
|
36
35
|
"ts-node": "^10.9.2",
|
|
37
36
|
"tslib": "^2.8.1",
|
|
38
|
-
"typescript": "^
|
|
37
|
+
"typescript": "^6.0.2",
|
|
39
38
|
"yarpm": "^1.2.0"
|
|
40
39
|
},
|
|
41
40
|
"oclif": {
|
|
@@ -70,7 +69,7 @@
|
|
|
70
69
|
"clean:lock": "shx rm -f package-lock.json yarn.lock pnpm-lock.yaml",
|
|
71
70
|
"clean:all": "yarpm run clean && yarpm run clean:pack && yarpm run clean:lock",
|
|
72
71
|
"build": "yarpm run clean && tsc --build --force && shx cp -R ./src/assets ./dist",
|
|
73
|
-
"test": "
|
|
72
|
+
"test": "rstest",
|
|
74
73
|
"oclif:readme": "yarpm run build && oclif readme",
|
|
75
74
|
"oclif:pack": "yarn generate-lock-entry > yarn.lock && oclif pack",
|
|
76
75
|
"package": "yarpm run build && pkg --no-bytecode --public --public-packages=* --compress=GZip .",
|