crypto

package
v0.0.0-...-599e13e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Keccak256

func Keccak256(data ...[]byte) (hash []byte)

Keccak256 returns the Keccak256 hash of the input data.

Its implementation is similar to crypto.Keccak256, but it reuses the crypto.KeccakState to reduce the number of allocations.

func Keccak256Hash

func Keccak256Hash(data ...[]byte) (hash common.Hash)

Keccak256Hash returns the Keccak256 hash of the input data as common.Hash.

Its implementation is similar to crypto.Keccak256Hash, but it reuses the crypto.KeccakState to reduce the number of allocations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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