tendermint: github.com/tendermint/tendermint/crypto/tmhash Index | Files

package tmhash

import "github.com/tendermint/tendermint/crypto/tmhash"


Package Files



const (
    Size      = sha256.Size
    BlockSize = sha256.BlockSize
const (
    TruncatedSize = 20

func New Uses

func New() hash.Hash

New returns a new hash.Hash.

func NewTruncated Uses

func NewTruncated() hash.Hash

NewTruncated returns a new hash.Hash.

func Sum Uses

func Sum(bz []byte) []byte

Sum returns the SHA256 of the bz.

func SumTruncated Uses

func SumTruncated(bz []byte) []byte

SumTruncated returns the first 20 bytes of SHA256 of the bz.

Package tmhash imports 2 packages (graph) and is imported by 61 packages. Updated 2018-11-06. Refresh now. Tools for package owners.