Documentation ¶
Index ¶
- Constants
- func BuildRLPDeposit(address, currency common.Address, value, txtype uint64) ([]byte, error)
- func ConvertStringToInt(value string) int
- func DeriveAddress(p string) string
- func FilterZeroX(item string) string
- func GenerateAccount() (string, string, error)
- func LogFormatter()
- func RemoveLeadingZeroX(item string) string
- func SendChChReq(chchRequest ChChRequester, chchClient string, method string, ...) ([]byte, error)
- func SignHash(hashed []byte, privateKeys []string) ([][]byte, error)
- func ValidateHex(x string) error
- type ChChRequester
- type DepositOutput
- type DepositTransaction
- type InputDeposit
- type OutputData
Constants ¶
View Source
const ( EthCurrency = "0x0000000000000000000000000000000000000000" DefaultMetadata = "0x0000000000000000000000000000000000000000000000000000000000000000" MaxInputs = 4 MaxOutputs = 4 )
Variables ¶
This section is empty.
Functions ¶
func BuildRLPDeposit ¶
func ConvertStringToInt ¶
func GenerateAccount ¶
Generate Account - Public and Privatekey
func LogFormatter ¶
func LogFormatter()
Add the full time include timezone into log messages INFO[2019-01-31T16:38:57+07:00]
func RemoveLeadingZeroX ¶
Make strings suitable for hex encoding
func SendChChReq ¶
func SendChChReq( chchRequest ChChRequester, chchClient string, method string, postData interface{}, ) ([]byte, error)
func ValidateHex ¶
ValidateHex verifies that the hexadecimal string is valid
Types ¶
type DepositOutput ¶
type DepositOutput struct { OutputType uint64 OutputData OutputData }
type DepositTransaction ¶
type DepositTransaction struct { OutputType uint UTXOInputs []interface{} UTXOOutputs []interface{} TxData uint MetaData common.Hash }
deposit parent for ALD
type InputDeposit ¶
Click to show internal directories.
Click to hide internal directories.