Documentation ¶
Index ¶
- func CalcTreeProve(db dbm.KV, exec, symbol, rootHash, leaf string) (*mixTy.CommitTreeProve, error)
- func GetName() string
- func GetPaymentPubKey(db dbm.KV, addr string) (*mixTy.NoteAccountKey, error)
- func Init(name string, cfg *types.Chain33Config, sub []byte)
- func InitExecType()
- func MixTransferInfoVerify(cfg *types.Chain33Config, db dbm.KV, transfer *mixTy.MixTransferAction) ([]*mixTy.TransferInputCircuit, []*mixTy.TransferOutputCircuit, error)
- func NewMixTxTable(kvdb db.KV) *table.Table
- func VerifyCommitValues(inputs []*mixTy.TransferInputCircuit, outputs []*mixTy.TransferOutputCircuit, ...) bool
- type Mix
- func (m *Mix) CheckTx(tx *types.Transaction, index int) error
- func (m *Mix) ExecDelLocal_Authorize(payload *mixTy.MixAuthorizeAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecDelLocal_Config(payload *mixTy.MixConfigAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecDelLocal_Deposit(payload *mixTy.MixDepositAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecDelLocal_Transfer(payload *mixTy.MixTransferAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecDelLocal_Withdraw(payload *mixTy.MixWithdrawAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecLocal_Authorize(payload *mixTy.MixAuthorizeAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecLocal_Config(payload *mixTy.MixConfigAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecLocal_Deposit(payload *mixTy.MixDepositAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecLocal_Transfer(payload *mixTy.MixTransferAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) ExecLocal_Withdraw(payload *mixTy.MixWithdrawAction, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (m *Mix) Exec_Authorize(payload *mixTy.MixAuthorizeAction, tx *types.Transaction, index int) (*types.Receipt, error)
- func (m *Mix) Exec_Config(payload *mixTy.MixConfigAction, tx *types.Transaction, index int) (*types.Receipt, error)
- func (m *Mix) Exec_Deposit(payload *mixTy.MixDepositAction, tx *types.Transaction, index int) (*types.Receipt, error)
- func (m *Mix) Exec_Transfer(payload *mixTy.MixTransferAction, tx *types.Transaction, index int) (*types.Receipt, error)
- func (m *Mix) Exec_Withdraw(payload *mixTy.MixWithdrawAction, tx *types.Transaction, index int) (*types.Receipt, error)
- func (m *Mix) GetDriverName() string
- func (m *Mix) Query_GetLeavesList(in *mixTy.TreeInfoReq) (types.Message, error)
- func (m *Mix) Query_GetRootList(in *mixTy.TreeInfoReq) (types.Message, error)
- func (m *Mix) Query_GetTreePath(in *mixTy.TreeInfoReq) (types.Message, error)
- func (m *Mix) Query_GetTreeStatus(in *mixTy.TreeInfoReq) (types.Message, error)
- func (m *Mix) Query_ListMixTxs(in *mixTy.MixTxListReq) (types.Message, error)
- func (m *Mix) Query_PaymentPubKey(addr *types.ReqString) (types.Message, error)
- func (m *Mix) Query_TokenFeeAddr(req *mixTy.TokenTxFeeAddrReq) (types.Message, error)
- func (m *Mix) Query_VerifyProof(req *mixTy.VerifyProofInfo) (types.Message, error)
- type MixTxRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcTreeProve ¶
1. 首先在当前tree查找 2. 如果提供了rootHash,则根据roothash+leaf查找,否则全局遍历查找
func GetPaymentPubKey ¶
func Init ¶
func Init(name string, cfg *types.Chain33Config, sub []byte)
Init paracross exec register
func MixTransferInfoVerify ¶
func MixTransferInfoVerify(cfg *types.Chain33Config, db dbm.KV, transfer *mixTy.MixTransferAction) ([]*mixTy.TransferInputCircuit, []*mixTy.TransferOutputCircuit, error)
func VerifyCommitValues ¶
func VerifyCommitValues(inputs []*mixTy.TransferInputCircuit, outputs []*mixTy.TransferOutputCircuit, txFee uint64) bool
Types ¶
type Mix ¶
type Mix struct {
drivers.DriverBase
}
Mix exec
func (*Mix) CheckTx ¶
func (m *Mix) CheckTx(tx *types.Transaction, index int) error
CheckTx check transaction
func (*Mix) ExecDelLocal_Authorize ¶
func (m *Mix) ExecDelLocal_Authorize(payload *mixTy.MixAuthorizeAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Authorize asset withdraw local db process
func (*Mix) ExecDelLocal_Config ¶
func (m *Mix) ExecDelLocal_Config(payload *mixTy.MixConfigAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Config asset withdraw local db process
func (*Mix) ExecDelLocal_Deposit ¶
func (m *Mix) ExecDelLocal_Deposit(payload *mixTy.MixDepositAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Deposit asset withdraw local db process
func (*Mix) ExecDelLocal_Transfer ¶
func (m *Mix) ExecDelLocal_Transfer(payload *mixTy.MixTransferAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Transfer asset transfer local db process
func (*Mix) ExecDelLocal_Withdraw ¶
func (m *Mix) ExecDelLocal_Withdraw(payload *mixTy.MixWithdrawAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Withdraw asset withdraw local db process
func (*Mix) ExecLocal_Authorize ¶
func (m *Mix) ExecLocal_Authorize(payload *mixTy.MixAuthorizeAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Authorize asset withdraw local db process
func (*Mix) ExecLocal_Config ¶
func (m *Mix) ExecLocal_Config(payload *mixTy.MixConfigAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Config asset withdraw local db process
func (*Mix) ExecLocal_Deposit ¶
func (m *Mix) ExecLocal_Deposit(payload *mixTy.MixDepositAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Deposit asset withdraw local db process
func (*Mix) ExecLocal_Transfer ¶
func (m *Mix) ExecLocal_Transfer(payload *mixTy.MixTransferAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Transfer asset transfer local db process
func (*Mix) ExecLocal_Withdraw ¶
func (m *Mix) ExecLocal_Withdraw(payload *mixTy.MixWithdrawAction, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Withdraw asset withdraw local db process
func (*Mix) Exec_Authorize ¶
func (m *Mix) Exec_Authorize(payload *mixTy.MixAuthorizeAction, tx *types.Transaction, index int) (*types.Receipt, error)
func (*Mix) Exec_Config ¶
func (m *Mix) Exec_Config(payload *mixTy.MixConfigAction, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Commit consensus commit tx exec process
func (*Mix) Exec_Deposit ¶
func (m *Mix) Exec_Deposit(payload *mixTy.MixDepositAction, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Deposit ...
func (*Mix) Exec_Transfer ¶
func (m *Mix) Exec_Transfer(payload *mixTy.MixTransferAction, tx *types.Transaction, index int) (*types.Receipt, error)
func (*Mix) Exec_Withdraw ¶
func (m *Mix) Exec_Withdraw(payload *mixTy.MixWithdrawAction, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Withdraw ...
func (*Mix) GetDriverName ¶
GetDriverName return paracross driver name
func (*Mix) Query_GetLeavesList ¶
Query_GetTreeList query paracross title
func (*Mix) Query_GetRootList ¶
Query_GetRootList query title
func (*Mix) Query_GetTreePath ¶
Query_GetTreePath 根据leaf获取path 证明和roothash
func (*Mix) Query_GetTreeStatus ¶
func (*Mix) Query_ListMixTxs ¶
Query_ListMixTxs 批量查询
func (*Mix) Query_PaymentPubKey ¶
Query_PaymentPubKey 批量查询
func (*Mix) Query_TokenFeeAddr ¶
Query_TokenFeeAddr 私对私token转账,代扣地址查询, 需预先转账主代币到相应资产地址下面才能完成私对私的转账,代扣地址coins不能提回
func (*Mix) Query_VerifyProof ¶
Query_VerifyProof 批量查询