kit

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: ISC Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalCoinBase

func CalCoinBase(net string, height uint64) uint64

func CalConsumption

func CalConsumption(amount uint64, proportion uint64) uint64

func CalCountByTimes

func CalCountByTimes(coinbase *float64, times *uint64, coefficient float64) float64

func CheckAddress

func CheckAddress(net string, address string) bool

func CheckShorthand

func CheckShorthand(shorthand string) error

Check the secondary account name, it must be letters, all uppercase or all lowercase, no more than 10 characters and no less than 2.

func CheckTokenAddress

func CheckTokenAddress(net string, address string) bool

func Entropy

func Entropy() (string, error)

func GenerateAddress

func GenerateAddress(net string, pubKey string) (string, error)

func GenerateP2PID

func GenerateP2PID(key *secp256k1.PrivateKey) (peer.ID, error)

func GenerateTokenAddress

func GenerateTokenAddress(net string, address string, shorthand string) (string, error)

func Mnemonic

func Mnemonic(entropyStr string) (string, error)

func MnemonicToEc

func MnemonicToEc(mnemonic string) (*secp256k1.PrivateKey, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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