blake2s

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blake2sArray

func Blake2sArray[R, F felt.FeltLike](felts []F) R

Blake2sArray hashes felts of any felt type and returns the hash as felt type R.

Types

type Blake2sDigest added in v0.15.11

type Blake2sDigest struct {
	// contains filtered or unexported fields
}

Blake2sDigest hashes felts incrementally. The zero value is ready to use.

func (*Blake2sDigest) Finish added in v0.15.11

func (d *Blake2sDigest) Finish[R felt.FeltLike]() R

Finish completes the digest and returns it as felt type R.

func (*Blake2sDigest) Update added in v0.15.11

func (d *Blake2sDigest) Update[F felt.FeltLike](elem *F) *Blake2sDigest

Update adds one element of any felt type to the digest.

func (*Blake2sDigest) UpdateArray added in v0.17.1

func (d *Blake2sDigest) UpdateArray[F felt.FeltLike](elems []F) *Blake2sDigest

UpdateArray adds every element of elems to the digest.

Jump to

Keyboard shortcuts

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