var ErrEd25519Verification … type SigningMethodEd25519 … var SigningMethodEdDSA … func init() { … } func (m *SigningMethodEd25519) Alg() string { … } // Verify implements token verification for the SigningMethod. // For this verify method, key must be an ed25519.PublicKey func (m *SigningMethodEd25519) Verify(signingString, signature string, key interface{ … } // Sign implements token signing for the SigningMethod. // For this signing method, key must be an ed25519.PrivateKey func (m *SigningMethodEd25519) Sign(signingString string, key interface{ … }