Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuperchain/crypto
This project is the crypto library for XuperChain. Ring signature, multi signature, schnorr signature, secret share, hierarchical deterministic encryption, threshold signature scheme(tss schnorr) , bls signature have been supported.目前开源部分已经支持了Xuper统一超级签名算法、Schnorr签名,环签名、多重签名,tss(schnorr)门限签名,BLS签名等多种签名算法。也支持了秘密分享、分层确定性加解密等多种密码学能力。
https://github.com/xuperchain/crypto
multi-signature ring-signature schnorr-signature threshold-signature
Last synced: about 1 month ago
JSON representation
This project is the crypto library for XuperChain. Ring signature, multi signature, schnorr signature, secret share, hierarchical deterministic encryption, threshold signature scheme(tss schnorr) , bls signature have been supported.目前开源部分已经支持了Xuper统一超级签名算法、Schnorr签名,环签名、多重签名,tss(schnorr)门限签名,BLS签名等多种签名算法。也支持了秘密分享、分层确定性加解密等多种密码学能力。
- Host: GitHub
- URL: https://github.com/xuperchain/crypto
- Owner: xuperchain
- License: apache-2.0
- Created: 2020-03-23T06:50:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-28T04:09:13.000Z (over 1 year ago)
- Last Synced: 2024-06-18T15:34:59.622Z (6 months ago)
- Topics: multi-signature, ring-signature, schnorr-signature, threshold-signature
- Language: Go
- Homepage:
- Size: 1.38 MB
- Stars: 62
- Watchers: 5
- Forks: 27
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XuperChain Crypto
This project is the crypto library for XuperChain.
本项目是超级链相关的密码库模块。目前开源部分已经支持了Xuper统一超级签名算法、Schnorr签名,环签名、多重签名等多种签名算法。也支持了秘密分享、分层确定性加解密等多种密码学能力。
NIST系列算法请引用:
"github.com/xuperchain/crypto/client/service/xchain"详细函数说明请参考该类的函数注释
使用例子:
```
import (
"log""github.com/xuperchain/crypto/client/service/xchain"
"github.com/xuperchain/crypto/core/account"
"github.com/xuperchain/crypto/core/hdwallet/rand"
)xcc := new(xchain.XchainCryptoClient)
ecdsaAccount, err := xcc.CreateNewAccountWithMnemonic(rand.SimplifiedChinese, account.StrengthHard)
if err != nil {
log.Printf("CreateNewAccountWithMnemonic failed and err is: %v", err)
return
}log.Printf("mnemonic is %v, jsonPrivateKey is %v, jsonPublicKey is %v and address is %v", ecdsaAccount.Mnemonic, ecdsaAccount.JsonPrivateKey, ecdsaAccount.JsonPublicKey, ecdsaAccount.Address)
```------
国密系列算法请引用:
"github.com/xuperchain/crypto/client/service/gm"详细函数说明请参考该类的函数注释
使用例子:
```
import (
"log""github.com/xuperchain/crypto/client/service/gm"
"github.com/xuperchain/crypto/gm/account"
"github.com/xuperchain/crypto/gm/hdwallet/rand"
)gcc := new(gm.GmCryptoClient)
ecdsaAccount, err := gcc.CreateNewAccountWithMnemonic(rand.SimplifiedChinese, account.StrengthHard)
if err != nil {
log.Printf("CreateNewAccountWithMnemonic failed and err is: %v", err)
return
}
log.Printf("mnemonic is %v, jsonPrivateKey is %v, jsonPublicKey is %v and address is %v", ecdsaAccount.Mnemonic, ecdsaAccount.JsonPrivateKey, ecdsaAccount.JsonPublicKey, ecdsaAccount.Address)
```