VMHash computes the hash of the "function" f applied to the byte string x.
(f string, x []byte)
| 84 | |
| 85 | // VMHash computes the hash of the "function" f applied to the byte string x. |
| 86 | func VMHash(f string, x []byte) (hash [32]byte) { |
| 87 | sha3.CShakeSum128(hash[:], x, nil, []byte("ChainVM."+f)) |
| 88 | return hash |
| 89 | } |