Documentation ¶
Index ¶
- func GenerateKeyPair() ([]byte, []byte)
- func GeneratePubKey(seckey []byte) ([]byte, error)
- func RecoverPubkey(msg []byte, sig []byte) ([]byte, error)
- func Sign(msg []byte, seckey []byte) ([]byte, error)
- func Stop()
- func VerifyPubkeyValidity(pubkey []byte) error
- func VerifySeckeyValidity(seckey []byte) error
- func VerifySignature(msg []byte, sig []byte, pubkey1 []byte) error
- func VerifySignatureValidity(sig []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶ added in v0.8.4
func GeneratePubKey ¶ added in v0.8.4
func RecoverPubkey ¶
recovers the public key from the signature recovery of pubkey means correct signature
func VerifyPubkeyValidity ¶ added in v0.8.4
func VerifySeckeyValidity ¶ added in v0.8.4
func VerifySignature ¶
for compressed signatures, does not need pubkey
func VerifySignatureValidity ¶ added in v0.8.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.