Signsource
func Sign(priv *PrivateKey, message []byte) []bytefunc Sign(priv *PrivateKey, message []byte) []bytefunc SignCtx(priv *PrivateKey, message []byte, context string) ([]byte, error)func SignPH(priv *PrivateKey, message []byte, context string) ([]byte, error)func Verify(pub *PublicKey, message, sig []byte) errorfunc VerifyCtx(pub *PublicKey, message []byte, sig []byte, context string) errorfunc VerifyPH(pub *PublicKey, message []byte, sig []byte, context string) errortype PrivateKey struct {
// contains filtered or unexported fields
}func GenerateKey() (*PrivateKey, error)GenerateKey generates a new Ed25519 private key pair.
func NewPrivateKey(priv []byte) (*PrivateKey, error)func NewPrivateKeyFromSeed(seed []byte) (*PrivateKey, error)type PublicKey struct {
// contains filtered or unexported fields
}func NewPublicKey(pub []byte) (*PublicKey, error)