Documentation
¶
Index ¶
- func BurnProof(param string) string
- func CreateAccount(secret string) string
- func ReadBalance(param string) int
- func Shuffle(param string) string
- func Sign(input string) string
- func Some(accounts [][2]core.Point) bool
- func TransferProof(param string) string
- func TxBurn(param string) string
- func TxFund(param string) string
- func TxRegister(param string) string
- func TxSimulateAccounts(param string) string
- func TxTransfer(param string) string
- type APIResponse
- type BurnProofParam
- type ReadBalanceParam
- type ShuffleParam
- type SignParam
- type TransferProofParam
- type TxBurnParam
- type TxFundParam
- type TxRegisterParam
- type TxSimulateAccountsParam
- type TxTransferParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccount ¶
* input : a big number hex string or empty string. * output: {'x':”, 'y':{'gx':”, 'gy':”}}
func ReadBalance ¶
func TransferProof ¶
func TxRegister ¶ added in v0.0.2
func TxSimulateAccounts ¶ added in v0.0.5
func TxTransfer ¶ added in v0.0.2
Types ¶
type APIResponse ¶ added in v0.0.2
type APIResponse struct {
Data string `json:"data"`
}
type BurnProofParam ¶
type ReadBalanceParam ¶
type ReadBalanceParam struct { CL types.Point `json:"CL"` CR types.Point `json:"CR"` X string `json:"x"` }
* input: param is json string, {”}
type ShuffleParam ¶
type ShuffleParam struct { Self types.Point `json:"self"` Friend types.Point `json:"friend"` Decoys []types.Point `json:"decoys"` }
- input: {'self':{'gx':”, 'gy':”}, 'friend':{'gx':”, 'gy':”}, 'decoys':[ {'gx':”, 'gy':”}, {'gx':”, 'gy':”}]} output: { 'y': [ {'gx':”, 'gy':”}, {'gx':”, 'gy':”},....], 'index':[10, 20]}
type SignParam ¶
type SignParam struct { ZSCAddr string `json:"address"` Accounter core.Account `json:"account"` Random string `json:"random"` }
- input: zscAddress : zsc contract address string, account : account json string. {'x':”, 'y': {'gx':”, 'gy':”}}
- output: json string, content is big number hex string. {'c':”, 's':”}
type TransferProofParam ¶
type TxBurnParam ¶ added in v0.0.2
type TxFundParam ¶ added in v0.0.2
type TxRegisterParam ¶ added in v0.0.2
type TxSimulateAccountsParam ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.