github.com/status-im/status-go@v1.1.0/protocol/requests/verified_trusted.go (about) 1 package requests 2 3 import ( 4 "errors" 5 6 "github.com/status-im/status-go/eth-node/types" 7 ) 8 9 var ErrVerifiedTrustedInvalidID = errors.New("verified-trusted: invalid id") 10 11 type VerifiedTrusted struct { 12 ID types.HexBytes `json:"id"` 13 } 14 15 func (a *VerifiedTrusted) Validate() error { 16 if len(a.ID) == 0 { 17 return ErrVerifiedTrustedInvalidID 18 } 19 20 return nil 21 }