# Functions
CalcGasCost calculate gas cost given gas limit (units) and gas price (wei).
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.
EnsureCorrectPrefix ensures we have 0x prefix.
ExtractChaincode used to get the chaincode out of extended key.
IsValidAddress validate hex address.
IsZeroAddress validate if it's a 0 address.
SigRSV signatures R S V returned as arrays.
ToDecimal wei to decimals.
ToWei decimals to wei.