Documentation
¶
Index ¶
- Constants
- Variables
- func AggregateSignatures(sigs [][]byte) ([]byte, error)
- func AggregateVerify(pks [][]byte, msg, sig []byte) bool
- func CompressP256k1Pubkey(pubkey [64]byte) []byte
- func DoubleSHA256Sum(data []byte) []byte
- func Hash160Sum(data []byte) []byte
- func SHA256Sum(data ...[]byte) []byte
- func Sign(sk *PrivateKey, msg []byte) []byte
- func Uint64LE(n ...uint64) []byte
- func Verify(pk, msg, sig []byte) bool
- type AggregatePublicKey
- type AggregateSignature
- type PrivateKey
- type PublicKey
- type Signature
Constants ¶
View Source
const ( PubkeyLength = blst.BLST_P2_COMPRESS_BYTES SignatureLength = blst.BLST_P1_COMPRESS_BYTES )
View Source
const (
Secp256k1SigLength = 64
)
Variables ¶
View Source
var ErrorAggregation = errors.New("crypto: failed to aggregate bls signatures")
Functions ¶
func AggregateSignatures ¶
func AggregateVerify ¶
func CompressP256k1Pubkey ¶
func DoubleSHA256Sum ¶
func Hash160Sum ¶
func Sign ¶
func Sign(sk *PrivateKey, msg []byte) []byte
Types ¶
type AggregatePublicKey ¶
type AggregatePublicKey = blst.P2Aggregate
type AggregateSignature ¶
type AggregateSignature = blst.P1Aggregate
Click to show internal directories.
Click to hide internal directories.