func (v ECDSAVerifier) Verify(payload []byte, signature []byte, key interface{}) error {
	if key == nil {
		return errors.New(`missing public key while verifying payload`)
	}
	ecdsakey, ok := key.(*ecdsa.PublicKey)
	if !ok {
		return errors.Errorf(`invalid key type %T. *ecdsa.PublicKey is required`, key)
	}

	return v.verify(payload, signature, ecdsakey)
}
// Verify checks whether the signature for a given input and key is correct
Verify checks whether the signature for a given input and key is correct
// Verify checks whether the signature for a given input and key is correct
func (v ECDSAVerifier) Verify(payload []byte, signature []byte, key interface{}) error {
	if key == nil {
		return errors.New(`missing public key while verifying payload`)
	}
	ecdsakey, ok := key.(*ecdsa.PublicKey)
	if !ok {
		return errors.Errorf(`invalid key type %T. *ecdsa.PublicKey is required`, key)
	}
	return v.verify(payload, signature, ecdsakey)
}
func ( v ECDSAVerifier ) Verify ( payload [ ] byte , signature [ ] byte , key interface { } ) error { if key == nil { return errors . New ( `missing public key while verifying payload` ) } ecdsakey , ok := key . ( * ecdsa . PublicKey ) if ! ok { return errors . Errorf ( `invalid key type %T. *ecdsa.PublicKey is required` , key ) } return v . verify ( payload , signature , ecdsakey ) }
Verify checks whether the signature for a given input and key is correct
Verify checks whether the signature for a given input and key is correct