Documentation
¶
Index ¶
- func CalcBlockConfirmationRisk(rawConfirmationRisk *big.Int) *big.Float
- func Has0xPrefix(input string) bool
- func HexStringToBytes(hexStr string) ([]byte, error)
- func IsNil(i interface{}) bool
- func Keccak256(hexStr string) (string, error)
- func PrivateKeyToPublicKey(privateKey string) string
- func PublicKeyToAddress(publicKey string) types.Address
- func ToCfxGeneralAddress(address common.Address) types.Address
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcBlockConfirmationRisk ¶ added in v0.1.1
CalcBlockConfirmationRisk calculates block revert rate
func Has0xPrefix ¶ added in v0.1.1
Has0xPrefix returns true if input starts with '0x' or '0X'
func HexStringToBytes ¶ added in v0.1.1
HexStringToBytes converts hex string to bytes
func IsNil ¶ added in v0.1.1
func IsNil(i interface{}) bool
IsNil sepecialy checks if interface object is nil
func PrivateKeyToPublicKey ¶
PrivateKeyToPublicKey calculates public key from private key
func PublicKeyToAddress ¶
PublicKeyToAddress generate address from public key
Account address in conflux starts with '0x1'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.