Hash() executes the global hashing algorithm on input bytes
(msg []byte)
| 26 | |
| 27 | // Hash() executes the global hashing algorithm on input bytes |
| 28 | func Hash(msg []byte) []byte { |
| 29 | h := sha256.Sum256(msg) |
| 30 | return h[:] |
| 31 | } |
| 32 | |
| 33 | // ShortHash() executes the global hashing algorithm on input bytes |
| 34 | // and truncates the output to 20 bytes |
no outgoing calls