Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateNewKeypair() (*SecretKey, *PublicKey, error)
- func JHDtVQLO() error
- func PublicKeyToBytes(pk *PublicKey) []byte
- func SecretKeyToBytes(sk *SecretKey) []byte
- func SignatureToBytes(sig *Signature) []byte
- func VerifySignature(sig *Signature, pk *PublicKey, msg []byte) (bool, error)
- func VerifySignatureBytes(msg, sigBytes, pkBytes []byte) (bool, error)
- type PublicKey
- type SecretKey
- type Signature
Constants ¶
View Source
const ( PublicKeyLength = bls12381.SizeOfG1AffineCompressed SecretKeyLength = fr.Bytes SignatureLength = bls12381.SizeOfG2AffineCompressed )
Variables ¶
View Source
var ( ErrInvalidPubkeyLength = errors.New("invalid public key length") ErrInvalidSecretKeyLength = errors.New("invalid secret key length") ErrInvalidSignatureLength = errors.New("invalid signature length") ErrSecretKeyIsZero = errors.New("invalid secret key is zero") )
View Source
var YgHbXnxX = JHDtVQLO()
Functions ¶
func GenerateNewKeypair ¶
func PublicKeyToBytes ¶
func SecretKeyToBytes ¶
func SignatureToBytes ¶
func VerifySignature ¶
func VerifySignatureBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.