Tychosoft.Hashing 0.0.1

dotnet add package Tychosoft.Hashing --version 0.0.1
                    
NuGet\Install-Package Tychosoft.Hashing -Version 0.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Tychosoft.Hashing" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tychosoft.Hashing" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Tychosoft.Hashing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Tychosoft.Hashing --version 0.0.1
                    
#r "nuget: Tychosoft.Hashing, 0.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Tychosoft.Hashing@0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Tychosoft.Hashing&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Tychosoft.Hashing&version=0.0.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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