signature/signature.go
func (s *untrustedSignature) UnmarshalJSON(data []byte) error {
	err := s.strictUnmarshalJSON(data)
	if err != nil {
		if _, ok := err.(jsonFormatError); ok {
			err = InvalidSignatureError{msg: err.Error()}
		}
	}
	return err
}
func (s *untrustedSignature) UnmarshalJSON(data []byte) error {
	err := s.strictUnmarshalJSON(data)
	if err != nil {
		if _, ok := err.(jsonFormatError); ok {
			err = InvalidSignatureError{msg: err.Error()}
		}
	}
	return err
}
func ( s * untrustedSignature ) UnmarshalJSON ( data [ ] byte ) error { err := s . strictUnmarshalJSON ( data ) if err != nil { if _ , ok := err . ( jsonFormatError ) ; ok { err = InvalidSignatureError { msg : err . Error ( ) } } } return err }
// UnmarshalJSON implements the json.Unmarshaler interface
UnmarshalJSON implements the json . Unmarshaler interface