mirror of
https://github.com/luxfi/crypto.git
synced 2026-07-27 01:54:50 +00:00
12 lines
400 B
Go
12 lines
400 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package consistent
|
|
|
|
// Hashable is an interface to be implemented by structs that need to be sharded via consistent hashing.
|
|
type Hashable interface {
|
|
// ConsistentHashKey is the key used to shard the blob.
|
|
// This should be constant for a given blob.
|
|
ConsistentHashKey() []byte
|
|
}
|