func (s *Shard) Hash(proc *exec.Process, hashOut int32, inputStart int32, inputSize int32) {
	toHash := make([]byte, inputSize)

	s.SafeRead(proc, inputStart, toHash)

	h := chainhash.HashH(toHash)

	s.SafeWrite(proc, hashOut, h[:])
}
// Hash calculates the 32-byte hash of some data.
Hash calculates the 32-byte hash of some data.
// Hash calculates the 32 - byte hash of some data .
func (s *Shard) Hash(proc *exec.Process, hashOut int32, inputStart int32, inputSize int32) {
	toHash := make([]byte, inputSize)
	s.SafeRead(proc, inputStart, toHash)
	h := chainhash.HashH(toHash)
	s.SafeWrite(proc, hashOut, h[:])
}
func ( s * Shard ) Hash ( proc * exec . Process , hashOut int32 , inputStart int32 , inputSize int32 ) { toHash := make ( [ ] byte , inputSize ) s . SafeRead ( proc , inputStart , toHash ) h := chainhash . HashH ( toHash ) s . SafeWrite ( proc , hashOut , h [ : ] ) }
Hash calculates the 32-byte hash of some data.
Hash calculates the 32 - byte hash of some data .