Versions in this module Expand all Collapse all v1 v1.0.2 Aug 16, 2022 v1.0.1 Aug 8, 2022 Changes in this version + const FOOLPROOFPREFIX + const HEXADDRLEN + const MaximumPrecision + const PREFIXLEN + const SHA256CHKSUM + const StorageFactor + const UINT160SIZE + const UINT256SIZE + var MaxUint256 = Uint256 + func AbsUint(n1 uint, n2 uint) uint + func BytesToInt(b []byte) []int + func BytesToInt16(b []byte) int16 + func ClearBytes(b []byte) + func CompareHeight(blockHeight uint32, heights []uint32) bool + func FileExisted(filename string) bool + func GetUint16Array(source []byte) ([]uint16, error) + func IntToBytes(n int) []byte + func IsValidHexAddr(s []byte) bool + func SliceRemove(slice []uint32, h uint32) []uint32 + func ToByteArray(source []uint16) []byte + func U256Equal(a, b Uint256) bool + type Cache interface + Add func(key []byte, value interface{}) error + Delete func(key []byte) error + Get func(key []byte) (value interface{}, ok bool) + Set func(key []byte, value interface{}) error + SetWithExpiration func(key []byte, value interface{}, expiration time.Duration) error + type Fixed64 int64 + func StringToFixed64(s string) (Fixed64, error) + func (f *Fixed64) Deserialize(r io.Reader) error + func (f *Fixed64) Serialize(w io.Writer) error + func (f Fixed64) GetData() int64 + func (f Fixed64) String() string + type GoCache struct + func NewGoCache(defaultExpiration, cleanupInterval time.Duration) *GoCache + func (gc *GoCache) Add(key []byte, value interface{}) error + func (gc *GoCache) Delete(key []byte) error + func (gc *GoCache) Get(key []byte) (interface{}, bool) + func (gc *GoCache) Set(key []byte, value interface{}) error + func (gc *GoCache) SetWithExpiration(key []byte, value interface{}, expiration time.Duration) error + type HexStr []byte + func (b HexStr) MarshalJSON() ([]byte, error) + type PriorityQueue struct + func NewPrque() *PriorityQueue + func (p *PriorityQueue) Empty() bool + func (p *PriorityQueue) Len() int + func (p *PriorityQueue) Pop() (interface{}, int64) + func (p *PriorityQueue) Push(v interface{}, priority int64) + func (p *PriorityQueue) UpdatePriority(x interface{}, newPriority int64) + type Uint160 [UINT160SIZE]uint8 + var EmptyUint160 Uint160 + func BigToUint160(b *big.Int) Uint160 + func BytesToUint160(b []byte) Uint160 + func ToCodeHash(code []byte) (Uint160, error) + func ToScriptHash(address string) (Uint160, error) + func Uint160ParseFromBytes(f []byte) (Uint160, error) + func (f *Uint160) Deserialize(r io.Reader) error + func (f *Uint160) ToAddress() (string, error) + func (f Uint160) MarshalJSON() ([]byte, error) + func (u *Uint160) Big() *big.Int + func (u *Uint160) CompareTo(o Uint160) int + func (u *Uint160) Serialize(w io.Writer) (int, error) + func (u *Uint160) SetBytes(b []byte) *Uint160 + func (u *Uint160) ToArray() []byte + func (u *Uint160) ToHexString() string + type Uint256 [UINT256SIZE]uint8 + var EmptyUint256 Uint256 + func Uint256ParseFromBytes(f []byte) (hash Uint256, err error) + func (u *Uint256) CompareTo(o Uint256) int + func (u *Uint256) Deserialize(r io.Reader) error + func (u *Uint256) Serialize(w io.Writer) (int, error) + func (u *Uint256) ToArray() []byte + func (u *Uint256) ToHexString() string + func (u *Uint256) ToString() string