Versions in this module Expand all Collapse all v0 v0.0.3 Feb 7, 2021 Changes in this version + const HashSize + const MaxHashStringSize + var ErrHashStrSize = fmt.Errorf("max hash string length is %v bytes", MaxHashStringSize) + var ZeroHash = Hash([32]byte{ ... }) + func CalcHash(buf []byte, hasher h.Hash) []byte + func Decode(dst *Hash, src string) error + func DoubleHashB(b []byte) []byte + func DoubleHashB_pool(b []byte) []byte + func Hash160(buf []byte) []byte + func Hash512B(b []byte) []byte + func HashB(b []byte) []byte + func HashB_pool(b []byte) []byte + type Hash [HashSize]byte + func DoubleHashH(b []byte) Hash + func DoubleHashH_pool(b []byte) Hash + func HashBitcoinpayKeccak256(b []byte) Hash + func HashH(b []byte) Hash + func HashH_pool(b []byte) Hash + func HashX16rv3(b []byte) Hash + func HashX8r16(b []byte) Hash + func MustBytesToDecodeHash(b []byte) Hash + func MustBytesToHash(b []byte) Hash + func MustHexToDecodedHash(i string) Hash + func MustHexToHash(i string) Hash + func NewHash(newHash []byte) (*Hash, error) + func NewHashFromStr(hash string) (*Hash, error) + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Bytes() []byte + func (hash *Hash) CloneBytes() []byte + func (hash *Hash) IsEqual(target *Hash) bool + func (hash *Hash) SetBytes(newHash []byte) error + func (hash Hash) String() string + type Hash256 [32]byte + type Hash512 [64]byte + type HashType byte + const Blake2b_256 + const Blake2b_512 + const Keccak_256 + const Ripemd160 + const SHA256 + const SHA3_256 + const SHA3_512 + type Hasher interface + func GetHasher(ht HashType) Hasher