package
0.0.0-20210604230344-19bee3a11d65
Repository: https://github.com/tossp/tsgo.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
Base64Decode 解码.
Base64Encode 编码.
Base64Decode 解码.
Base64Encode 编码.
BigMax returns the larger of x or y.
BigMin returns the smaller of x or y.
BigPow returns a ** b as a big integer.
Byte returns the byte at position n, with the supplied padlength in Little-Endian encoding.
No description provided by the author
No description provided by the author
Exp implements exponentiation by squaring.
FirstBitSet returns the index of the first 1 bit in v, counting from LSB.
私钥 -> []byte.
公钥 -> []byte.
No description provided by the author
GenerateKey 生成密钥对.
GenerateRandomBytes Generate n number of random bytes.
GenerateSharedSecret 生成共享密钥.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MakeKeyWithKey 指定特征后直接生成密钥.
MakeKeyWithKey 指定特征后直接生成密钥.
MustParseBig256 parses s as a 256 bit big integer and panics if the string is invalid.
NewKey 随机生成密钥.
NewKeyWithKey 指定特征SHA512后生成密钥.
NewKey 随机生成密钥.
NewKeyWithKey 指定特征SHA512后生成密钥.
No description provided by the author
No description provided by the author
PaddedBigBytes encodes a big integer as a big-endian byte slice.
No description provided by the author
ParseBig256 parses s as a 256 bit integer in decimal or hexadecimal syntax.
ReadBits encodes the absolute value of bigint as big-endian bytes.
Decrypt Decrypt (authenticated) a series of bytes given the secret key */.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Sign 签名.
No description provided by the author
SignVer 签名验证.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
[]byte -> 私钥.
[]byte -> 公钥.
[]byte -> 公钥.
U256 encodes as a 256 bit two's complement number.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
Various big integer limit values.
Various big integer limit values.

# Structs

No description provided by the author

# Type aliases

HexOrDecimal256 marshals big.Int as hex or decimal.