account

package
v1.0.3-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input string) ([]byte, error)

func Encode

func Encode(b []byte) string

func IsBase58Str

func IsBase58Str(s string) bool

func IsHex

func IsHex(s string) bool

Types

type Address

type Address struct {
	Bytes    []byte
	Base58   string
	Protocol string
	Version  string
	Sum      string
	IsHex    bool
}

func NewAddressByBase58

func NewAddressByBase58(addr string) (ret Address, e error)

func NewAddressByBytes

func NewAddressByBytes(addr []byte) (ret Address)

func NewAddressByHex

func NewAddressByHex(addr string) (ret Address, e error)

func NewAddressByString

func NewAddressByString(addr string) (ret Address, e error)

func (*Address) MatchProtocol

func (self *Address) MatchProtocol(ver string) bool

func (*Address) SetProtocol

func (self *Address) SetProtocol(p string) *Address

func (*Address) ToBase58

func (self *Address) ToBase58() (ret string)

func (*Address) ToCode

func (self *Address) ToCode() (ret string)

func (*Address) ToHex

func (self *Address) ToHex() (ret string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL