Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateNewKeypair() (*SecretKey, *PublicKey, error)
- func RelayBLSPubKey(blsPubKey PublicKey) (ret phase0.BLSPubKey, err error)
- func VerifySignature(sig *Signature, pk *PublicKey, msg []byte) bool
- func VerifySignatureBytes(msg, sigBytes, pkBytes []byte) (bool, error)
- type PublicKey
- type SecretKey
- type Signature
Constants ¶
View Source
const ( BLSPublicKeyLength int = 48 BLSSecretKeyLength int = 32 BLSSignatureLength int = 96 )
Variables ¶
View Source
var ( ErrDeserializeSecretKey = errors.New("could not deserialize secret key from bytes") ErrInvalidPubkey = errors.New("invalid pubkey") ErrInvalidPubkeyLength = errors.New("invalid pubkey length") ErrInvalidSecretKeyLength = errors.New("invalid secret key length") ErrInvalidSignature = errors.New("invalid signature") ErrInvalidSignatureLength = errors.New("invalid signature length") ErrUncompressPubkey = errors.New("could not uncompress public key from bytes") ErrUncompressSignature = errors.New("could not uncompress signature from bytes") )
Functions ¶
func GenerateNewKeypair ¶
func VerifySignatureBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.