Skip to content

Commit 77b581e

Browse files
authored
doc: Errata
1 parent 5740fe0 commit 77b581e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sm2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func ExampleNewPrivateKeyFromInt() {
111111
// Output: 123456
112112
}
113113
```
114-
当然,你也可以使用ecdh包的方法```ecdh.P256().NewPrivateKey```来构造私钥,您要确保输入的字节数组是256位(16字节)的,如果不是,请先自行处理。
114+
当然,你也可以使用ecdh包的方法```ecdh.P256().NewPrivateKey```来构造私钥,您要确保输入的字节数组是256位(32字节)的,如果不是,请先自行处理。
115115

116116
## 数字签名算法
117117
您可以直接使用sm2私钥的签名方法```Sign```

0 commit comments

Comments
 (0)