8000 docs, refactor: translate comments in source code into english. · fibjs/fibjs@46ab52c · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 46ab52c

Browse files
committed
docs, refactor: translate comments in source code into english.
1 parent db5da8f commit 46ab52c

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

idl/zh-cn/PKey.idl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ interface PKey : object
200200
opts 支持以下参数:
201201
```JavaScript
202202
{
203-
compress: false // 指定签名以压缩方式输出公钥
203+
compress: false // specify whether to output public key in compressed form
204204
}
205205
```
206206
支持压缩的曲线为:secp192r1, secp192k1, secp256r1, secp256k1, brainpoolP256r1,
@@ -233,9 +233,9 @@ interface PKey : object
233233
opts 支持以下参数:
234234
```JavaScript
235235
{
236-
alg: 0, // 指定签名的 hash 算法,仅在 RSA 时有效,缺省为 0. 支持算法: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
237-
format: "der", // 指定签名格式,可选为 der 和 raw,缺省为 der
238-
recoverable: false // 指定返回可恢复签名,仅在 secp256k1 有效
236+
alg: 0, // specify the hash algorithm for signing, only valid for RSA, default is 0. Supported algorithms: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
237+
format: "der", // specify the signature format, default is der, supported formats: der, raw
238+
recoverable: false // specify whether to return a recoverable signature, only valid for secp256k1
239239
}
240240
```
241241

@@ -249,8 +249,8 @@ interface PKey : object
249249
opts 支持以下参数:
250250
```JavaScript
251251
{
252-
alg: 0, // 指定签名的 hash 算法,仅在 RSA 时有效,缺省为 0. 支持算法: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
253-
format: "der" // 指定签名格式,可选为 der 和 raw,缺省为 der
252+
alg: 0, // specify the hash algorithm for signing, only valid for RSA, default is 0. Supported algorithms: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
253+
format: "der" // specify the signature format, default is der, supported formats: der, raw
254254
}
255255
```
256256

npm/types/dts/interface/BlsKey.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ declare class Class_BlsKey extends Class_ECKey {
6767
* opts 支持以下参数:
6868
* ```JavaScript
6969
* {
70-
* header: Buffer|string 指定签名使用的应用数据,缺省为空
70+
* header: Buffer|string // specified header for signature, default is empty
7171
* }
7272
* ```
7373
*
@@ -85,7 +85,7 @@ declare class Class_BlsKey extends Class_ECKey {
8585
* opts 支持以下参数:
8686
* ```JavaScript
8787
* {
88-
* header: Buffer|string 指定签名使用的应用数据,缺省为空
88+
* header: Buffer|string // specified header for signature, default is empty
8989
* }
9090
* ```
9191
*
@@ -104,8 +104,8 @@ declare class Class_BlsKey extends Class_ECKey {
104104
* opts 支持以下参数:
105105
* ```JavaScript
106106
* {
107-
* header: Buffer|string, 指定签名使用的应用数据,缺省为空
108-
* proof_header: Buffer|string 指定证明使用的应用数据,缺省为空
107+
* header: Buffer|string, // specified header for signature, default is empty
108+
* proof_header: Buffer|string // specified header for proof, default is empty
109109
* }
110110
* ```
111111
*
@@ -125,8 +125,8 @@ declare class Class_BlsKey extends Class_ECKey {
125125
* opts 支持以下参数:
126126
* ```JavaScript
127127
* {
128-
* header: Buffer|string, 指定签名使用的应用数据,缺省为空
129-
* proof_header: Buffer|string 指定证明使用的应用数据,缺省为空
128+
* header: Buffer|string, // specified header for signature, default is empty
129+
* proof_header: Buffer|string // specified header for proof, default is empty
130130
* }
131131
* ```
132132
*

npm/types/dts/interface/PKey.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ declare class Class_PKey extends Class_object {
233233
* opts 支持以下参数:
234234
* ```JavaScript
235235
* {
236-
* compress: false, 指定签名以压缩方式输出公钥
236+
* compress: false // specify whether to output public key in compressed form
237237
* }
238238
* ```
239239
* 支持压缩的曲线为:secp192r1, secp192k1, secp256r1, secp256k1, brainpoolP256r1,
@@ -278,9 +278,9 @@ declare class Class_PKey extends Class_object {
278278
* opts 支持以下参数:
279279
* ```JavaScript
280280
* {
281-
* alg: 0, 指定签名的 hash 算法,仅在 RSA 时有效,缺省为 0. 支持算法: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
282-
* format: "der", 指定签名格式,可选为 der 和 raw,缺省为 der
283-
* recoverable: false 指定返回可恢复签名,仅在 secp256k1 有效
281+
* alg: 0, // specify the hash algorithm for signing, only valid for RSA, default is 0. Supported algorithms: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
282+
* format: "der", // specify the signature format, default is der, supported formats: der, raw
283+
* recoverable: false // specify whether to return a recoverable signature, only valid for secp256k1
284284
* }
285285
* ```
286286
*
@@ -298,8 +298,8 @@ declare class Class_PKey extends Class_object {
298298
* opts 支持以下参数:
299299
* ```JavaScript
300300
* {
301-
* alg: 0, 指定签名的 hash 算法,仅在 RSA 时有效,缺省为 0. 支持算法: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
302-
* format: "der", 指定签名格式,可选为 der 和 raw,缺省为 der
301+
* alg: 0, // specify the hash algorithm for signing, only valid for RSA, default is 0. Supported algorithms: 0=NONE,1=MD5,2=SHA1,3=SHA224,4=SHA256,5=SHA384,6=SHA512,7=RIPEMD160
302+
* format: "der" // specify the signature format, default is der, supported formats: der, raw
303303
* }
304304
* ```
305305
*

0 commit comments

Comments
 (0)
0