# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
CalcBlockConfirmationRisk calculates block revert rate.
Format Json into string with orderd by field names.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Has0xPrefix returns true if input starts with '0x' or '0X'.
HexStringToBytes converts hex string to bytes.
IsNil checks if interface object is nil.
Keccak256 hashes hex string by keccak256 and returns it's hash value.
PanicIfErr panic and reports error message.
PanicIfErrf panic and reports error message with args.
PrettyJSON json marshal value and pretty with indent.
PrivateKeyToPublicKey calculates public key from private key.
PublicKeyToCommonAddress generate address from public key
Account address in conflux starts with '0x1'.
ToRpcError converts a error to JsonError.