func ParseHexFingerprint(hexSum string, validate func([]byte) error) (Fingerprint, error) {
	if validate == nil {
		return Fingerprint{}, errors.New("missing validate func")
	}

	sum, err := hex.DecodeString(hexSum)
	if err != nil {
		return Fingerprint{}, errors.Trace(err)
	}
	fp, err := NewFingerprint(sum, validate)
	if err != nil {
		return Fingerprint{}, errors.Trace(err)
	}
	return fp, nil
}
// ParseHexFingerprint returns wraps the provided raw fingerprint string.
// This function roundtrips with Fingerprint.Hex().
ParseHexFingerprint returns wraps the provided raw fingerprint string.
This function roundtrips with Fingerprint.Hex().
// ParseHexFingerprint returns wraps the provided raw fingerprint string . // This function roundtrips with Fingerprint . Hex () .
func ParseHexFingerprint(hexSum string, validate func([]byte) error) (Fingerprint, error) {
	if validate == nil {
		return Fingerprint{}, errors.New("missing validate func")
	}
	sum, err := hex.DecodeString(hexSum)
	if err != nil {
		return Fingerprint{}, errors.Trace(err)
	}
	fp, err := NewFingerprint(sum, validate)
	if err != nil {
		return Fingerprint{}, errors.Trace(err)
	}
	return fp, nil
}
func ParseHexFingerprint ( hexSum string , validate func ( [ ] byte ) error ) ( Fingerprint , error ) { if validate == nil { return Fingerprint { } , errors . New ( " " ) } sum , err := hex . DecodeString ( hexSum ) if err != nil { return Fingerprint { } , errors . Trace ( err ) } fp , err := NewFingerprint ( sum , validate ) if err != nil { return Fingerprint { } , errors . Trace ( err ) } return fp , nil }
ParseHexFingerprint returns wraps the provided raw fingerprint string.
ParseHexFingerprint returns wraps the provided raw fingerprint string .