crypto

package
v0.0.0-...-5ed304f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blake2b256

func Blake2b256(data []byte) []byte

func Blake2b256MAC

func Blake2b256MAC(data, key []byte) ([]byte, error)

func Blake2b256Personal

func Blake2b256Personal(data, personal []byte) ([]byte, error)

func EthashSeedHash

func EthashSeedHash(height, epochLength uint64) []byte

func HmacSha256

func HmacSha256(key, data string) []byte

func HmacSha512

func HmacSha512(key, data string) []byte

func Keccak256

func Keccak256(b []byte) []byte

func ObscureHex

func ObscureHex(input string) ([]byte, error)

func ReverseBytes

func ReverseBytes(a []byte) []byte

func Ripemd160

func Ripemd160(b []byte) []byte

func SerializeBlockHeight

func SerializeBlockHeight(blockHeight uint64) ([]byte, []byte, error)

func Sha256

func Sha256(b []byte) []byte

func Sha256d

func Sha256d(b []byte) []byte

func Sha512

func Sha512(b []byte) []byte

Types

This section is empty.

Directories

Path Synopsis
tx

Jump to

Keyboard shortcuts

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