hash

package
v0.0.0-...-b9e1d45 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: LGPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoHash

type CryptoHash [sha256.Size]byte

CryptoHash is a wrapper for SHA-256 digest byte array. Note that nearcore also defines MerkleHash as an alias, but it's omitted from this project.

func MustCryptoHashFromBase58

func MustCryptoHashFromBase58(blob string) CryptoHash

func NewCryptoHash

func NewCryptoHash(data []byte) CryptoHash

func NewCryptoHashFromBase58

func NewCryptoHashFromBase58(blob string) (ch CryptoHash, err error)

func (CryptoHash) MarshalJSON

func (c CryptoHash) MarshalJSON() ([]byte, error)

func (CryptoHash) String

func (c CryptoHash) String() string

func (*CryptoHash) UnmarshalJSON

func (c *CryptoHash) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

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