utils

package
v0.0.0-...-a4b5995 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashTypeSha256    = "sha256"
	HashTypeKeccak256 = "keccak"
	HashTypePrehashed = "none"
)

Variables

This section is empty.

Functions

func Hash

func Hash(data []byte, hashType string) ([]byte, error)

func Keccak256

func Keccak256(data []byte) []byte

func Sha256

func Sha256(data []byte) []byte

func ValidateSig

func ValidateSig(msgHash, sig, pub []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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