Documentation ¶
Index ¶
- Constants
- Variables
- func B58Decode(enc []byte) []byte
- func B58Encode(data []byte) []byte
- func BytesMixed(src []byte, lenBits int, buffer *bytes.Buffer) error
- func Decode16Byte(str string) []byte
- func Encode16Byte(byteVal []byte) string
- func Hex2bytes(s string) []byte
- func IsZeroHash(h Hash) bool
- func ReadMixedBytes(buf *bytes.Buffer) ([]byte, error)
- type Address
- func (a *Address) B58() []byte
- func (a *Address) B58String() string
- func (a *Address) Bytes() []byte
- func (a *Address) Checksum() []byte
- func (a *Address) Equals(b Address) bool
- func (a *Address) Hex() string
- func (a *Address) MarshalJSON() ([]byte, error)
- func (a *Address) Payload() []byte
- func (a *Address) PubKeyHash() []byte
- func (a *Address) SetBytes(b []byte)
- func (a *Address) String() string
- func (a *Address) UnmarshalJSON(data []byte) error
- func (a *Address) Version() uint8
- type Hash
Constants ¶
View Source
const (
AddrDefaultVersion = 0
)
Variables ¶
View Source
var (
AddrCheckSumLen = 4
)
Functions ¶
func Decode16Byte ¶
func Encode16Byte ¶
func IsZeroHash ¶
Types ¶
type Address ¶
type Address [addrLen]byte
func B58ToAddress ¶
func Bytes2Address ¶
func Hex2Address ¶
func StrB58ToAddress ¶
func (*Address) MarshalJSON ¶
func (*Address) PubKeyHash ¶
func (*Address) UnmarshalJSON ¶
type Hash ¶
type Hash [hashLen]byte
func Bytes2Hash ¶
func (*Hash) MarshalJSON ¶
func (*Hash) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.