Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateNewKeypair() (*SecretKey, *PublicKey, 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 ¶
Functions ¶
func GenerateNewKeypair ¶
func PublicKeyToBytes ¶ added in v1.3.0
func SecretKeyToBytes ¶ added in v1.3.0
func SignatureToBytes ¶ added in v1.3.0
func VerifySignature ¶
func VerifySignatureBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.