Tychosoft.Hashing
0.0.1
dotnet add package Tychosoft.Hashing --version 0.0.1
NuGet\Install-Package Tychosoft.Hashing -Version 0.0.1
<PackageReference Include="Tychosoft.Hashing" Version="0.0.1" />
<PackageVersion Include="Tychosoft.Hashing" Version="0.0.1" />
<PackageReference Include="Tychosoft.Hashing" />
paket add Tychosoft.Hashing --version 0.0.1
#r "nuget: Tychosoft.Hashing, 0.0.1"
#:package Tychosoft.Hashing@0.0.1
#addin nuget:?package=Tychosoft.Hashing&version=0.0.1
#tool nuget:?package=Tychosoft.Hashing&version=0.0.1
About Tychosoft Sharper Hash
The purpose of this package is to introduce consistent hashing in C# that is consistent with my other implementations in use in other languages. Consistent hashing is foundational to distributed computing and specialized data practices such as node assignment, table sharding, etc.
Consistent hashing also has to be implimented consistently regardless of system platform (endianness) or language. You do not want a service that runs on a different endian architecture or written in another language to select nodes differently.
I focus on two things in this library; a generic consistent hasher for reducing hash digests to 64 bit values using the top 8 bytes of a hash digest in big endian (network) byte order, and a hash ring which is often used to distribute services to keys. The latter has to also have identical behavior, especially around collissions in vnodes. This implimentation matches the C++ reference implimentation in ModernCLI, and my go services implimentation at https://gitlab.com/tychosoft/service
Dependencies
Net 8 or later is required since I use sha3. Otherwise this has no direct external dependencies. It is only implimentation bound, to match other languages.
Distributions
The primary means to distribute shaperhash is as a nuget package and the latest release should be made available thru the nuget packaging site. A stand-alone detached source tarball may also be produced from a repository checkout. It can also be possible to vendor these extensions into another project using git submodules.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.0.1 | 98 | 7/4/2025 |