Versions in this module Expand all Collapse all v0 v0.0.4 Aug 2, 2023 v0.0.3 Aug 1, 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") + var TagTapBranch = []byte("TapBranch") + var TagTapLeaf = []byte("TapLeaf") + var TagTapSighash = []byte("TapSighash") + var TagTapTweak = []byte("TapTweak") + 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) UnmarshalJSON(input []byte) error + func (hash Hash) MarshalJSON() ([]byte, error) + func (hash Hash) String() string