sdkdemo

package
v0.0.0-...-a826b38 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddrPrefix = "CONCH"

AddrPrefix ...

Functions

func CheckAddressValid

func CheckAddressValid(addr string) bool

CheckAddressValid address is valid or not

Types

type Account

type Account struct {
	Privkey string
	Address string
}

Account 账户

func NewAccount

func NewAccount() *Account

NewAccount new

func (*Account) GenerateAccout

func (acc *Account) GenerateAccout() *Account

GenerateAccout create account

func (*Account) LoadPrivKey

func (acc *Account) LoadPrivKey(prikey string) ([]byte, error)

LoadPrivKey from string to privkey

func (*Account) PublicKeyToAddress

func (acc *Account) PublicKeyToAddress(pubkey string) (string, error)

PublicKeyToAddress pub to address

Jump to

Keyboard shortcuts

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