func NewFromHash(hash string) (*Hash, error) {
	if !hashRegex.MatchString(strings.ToLower(hash)) {
		return nil, errIncorrectHashFormat
	}

	h := Hash(hash)
	return &h, nil
}
// NewFromHash generates a hash address based on the given string hash
NewFromHash generates a hash address based on the given string hash
// NewFromHash generates a hash address based on the given string hash
func NewFromHash(hash string) (*Hash, error) {
	if !hashRegex.MatchString(strings.ToLower(hash)) {
		return nil, errIncorrectHashFormat
	}
	h := Hash(hash)
	return &h, nil
}
func NewFromHash ( hash string ) ( * Hash , error ) { if ! hashRegex . MatchString ( strings . ToLower ( hash ) ) { return nil , errIncorrectHashFormat } h := Hash ( hash ) return & h , nil }
NewFromHash generates a hash address based on the given string hash
NewFromHash generates a hash address based on the given string hash