THashH calculates sha256(blake2b-512(b)) and returns the resulting bytes as a Hash.
(b []byte)
| 87 | // THashH calculates sha256(blake2b-512(b)) and returns the resulting bytes as a |
| 88 | // Hash. |
| 89 | func THashH(b []byte) Hash { |
| 90 | first := blake2b.Sum512(b) |
| 91 | return Hash(sha256.Sum256(first[:])) |
| 92 | } |