Documentation ¶
Index ¶
- func CalCoinBase(net string, height uint64) uint64
- func CalConsumption(amount uint64, proportion uint64) uint64
- func CalCountByTimes(coinbase *float64, times *uint64, coefficient float64) float64
- func CheckAddress(net string, address string) bool
- func CheckShorthand(shorthand string) error
- func CheckTokenAddress(net string, address string) bool
- func Entropy() (string, error)
- func GenerateAddress(net string, pubKey string) (string, error)
- func GenerateP2PID(key *secp256k1.PrivateKey) (peer.ID, error)
- func GenerateTokenAddress(net string, address string, shorthand string) (string, error)
- func Mnemonic(entropyStr string) (string, error)
- func MnemonicToEc(mnemonic string) (*secp256k1.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalCoinBase ¶
func CalConsumption ¶
func CalCountByTimes ¶
func CheckAddress ¶
func CheckShorthand ¶
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 GenerateP2PID ¶
func GenerateP2PID(key *secp256k1.PrivateKey) (peer.ID, error)
func GenerateTokenAddress ¶
func MnemonicToEc ¶
func MnemonicToEc(mnemonic string) (*secp256k1.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.