Versions in this module Expand all Collapse all v1 v1.2.10 Dec 12, 2025 Changes in this version + const AddrLen + const HashLen + var ErrInvalidHashLen = errors.New("invalid hash length") + func Checksum(bytes []byte, length int) []byte + func ComputeHash160(buf []byte) []byte + func ComputeHash256(buf []byte) []byte + func PubkeyBytesToAddress(key []byte) []byte + type Hash160 = [ripemd160.Size]byte + func ComputeHash160Array(buf []byte) Hash160 + func ToHash160(bytes []byte) (Hash160, error) + type Hash256 = [HashLen]byte + func ComputeHash256Array(buf []byte) Hash256 + func ToHash256(bytes []byte) (Hash256, error) + type Hasher interface + Hash func([]byte) uint64 + type MockHasher struct + func NewMockHasher(ctrl *gomock.Controller) *MockHasher + func (m *MockHasher) EXPECT() *MockHasherMockRecorder + func (m *MockHasher) Hash(arg0 []byte) uint64 + type MockHasherMockRecorder struct + func (mr *MockHasherMockRecorder) Hash(arg0 any) *gomock.Call