miniosha256

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Overview

This package has no purpose except to perform registration of multihashes.

It is meant to be used as a side-effecting import, e.g.

import (
	_ "github.com/multiformats/go-multihash/register/miniosha256"
)

This package registers alternative implementations for sha2-256, using the github.com/minio/sha256-simd library for go1.20 and bellow. Go 1.21 and later fallback to github.com/multiformats/go-multihash/register/sha256.

Note if you are using go1.21 or above this package is deprecated in favor of github.com/multiformats/go-multihash/register/sha256 because as of go1.21 the go std has a SHANI implementation that is just as fast. See https://go.dev/issue/50543. This will be removed shortly after go1.22 is released.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL