Documentation ¶
Index ¶
Constants ¶
View Source
const Sm2KeySize = 32
ref:《SM2椭圆曲线公钥密码算法推荐曲线参数》http://www.oscca.gov.cn/UpFile/2010122214836668.pdf Curve-SM2-P-256: len(P) = 64; len(N) = 64; len(B) = 64; len(Gx) = 32; len(Gy) = 32; so SM2_KEY_SIZE == 32 bytes
Variables ¶
This section is empty.
Functions ¶
func Base58Decode ¶
Decode a big integer from the bytes. Returns an error on corrupt input.
func Base58Encode ¶
Encode encodes src, appending to dst. Be sure to use the returned new value of dst.
Types ¶
type CorruptInputError ¶
type CorruptInputError int64
func (CorruptInputError) Error ¶
func (e CorruptInputError) Error() string
Click to show internal directories.
Click to hide internal directories.