Versions in this module Expand all Collapse all v0 v0.0.1 Sep 9, 2023 Changes in this version + const HashSize + const MaxHashStringSize + var ErrHashStrSize = fmt.Errorf("max hash string length is %v bytes", MaxHashStringSize) + var TagBIP0340Aux = []byte("BIP0340/aux") + var TagBIP0340Challenge = []byte("BIP0340/challenge") + var TagBIP0340Nonce = []byte("BIP0340/nonce") + func Decode(dst *Hash, src string) error + func DoubleHashB(b []byte) []byte + func HashB(b []byte) []byte + type Hash [HashSize]byte + func DoubleHashH(b []byte) Hash + func HashH(b []byte) Hash + func NewHash(newHash []byte) (*Hash, error) + func NewHashFromStr(hash string) (*Hash, error) + func TaggedHash(tag []byte, msgs ...[]byte) *Hash + func (hash *Hash) CloneBytes() []byte + func (hash *Hash) IsEqual(target *Hash) bool + func (hash *Hash) SetBytes(newHash []byte) error + func (hash Hash) String() string