wallet

package
v1.67.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bit2Byte

func Bit2Byte(bits []uint) []byte

func Byte2Bit

func Byte2Bit(data []byte) []uint

func ChunkStringToByte

func ChunkStringToByte(s string) []byte

func CreateRawTx

func CreateRawTx(actionTy int32, tokenId uint64, amount string, ethAddress string, toEthAddress string,
	chain33Addr string, accountId uint64, toAccountId uint64) ([]byte, error)

func GetContractToTreeMsg

func GetContractToTreeMsg(payload *zt.ZkContractToTree) *zt.ZkMsg

func GetDepositMsg

func GetDepositMsg(payload *zt.ZkDeposit) *zt.ZkMsg

func GetForceExitMsg

func GetForceExitMsg(payload *zt.ZkForceExit) *zt.ZkMsg

func GetFullExitMsg

func GetFullExitMsg(payload *zt.ZkFullExit) *zt.ZkMsg

func GetMsgHash

func GetMsgHash(msg *zt.ZkMsg) []byte

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 New

func New() wcom.WalletBizPolicy

New 创建一盒钱包业务策略

func SignTx

func SignTx(msg *zt.ZkMsg, privateKey eddsa.PrivateKey) (*zt.ZkSignature, error)

func StringToByte

func StringToByte(s string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL