mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
The hash package is the canonical implementation. The hashing package now re-exports from hash for backwards compatibility. New code should import github.com/luxfi/crypto/hash directly.
12 lines
327 B
Go
12 lines
327 B
Go
// Copyright (C) 2020-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package hash
|
|
|
|
// Hasher is an interface to compute a hash value.
|
|
type Hasher interface {
|
|
// Hash takes a string and computes its hash value.
|
|
// Values must be computed deterministically.
|
|
Hash([]byte) uint64
|
|
}
|