package
0.0.0-20230728040913-ea9045636ba9
Repository: https://github.com/xuperchain/crypto.git
Documentation: pkg.go.dev
# Functions
验证钱包地址是否是合法的格式如果成功,返回true和对应的密码学标记位;如果失败,返回false和默认的密码学标记位0.
参数字段:版本号、语言、强度 返回的字段:助记词、私钥的json、公钥的json、钱包地址、错误信息.
No description provided by the author
No description provided by the author
通过助记词来产生/恢复钱包账户.
返回33位长度的地址.
generate address for multi-signature / ring-signature algorithm为多个公钥生成地址,比如环签名地址,多重签名地址.
No description provided by the author
No description provided by the author
No description provided by the author
获得私钥所对应的的json.
No description provided by the author
No description provided by the author
获得公钥所对应的的json.
获得公钥所对应的的json.
RetrievePrivateKeyByShares 私钥恢复.
SplitPrivateKey 私钥分割.
验证钱包地址是否和指定的公钥match如果成功,返回true和对应的密码学标记位;如果失败,返回false和默认的密码学标记位0.
验证钱包地址是否和指定的公钥数组match如果成功,返回true和对应的密码学标记位;如果失败,返回false和默认的密码学标记位0.
# Constants
不同语言标准不一样,这里用const直接定义值还是好一些 _ = iota 美国Federal Information Processing Standards的椭圆曲线.
国密椭圆曲线.
不同语言标准不一样,这里用const直接定义值还是好一些 _ = iota 低.
高.
中.
# Variables
No description provided by the author
密码学算法暂未被支持 Cryptography required for generating Mnemonic has not been supported yet.
语言暂未被支持 ReservedType required for generating Mnemonic has not been supported yet.
助记词的强度暂未被支持 Strength required for generating Mnemonic has not been supported yet.
No description provided by the author
1111 - 11个1,当一个大的bigint和它进行“And”比特运算的时候,就会获得大的bigint最右边4位的比特位.
No description provided by the author
10000 - 乘以这个带有4个0的数等于左移4个比特位,除以这个带有4个0的数等于右移4个比特位,.
No description provided by the author
# Type aliases
ShareGroup 密码学切分后的密钥片段簇.