// IsValid returns the validity of the identity of a commit author.
IsValid returns the validity of the identity of a commit author.
// IsValid returns the validity of the identity of a commit author .
func IsValid(owner, name, id string) (bool, error) {
	i, err := getIdentity(owner, name, id)
	if err != nil {
		return false, err
	}
	if i == nil || i.Verified == false {
		return false, nil
	}
	v, err := verify(i.Signature, i.Payload)
	if err != nil {
		return false, err
	}
	if !v {
		return false, nil
	}
	return true, nil
}
func IsValid ( owner , name , id string ) ( bool , error ) { i , err := getIdentity ( owner , name , id ) if err != nil { return false , err } if i == nil || i . Verified == false { return false , nil } v , err := verify ( i . Signature , i . Payload ) if err != nil { return false , err } if ! v { return false , nil } return true , nil }
IsValid returns the validity of the identity of a commit author.
IsValid returns the validity of the identity of a commit author .