Documentation ¶
Index ¶
- func CalcGasCost(gasLimit uint64, gasPrice *big.Int) *big.Int
- func CreateChainHash(str string) (*chainhash.Hash, error)
- func EnsureCorrectPrefix(str string) string
- func ExtractChaincode(key *hdkeychain.ExtendedKey) []byte
- func IsValidAddress(iaddress interface{}) bool
- func IsZeroAddress(iaddress interface{}) bool
- func SigRSV(isig interface{}) ([32]byte, [32]byte, uint8)
- func ToDecimal(ivalue interface{}, decimals int) decimal.Decimal
- func ToWei(iamount interface{}, decimals int) *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcGasCost ¶
CalcGasCost calculate gas cost given gas limit (units) and gas price (wei)
func CreateChainHash ¶
CreateChainHash is a wrapper to the chainhash.new hash function this allows for a cleaner way to check if we are not in any way letting the 0x prefix hinder the chainhash generation
func EnsureCorrectPrefix ¶
EnsureCorrectPrefix ensures we have 0x prefix
func ExtractChaincode ¶
func ExtractChaincode(key *hdkeychain.ExtendedKey) []byte
ExtractChaincode used to get the chaincode out of extended key
func IsValidAddress ¶
func IsValidAddress(iaddress interface{}) bool
IsValidAddress validate hex address
func IsZeroAddress ¶
func IsZeroAddress(iaddress interface{}) bool
IsZeroAddress validate if it's a 0 address
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.