Documentation ¶
Index ¶
- func Bit2Byte(bits []uint) []byte
- func Byte2Bit(data []byte) []uint
- func ChunkStringToByte(s string) []byte
- func CreateRawTx(actionTy int32, tokenId uint64, amount string, ethAddress string, ...) ([]byte, error)
- func GetContractToTreeMsg(payload *zt.ZkContractToTree) *zt.ZkMsg
- func GetDepositMsg(payload *zt.ZkDeposit) *zt.ZkMsg
- func GetForceExitMsg(payload *zt.ZkForceExit) *zt.ZkMsg
- func GetFullExitMsg(payload *zt.ZkFullExit) *zt.ZkMsg
- func GetMsgHash(msg *zt.ZkMsg) []byte
- func GetSetPubKeyMsg(payload *zt.ZkSetPubKey) *zt.ZkMsg
- func GetTransferMsg(payload *zt.ZkTransfer) *zt.ZkMsg
- func GetTransferToNewMsg(payload *zt.ZkTransferToNew) *zt.ZkMsg
- func GetTreeToContractMsg(payload *zt.ZkTreeToContract) *zt.ZkMsg
- func GetWithdrawMsg(payload *zt.ZkWithdraw) *zt.ZkMsg
- func New() wcom.WalletBizPolicy
- func SignTx(msg *zt.ZkMsg, privateKey eddsa.PrivateKey) (*zt.ZkSignature, error)
- func StringToByte(s string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChunkStringToByte ¶
func CreateRawTx ¶
func GetContractToTreeMsg ¶
func GetContractToTreeMsg(payload *zt.ZkContractToTree) *zt.ZkMsg
func GetForceExitMsg ¶
func GetForceExitMsg(payload *zt.ZkForceExit) *zt.ZkMsg
func GetFullExitMsg ¶
func GetFullExitMsg(payload *zt.ZkFullExit) *zt.ZkMsg
func GetMsgHash ¶
func GetSetPubKeyMsg ¶
func GetSetPubKeyMsg(payload *zt.ZkSetPubKey) *zt.ZkMsg
func GetTransferMsg ¶
func GetTransferMsg(payload *zt.ZkTransfer) *zt.ZkMsg
func GetTransferToNewMsg ¶
func GetTransferToNewMsg(payload *zt.ZkTransferToNew) *zt.ZkMsg
func GetTreeToContractMsg ¶
func GetTreeToContractMsg(payload *zt.ZkTreeToContract) *zt.ZkMsg
func GetWithdrawMsg ¶
func GetWithdrawMsg(payload *zt.ZkWithdraw) *zt.ZkMsg
func SignTx ¶
func SignTx(msg *zt.ZkMsg, privateKey eddsa.PrivateKey) (*zt.ZkSignature, error)
func StringToByte ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.