github.com/MetalBlockchain/metalgo@v1.11.9/utils/hashing/hasher.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package hashing 5 6 // Hasher is an interface to compute a hash value. 7 type Hasher interface { 8 // Hash takes a string and computes its hash value. 9 // Values must be computed deterministically. 10 Hash([]byte) uint64 11 }