hashalg

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package hashalg

@author: xwc1125

Package hashalg

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RlpHash

func RlpHash(x interface{}) (h types.Hash, err error)

RlpHash keccak256Hash

func RootHash

func RootHash(list DerivableList) types.Hash

RootHash get list root

func Sha256

func Sha256(data []byte) []byte

Sha256 sha256

Types

type DerivableList

type DerivableList interface {
	Len() int
	Key(i int) []byte
	Item(i int) []byte
}

DerivableList derivableList

Directories

Path Synopsis
Package blake2b implements the BLAKE2b hash algorithm defined by RFC 7693 and the extendable output function (XOF) BLAKE2Xb.
Package blake2b implements the BLAKE2b hash algorithm defined by RFC 7693 and the extendable output function (XOF) BLAKE2Xb.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.

Jump to

Keyboard shortcuts

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