Documentation ¶
Index ¶
- Constants
- func Decode(input string) ([]byte, error)
- func DecodeAddr(input []byte) (bytes []byte, e error)
- func DecodeHex(hex string) (bytes []byte, err error)
- func IsBase58Str(s string) bool
- func IsHex(s string) bool
- func ValidPk(addr []byte) error
- func ValidPkr(addr []byte) error
- type MixBase58Adrress
- type PKAddress
- type Seed
- type TKAddress
Constants ¶
View Source
const ( // AccountAddressLength is the expected length of the adddress AccountAddressLength = 64 SeedLength = 32 )
Lengths of hashes and Accountes in bytes.
Variables ¶
This section is empty.
Functions ¶
func DecodeAddr ¶
func IsBase58Str ¶
Types ¶
type MixBase58Adrress ¶
type MixBase58Adrress []byte
func (MixBase58Adrress) IsPkr ¶
func (b MixBase58Adrress) IsPkr() bool
func (MixBase58Adrress) MarshalText ¶
func (b MixBase58Adrress) MarshalText() ([]byte, error)
func (MixBase58Adrress) ToPkr ¶
func (b MixBase58Adrress) ToPkr() c_type.PKr
func (*MixBase58Adrress) UnmarshalText ¶
func (b *MixBase58Adrress) UnmarshalText(input []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
type PKAddress ¶
type PKAddress [64]byte
func NewPKAddres ¶
func StringToPk ¶
func (PKAddress) MarshalText ¶
func (*PKAddress) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type TKAddress ¶
type TKAddress [64]byte
func Base58ToTk ¶
func (TKAddress) MarshalText ¶
func (*TKAddress) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.