func hasher(data []byte) func([]byte) ([]byte, error) {
	return func(span []byte) ([]byte, error) {
		hasher := bmtpool.Get()
		defer bmtpool.Put(hasher)

		hasher.SetHeader(span)
		if _, err := hasher.Write(data); err != nil {
			return nil, err
		}
		return hasher.Hash(nil)
	}
}
// hasher is a helper function to hash a given data based on the given span.
hasher is a helper function to hash a given data based on the given span.
// hasher is a helper function to hash a given data based on the given span .
func hasher(data []byte) func([]byte) ([]byte, error) {
	return func(span []byte) ([]byte, error) {
		hasher := bmtpool.Get()
		defer bmtpool.Put(hasher)
		hasher.SetHeader(span)
		if _, err := hasher.Write(data); err != nil {
			return nil, err
		}
		return hasher.Hash(nil)
	}
}
func hasher ( data [ ] byte ) func ( [ ] byte ) ( [ ] byte , error ) { return func ( span [ ] byte ) ( [ ] byte , error ) { hasher := bmtpool . Get ( ) defer bmtpool . Put ( hasher ) hasher . SetHeader ( span ) if _ , err := hasher . Write ( data ) ; err != nil { return nil , err } return hasher . Hash ( nil ) } }
hasher is a helper function to hash a given data based on the given span.
hasher is a helper function to hash a given data based on the given span .