SumTruncated returns the first 20 bytes of SHA256 of the bz.
(bz []byte)
| 60 | |
| 61 | // SumTruncated returns the first 20 bytes of SHA256 of the bz. |
| 62 | func SumTruncated(bz []byte) []byte { |
| 63 | hash := sha256.Sum256(bz) |
| 64 | return hash[:TruncatedSize] |
| 65 | } |
no outgoing calls