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

	sum, err := base64.StdEncoding.DecodeString(b64Sum)
	if err != nil {
		return Fingerprint{}, errors.Trace(err)
	}
	fp, err := NewFingerprint(sum, validate)
	if err != nil {
		return Fingerprint{}, errors.Trace(err)
	}
	return fp, nil
}
// ParseBase64Fingerprint returns wraps the provided raw fingerprint string.
// This function roundtrips with Fingerprint.Base64().
ParseBase64Fingerprint returns wraps the provided raw fingerprint string.
This function roundtrips with Fingerprint.Base64().
// ParseBase64Fingerprint returns wraps the provided raw fingerprint string . // This function roundtrips with Fingerprint . Base64 () .
func ParseBase64Fingerprint(b64Sum string, validate func([]byte) error) (Fingerprint, error) {
	if validate == nil {
		return Fingerprint{}, errors.New("missing validate func")
	}
	sum, err := base64.StdEncoding.DecodeString(b64Sum)
	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 ParseBase64Fingerprint ( b64Sum string , validate func ( [ ] byte ) error ) ( Fingerprint , error ) { if validate == nil { return Fingerprint { } , errors . New ( " " ) } sum , err := base64 . StdEncoding . DecodeString ( b64Sum ) if err != nil { return Fingerprint { } , errors . Trace ( err ) } fp , err := NewFingerprint ( sum , validate ) if err != nil { return Fingerprint { } , errors . Trace ( err ) } return fp , nil }
ParseBase64Fingerprint returns wraps the provided raw fingerprint string.
ParseBase64Fingerprint returns wraps the provided raw fingerprint string .