// Call the HashObject method and turn the result into a hash object. If there is an error,
// all 0 Hash object will be returned
Call the HashObject method and turn the result into a hash object. If there is an error,
all 0 Hash object will be returned
// Call the HashObject method and turn the result into a hash object . If there is an error // all 0 Hash object will be returned
func EncodeHash(v interface{}) Hash {
	bs, err := HashObject(v)
	if err != nil {
		return Hash{}
	}
	return BytesToHash(bs)
}
func EncodeHash ( v interface { } ) Hash { bs , err := HashObject ( v ) if err != nil { return Hash { } } return BytesToHash ( bs ) }
Call the HashObject method and turn the result into a hash object.
Call the HashObject method and turn the result into a hash object .