title: How to convert an sha3 hash to an big integer in golang
body: <p>I generated a hash value using sha3 and I need to convert it to a big.Int value. Is it possible ? or is there a method to get the integervalue of the hash ?</p>
  <p>the following code throws an error that cannot convert type hash.Hash to type int64 :</p>
  <pre><code>package main 
  
  import (
  &quot;math/big&quot;
  &quot;golang.org/x/crypto/sha3&quot;
  &quot;fmt&quot;
  
  )
  func main(){
  
    chall := &quot;hello word&quot;
    b := byte[](chall)
    h := sha3.New244()
    h.Write(chall)
    h.Write(b)
    d := make([]byte, 16)
    h.Sum(d)
    val := big.NewInt(int64(h))
    fmt.Println(val)
  
  }
  
  
  </code></pre>