types

package
v1.68.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//MaxTreeLeaves = 1024
	TreeLevel = 10
	//MimcHashSeed 电路不支持作为公共输入,设为全局常数
	MimcHashSeed = "19172955941344617222923168298456110557655645809646772800021167670156933290312"
)
View Source
const (
	// TyLogParacrossCommit commit log key
	TyLogMixLocalDeposit       = 750
	TyLogMixLocalNullifier     = 751
	TyLogMixLocalAuth          = 752
	TyLogMixLocalAuthSpend     = 753
	TyLogMixConfigVk           = 754
	TyLogMixConfigAuth         = 755
	TyLogSubLeaves             = 756
	TyLogSubRoots              = 757
	TyLogArchiveRootLeaves     = 758
	TyLogCommitTreeArchiveRoot = 759
	TyLogCommitTreeStatus      = 760
	TyLogNulliferSet           = 761
	TyLogAuthorizeSet          = 762
	TyLogAuthorizeSpendSet     = 763
	TyLogMixConfigPaymentKey   = 764
)

执行器的日志类型

View Source
const (
	MixActionConfig = iota
	MixActionDeposit
	MixActionWithdraw
	MixActionTransfer
	MixActionAuth
)

action type

View Source
const (
	DepositPk = "circuit_deposit.pk"
	DepositVk = "circuit_deposit.vk"

	WithdrawPk = "circuit_withdraw.pk"
	WithdrawVk = "circuit_withdraw.vk"

	AuthPk = "circuit_auth.pk"
	AuthVk = "circuit_auth.vk"

	TransInputPk = "circuit_transfer_input.pk"
	TransInputVk = "circuit_transfer_input.vk"

	TransOutputPk = "circuit_transfer_output.pk"
	TransOutputVk = "circuit_transfer_output.vk"
)

circuits default file name

Variables

View Source
var (
	// ErrZkVerifyFail zk verify fail
	ErrZkVerifyFail = errors.New("ErrZkVerifyFail")
	//ErrInputParaNotMatch input paras not match
	ErrInputParaNotMatch = errors.New("ErrInputParaNotMatch")
	//ErrLeafNotFound not found leaf
	ErrLeafNotFound = errors.New("ErrLeafNotFound")
	//ErrTreeRootHashNotFound not found leaf
	ErrTreeRootHashNotFound = errors.New("ErrTreeRootHashNotFound")

	//ErrNulliferHashExist exist
	ErrNulliferHashExist = errors.New("ErrNulliferHashExist")
	//ErrAuthorizeHashExist exist
	ErrAuthorizeHashExist = errors.New("ErrAuthorizeHashExist")

	//ErrSpendInOutValueNotMatch spend input and output value not match
	ErrSpendInOutValueNotMatch = errors.New("ErrSpendInOutValueNotMatch")

	//ErrDecryptDataFail decrypt data fail like by wrong prikey
	ErrDecryptDataFail = errors.New("ErrDecryptDataFail")
)
View Source
var (
	VerifyType_name = map[int32]string{
		0: "DEPOSIT",
		1: "WITHDRAW",
		2: "TRANSFERINPUT",
		3: "TRANSFEROUTPUT",
		4: "AUTHORIZE",
	}
	VerifyType_value = map[string]int32{
		"DEPOSIT":        0,
		"WITHDRAW":       1,
		"TRANSFERINPUT":  2,
		"TRANSFEROUTPUT": 3,
		"AUTHORIZE":      4,
	}
)

Enum value maps for VerifyType.

View Source
var (
	MixConfigType_name = map[int32]string{
		0: "Verify",
		1: "Auth",
		2: "Payment",
	}
	MixConfigType_value = map[string]int32{
		"Verify":  0,
		"Auth":    1,
		"Payment": 2,
	}
)

Enum value maps for MixConfigType.

View Source
var (
	MixConfigAct_name = map[int32]string{
		0: "Add",
		1: "Delete",
	}
	MixConfigAct_value = map[string]int32{
		"Add":    0,
		"Delete": 1,
	}
)

Enum value maps for MixConfigAct.

View Source
var (
	NoteStatus_name = map[int32]string{
		0: "UNDEF",
		1: "VALID",
		2: "USED",
		3: "FROZEN",
		4: "UNFROZEN",
	}
	NoteStatus_value = map[string]int32{
		"UNDEF":    0,
		"VALID":    1,
		"USED":     2,
		"FROZEN":   3,
		"UNFROZEN": 4,
	}
)

Enum value maps for NoteStatus.

View Source
var (
	MixWalletRescanStatus_name = map[int32]string{
		0: "IDLE",
		1: "SCANNING",
		2: "FINISHED",
	}
	MixWalletRescanStatus_value = map[string]int32{
		"IDLE":     0,
		"SCANNING": 1,
		"FINISHED": 2,
	}
)

Enum value maps for MixWalletRescanStatus.

View Source
var File_cryptokey_proto protoreflect.FileDescriptor
View Source
var File_merkletree_proto protoreflect.FileDescriptor
View Source
var File_mixwallet_proto protoreflect.FileDescriptor
View Source
var (
	// ParaX paracross exec name
	MixX = "mix"
)

Functions

func Byte2Str

func Byte2Str(v []byte) string

func CheckSumEqual

func CheckSumEqual(points ...*bn254.PointAffine) bool

A=B+C

func CommitValueVerify

func CommitValueVerify(cs frontend.API, amount, amountRandom,
	shieldAmountX, shieldAmountY, shieldPointHX, shieldPointHY frontend.Variable)

func ConstructCircuitPubInput

func ConstructCircuitPubInput(pubInput string, circuit frontend.Circuit) error

func GetAssetExecSymbol

func GetAssetExecSymbol(cfg *types.Chain33Config, execer, symbol string) (string, string)

func GetByteBuff

func GetByteBuff(input string) (*bytes.Buffer, error)

func GetCurveSum

func GetCurveSum(points ...*bn254.PointAffine) *bn254.PointAffine

func GetExecName

func GetExecName(cfg *types.Chain33Config) string

GetExecName get para exec name

func GetTransferTxFee

func GetTransferTxFee(cfg *types.Chain33Config, assetExecer string) int64

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

func MulCurvePointG

func MulCurvePointG(val interface{}) *bn254.PointAffine

func MulCurvePointH

func MulCurvePointH(pointHX, pointHY, val string) *bn254.PointAffine

func RegisterMixPrivacyServer

func RegisterMixPrivacyServer(s *grpc.Server, srv MixPrivacyServer)

func Str2Byte

func Str2Byte(v string) []byte

func VerifyMerkleProof

func VerifyMerkleProof(cs frontend.API, mimc *mimc.MiMC, treeRootHash frontend.Variable, proofSet, helper, valid []frontend.Variable)

Types

type AccountPrivacyKey

type AccountPrivacyKey struct {
	PaymentKey *NoteKeyPair          `protobuf:"bytes,1,opt,name=paymentKey,proto3" json:"paymentKey,omitempty"`
	SecretKey  *EncryptSecretKeyPair `protobuf:"bytes,2,opt,name=secretKey,proto3" json:"secretKey,omitempty"`
	// contains filtered or unexported fields
}

spend pair for note proof crypt pair for DH crypt/decrypt

func (*AccountPrivacyKey) Descriptor deprecated

func (*AccountPrivacyKey) Descriptor() ([]byte, []int)

Deprecated: Use AccountPrivacyKey.ProtoReflect.Descriptor instead.

func (*AccountPrivacyKey) GetPaymentKey

func (x *AccountPrivacyKey) GetPaymentKey() *NoteKeyPair

func (*AccountPrivacyKey) GetSecretKey

func (x *AccountPrivacyKey) GetSecretKey() *EncryptSecretKeyPair

func (*AccountPrivacyKey) ProtoMessage

func (*AccountPrivacyKey) ProtoMessage()

func (*AccountPrivacyKey) ProtoReflect

func (x *AccountPrivacyKey) ProtoReflect() protoreflect.Message

func (*AccountPrivacyKey) Reset

func (x *AccountPrivacyKey) Reset()

func (*AccountPrivacyKey) String

func (x *AccountPrivacyKey) String() string

type AuthKeys

type AuthKeys struct {
	Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthKeys) Descriptor deprecated

func (*AuthKeys) Descriptor() ([]byte, []int)

Deprecated: Use AuthKeys.ProtoReflect.Descriptor instead.

func (*AuthKeys) GetKeys

func (x *AuthKeys) GetKeys() []string

func (*AuthKeys) ProtoMessage

func (*AuthKeys) ProtoMessage()

func (*AuthKeys) ProtoReflect

func (x *AuthKeys) ProtoReflect() protoreflect.Message

func (*AuthKeys) Reset

func (x *AuthKeys) Reset()

func (*AuthKeys) String

func (x *AuthKeys) String() string

type AuthTxReq

type AuthTxReq struct {
	NoteHash        string `protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
	AuthorizeToAddr string `protobuf:"bytes,2,opt,name=authorizeToAddr,proto3" json:"authorizeToAddr,omitempty"`
	ZkPath          string `protobuf:"bytes,3,opt,name=zkPath,proto3" json:"zkPath,omitempty"`
	// contains filtered or unexported fields
}

只授权一个note,超过一个,toAddr不好设置

func (*AuthTxReq) Descriptor deprecated

func (*AuthTxReq) Descriptor() ([]byte, []int)

Deprecated: Use AuthTxReq.ProtoReflect.Descriptor instead.

func (*AuthTxReq) GetAuthorizeToAddr

func (x *AuthTxReq) GetAuthorizeToAddr() string

func (*AuthTxReq) GetNoteHash

func (x *AuthTxReq) GetNoteHash() string

func (*AuthTxReq) GetZkPath

func (x *AuthTxReq) GetZkPath() string

func (*AuthTxReq) ProtoMessage

func (*AuthTxReq) ProtoMessage()

func (*AuthTxReq) ProtoReflect

func (x *AuthTxReq) ProtoReflect() protoreflect.Message

func (*AuthTxReq) Reset

func (x *AuthTxReq) Reset()

func (*AuthTxReq) String

func (x *AuthTxReq) String() string

type AuthorizeCircuit

type AuthorizeCircuit struct {
	TreeRootHash       frontend.Variable `gnark:",public"`
	AuthorizeHash      frontend.Variable `gnark:",public"`
	AuthorizeSpendHash frontend.Variable `gnark:",public"`

	Amount          frontend.Variable
	ReceiverPubKey  frontend.Variable
	ReturnPubKey    frontend.Variable
	AuthorizePubKey frontend.Variable
	AuthorizePriKey frontend.Variable
	SpendFlag       frontend.Variable
	NoteRandom      frontend.Variable
	NoteHash        frontend.Variable

	//tree path info
	Path0 frontend.Variable
	Path1 frontend.Variable
	Path2 frontend.Variable
	Path3 frontend.Variable
	Path4 frontend.Variable
	Path5 frontend.Variable
	Path6 frontend.Variable
	Path7 frontend.Variable
	Path8 frontend.Variable
	Path9 frontend.Variable

	Helper0 frontend.Variable
	Helper1 frontend.Variable
	Helper2 frontend.Variable
	Helper3 frontend.Variable
	Helper4 frontend.Variable
	Helper5 frontend.Variable
	Helper6 frontend.Variable
	Helper7 frontend.Variable
	Helper8 frontend.Variable
	Helper9 frontend.Variable

	Valid0 frontend.Variable
	Valid1 frontend.Variable
	Valid2 frontend.Variable
	Valid3 frontend.Variable
	Valid4 frontend.Variable
	Valid5 frontend.Variable
	Valid6 frontend.Variable
	Valid7 frontend.Variable
	Valid8 frontend.Variable
	Valid9 frontend.Variable
}

func (*AuthorizeCircuit) Define

func (circuit *AuthorizeCircuit) Define(curveID ecc.ID, api frontend.API) error

Define declares the circuit's constraints

type CommitSubTree

type CommitSubTree struct {
	Height int32  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Hash   []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

子树用高度和hash描述,2^10=1024个叶子节点,子树高度不会超过10

func (*CommitSubTree) Descriptor deprecated

func (*CommitSubTree) Descriptor() ([]byte, []int)

Deprecated: Use CommitSubTree.ProtoReflect.Descriptor instead.

func (*CommitSubTree) GetHash

func (x *CommitSubTree) GetHash() []byte

func (*CommitSubTree) GetHeight

func (x *CommitSubTree) GetHeight() int32

func (*CommitSubTree) ProtoMessage

func (*CommitSubTree) ProtoMessage()

func (*CommitSubTree) ProtoReflect

func (x *CommitSubTree) ProtoReflect() protoreflect.Message

func (*CommitSubTree) Reset

func (x *CommitSubTree) Reset()

func (*CommitSubTree) String

func (x *CommitSubTree) String() string

type CommitSubTrees

type CommitSubTrees struct {
	SubTrees []*CommitSubTree `protobuf:"bytes,1,rep,name=subTrees,proto3" json:"subTrees,omitempty"`
	// contains filtered or unexported fields
}

merkel tree由子树和叶子组成,三种场景:1,初始只一个叶子, 2,全是子树, 3,子树加一个叶子,不会有两个叶子,两个叶子一定构成子树

func (*CommitSubTrees) Descriptor deprecated

func (*CommitSubTrees) Descriptor() ([]byte, []int)

Deprecated: Use CommitSubTrees.ProtoReflect.Descriptor instead.

func (*CommitSubTrees) GetSubTrees

func (x *CommitSubTrees) GetSubTrees() []*CommitSubTree

func (*CommitSubTrees) ProtoMessage

func (*CommitSubTrees) ProtoMessage()

func (*CommitSubTrees) ProtoReflect

func (x *CommitSubTrees) ProtoReflect() protoreflect.Message

func (*CommitSubTrees) Reset

func (x *CommitSubTrees) Reset()

func (*CommitSubTrees) String

func (x *CommitSubTrees) String() string

type CommitTreeLeaves

type CommitTreeLeaves struct {
	Leaves [][]byte `protobuf:"bytes,1,rep,name=leaves,proto3" json:"leaves,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitTreeLeaves) Descriptor deprecated

func (*CommitTreeLeaves) Descriptor() ([]byte, []int)

Deprecated: Use CommitTreeLeaves.ProtoReflect.Descriptor instead.

func (*CommitTreeLeaves) GetLeaves

func (x *CommitTreeLeaves) GetLeaves() [][]byte

func (*CommitTreeLeaves) ProtoMessage

func (*CommitTreeLeaves) ProtoMessage()

func (*CommitTreeLeaves) ProtoReflect

func (x *CommitTreeLeaves) ProtoReflect() protoreflect.Message

func (*CommitTreeLeaves) Reset

func (x *CommitTreeLeaves) Reset()

func (*CommitTreeLeaves) String

func (x *CommitTreeLeaves) String() string

type CommitTreeProve

type CommitTreeProve struct {
	RootHash   string   `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	ProofSet   []string `protobuf:"bytes,2,rep,name=proofSet,proto3" json:"proofSet,omitempty"`
	ProofIndex uint32   `protobuf:"varint,3,opt,name=proofIndex,proto3" json:"proofIndex,omitempty"`
	NumLeaves  uint32   `protobuf:"varint,4,opt,name=numLeaves,proto3" json:"numLeaves,omitempty"`
	Helpers    []uint32 `protobuf:"varint,5,rep,packed,name=helpers,proto3" json:"helpers,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitTreeProve) Descriptor deprecated

func (*CommitTreeProve) Descriptor() ([]byte, []int)

Deprecated: Use CommitTreeProve.ProtoReflect.Descriptor instead.

func (*CommitTreeProve) GetHelpers

func (x *CommitTreeProve) GetHelpers() []uint32

func (*CommitTreeProve) GetNumLeaves

func (x *CommitTreeProve) GetNumLeaves() uint32

func (*CommitTreeProve) GetProofIndex

func (x *CommitTreeProve) GetProofIndex() uint32

func (*CommitTreeProve) GetProofSet

func (x *CommitTreeProve) GetProofSet() []string

func (*CommitTreeProve) GetRootHash

func (x *CommitTreeProve) GetRootHash() string

func (*CommitTreeProve) ProtoMessage

func (*CommitTreeProve) ProtoMessage()

func (*CommitTreeProve) ProtoReflect

func (x *CommitTreeProve) ProtoReflect() protoreflect.Message

func (*CommitTreeProve) Reset

func (x *CommitTreeProve) Reset()

func (*CommitTreeProve) String

func (x *CommitTreeProve) String() string

type CommitTreeRoots

type CommitTreeRoots struct {
	Roots [][]byte `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitTreeRoots) Descriptor deprecated

func (*CommitTreeRoots) Descriptor() ([]byte, []int)

Deprecated: Use CommitTreeRoots.ProtoReflect.Descriptor instead.

func (*CommitTreeRoots) GetRoots

func (x *CommitTreeRoots) GetRoots() [][]byte

func (*CommitTreeRoots) ProtoMessage

func (*CommitTreeRoots) ProtoMessage()

func (*CommitTreeRoots) ProtoReflect

func (x *CommitTreeRoots) ProtoReflect() protoreflect.Message

func (*CommitTreeRoots) Reset

func (x *CommitTreeRoots) Reset()

func (*CommitTreeRoots) String

func (x *CommitTreeRoots) String() string

type CommitTreeStatus

type CommitTreeStatus struct {
	SubTrees *CommitSubTrees `protobuf:"bytes,1,opt,name=subTrees,proto3" json:"subTrees,omitempty"`
	//1~1024叶子的归档
	SubLeavesSeq int32 `protobuf:"varint,2,opt,name=subLeavesSeq,proto3" json:"subLeavesSeq,omitempty"`
	//root的归档 从1开始,数据库占位,不然全空会往前搜索
	ArchiveRootsSeq uint64 `protobuf:"varint,3,opt,name=archiveRootsSeq,proto3" json:"archiveRootsSeq,omitempty"`
	AssetExec       string `protobuf:"bytes,4,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol     string `protobuf:"bytes,5,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	// contains filtered or unexported fields
}

描述当前commitTree的状态 一颗merkel树1024叶子,考虑数据库读取原因,每个叶子都会存到相应seq db,待第1024次时候归档,重新开始新的merkle树,

func (*CommitTreeStatus) Descriptor deprecated

func (*CommitTreeStatus) Descriptor() ([]byte, []int)

Deprecated: Use CommitTreeStatus.ProtoReflect.Descriptor instead.

func (*CommitTreeStatus) GetArchiveRootsSeq

func (x *CommitTreeStatus) GetArchiveRootsSeq() uint64

func (*CommitTreeStatus) GetAssetExec

func (x *CommitTreeStatus) GetAssetExec() string

func (*CommitTreeStatus) GetAssetSymbol

func (x *CommitTreeStatus) GetAssetSymbol() string

func (*CommitTreeStatus) GetSubLeavesSeq

func (x *CommitTreeStatus) GetSubLeavesSeq() int32

func (*CommitTreeStatus) GetSubTrees

func (x *CommitTreeStatus) GetSubTrees() *CommitSubTrees

func (*CommitTreeStatus) ProtoMessage

func (*CommitTreeStatus) ProtoMessage()

func (*CommitTreeStatus) ProtoReflect

func (x *CommitTreeStatus) ProtoReflect() protoreflect.Message

func (*CommitTreeStatus) Reset

func (x *CommitTreeStatus) Reset()

func (*CommitTreeStatus) String

func (x *CommitTreeStatus) String() string

type CreateRawTxReq

type CreateRawTxReq struct {
	ActionTy      int32  `protobuf:"varint,1,opt,name=actionTy,proto3" json:"actionTy,omitempty"`
	Data          []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	AssetExec     string `protobuf:"bytes,2,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol   string `protobuf:"bytes,3,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	Title         string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"`                  //平行链名字
	VerifyOnChain bool   `protobuf:"varint,7,opt,name=verifyOnChain,proto3" json:"verifyOnChain,omitempty"` //true:链上验证,false:本地验证
	// contains filtered or unexported fields
}

func (*CreateRawTxReq) Descriptor deprecated

func (*CreateRawTxReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateRawTxReq.ProtoReflect.Descriptor instead.

func (*CreateRawTxReq) GetActionTy

func (x *CreateRawTxReq) GetActionTy() int32

func (*CreateRawTxReq) GetAssetExec

func (x *CreateRawTxReq) GetAssetExec() string

func (*CreateRawTxReq) GetAssetSymbol

func (x *CreateRawTxReq) GetAssetSymbol() string

func (*CreateRawTxReq) GetData

func (x *CreateRawTxReq) GetData() []byte

func (*CreateRawTxReq) GetTitle

func (x *CreateRawTxReq) GetTitle() string

func (*CreateRawTxReq) GetVerifyOnChain

func (x *CreateRawTxReq) GetVerifyOnChain() bool

func (*CreateRawTxReq) ProtoMessage

func (*CreateRawTxReq) ProtoMessage()

func (*CreateRawTxReq) ProtoReflect

func (x *CreateRawTxReq) ProtoReflect() protoreflect.Message

func (*CreateRawTxReq) Reset

func (x *CreateRawTxReq) Reset()

func (*CreateRawTxReq) String

func (x *CreateRawTxReq) String() string

type CreateZkKeyFileReq

type CreateZkKeyFileReq struct {
	Ty       int32  `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	SavePath string `protobuf:"bytes,2,opt,name=savePath,proto3" json:"savePath,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateZkKeyFileReq) Descriptor deprecated

func (*CreateZkKeyFileReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateZkKeyFileReq.ProtoReflect.Descriptor instead.

func (*CreateZkKeyFileReq) GetSavePath

func (x *CreateZkKeyFileReq) GetSavePath() string

func (*CreateZkKeyFileReq) GetTy

func (x *CreateZkKeyFileReq) GetTy() int32

func (*CreateZkKeyFileReq) ProtoMessage

func (*CreateZkKeyFileReq) ProtoMessage()

func (*CreateZkKeyFileReq) ProtoReflect

func (x *CreateZkKeyFileReq) ProtoReflect() protoreflect.Message

func (*CreateZkKeyFileReq) Reset

func (x *CreateZkKeyFileReq) Reset()

func (*CreateZkKeyFileReq) String

func (x *CreateZkKeyFileReq) String() string

type DHSecret

type DHSecret struct {
	OneTimePubKey string `protobuf:"bytes,1,opt,name=oneTimePubKey,proto3" json:"oneTimePubKey,omitempty"`
	Secret        string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

DH one time pubkey with secret

func (*DHSecret) Descriptor deprecated

func (*DHSecret) Descriptor() ([]byte, []int)

Deprecated: Use DHSecret.ProtoReflect.Descriptor instead.

func (*DHSecret) GetOneTimePubKey

func (x *DHSecret) GetOneTimePubKey() string

func (*DHSecret) GetSecret

func (x *DHSecret) GetSecret() string

func (*DHSecret) ProtoMessage

func (*DHSecret) ProtoMessage()

func (*DHSecret) ProtoReflect

func (x *DHSecret) ProtoReflect() protoreflect.Message

func (*DHSecret) Reset

func (x *DHSecret) Reset()

func (*DHSecret) String

func (x *DHSecret) String() string

type DHSecretGroup

type DHSecretGroup struct {
	Receiver  string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Returner  string `protobuf:"bytes,2,opt,name=returner,proto3" json:"returner,omitempty"`
	Authorize string `protobuf:"bytes,3,opt,name=authorize,proto3" json:"authorize,omitempty"`
	// contains filtered or unexported fields
}

Diff-Helman 加密group, for spender, returner, authorizer to decrypt

func (*DHSecretGroup) Descriptor deprecated

func (*DHSecretGroup) Descriptor() ([]byte, []int)

Deprecated: Use DHSecretGroup.ProtoReflect.Descriptor instead.

func (*DHSecretGroup) GetAuthorize

func (x *DHSecretGroup) GetAuthorize() string

func (*DHSecretGroup) GetReceiver

func (x *DHSecretGroup) GetReceiver() string

func (*DHSecretGroup) GetReturner

func (x *DHSecretGroup) GetReturner() string

func (*DHSecretGroup) ProtoMessage

func (*DHSecretGroup) ProtoMessage()

func (*DHSecretGroup) ProtoReflect

func (x *DHSecretGroup) ProtoReflect() protoreflect.Message

func (*DHSecretGroup) Reset

func (x *DHSecretGroup) Reset()

func (*DHSecretGroup) String

func (x *DHSecretGroup) String() string

type DecryptSecretData

type DecryptSecretData struct {
	Secret        string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	SecretPriKey  string `protobuf:"bytes,2,opt,name=secretPriKey,proto3" json:"secretPriKey,omitempty"`
	OneTimePubKey string `protobuf:"bytes,3,opt,name=oneTimePubKey,proto3" json:"oneTimePubKey,omitempty"`
	// contains filtered or unexported fields
}

func (*DecryptSecretData) Descriptor deprecated

func (*DecryptSecretData) Descriptor() ([]byte, []int)

Deprecated: Use DecryptSecretData.ProtoReflect.Descriptor instead.

func (*DecryptSecretData) GetOneTimePubKey

func (x *DecryptSecretData) GetOneTimePubKey() string

func (*DecryptSecretData) GetSecret

func (x *DecryptSecretData) GetSecret() string

func (*DecryptSecretData) GetSecretPriKey

func (x *DecryptSecretData) GetSecretPriKey() string

func (*DecryptSecretData) ProtoMessage

func (*DecryptSecretData) ProtoMessage()

func (*DecryptSecretData) ProtoReflect

func (x *DecryptSecretData) ProtoReflect() protoreflect.Message

func (*DecryptSecretData) Reset

func (x *DecryptSecretData) Reset()

func (*DecryptSecretData) String

func (x *DecryptSecretData) String() string

type DepositCircuit

type DepositCircuit struct {
	NoteHash frontend.Variable `gnark:",public"`
	Amount   frontend.Variable `gnark:",public"`

	ReceiverPubKey  frontend.Variable
	ReturnPubKey    frontend.Variable
	AuthorizePubKey frontend.Variable
	NoteRandom      frontend.Variable
}

spend commit hash the circuit implementing

func (*DepositCircuit) Define

func (circuit *DepositCircuit) Define(curveID ecc.ID, api frontend.API) error

type DepositInfo

type DepositInfo struct {
	ReceiverAddrs string `protobuf:"bytes,1,opt,name=receiverAddrs,proto3" json:"receiverAddrs,omitempty"`
	ReturnAddr    string `protobuf:"bytes,2,opt,name=returnAddr,proto3" json:"returnAddr,omitempty"`
	AuthorizeAddr string `protobuf:"bytes,3,opt,name=authorizeAddr,proto3" json:"authorizeAddr,omitempty"`
	Amounts       string `protobuf:"bytes,4,opt,name=amounts,proto3" json:"amounts,omitempty"`
	// contains filtered or unexported fields
}

支持同时存入多个地址,多个地址具有相同的returnAddr和AuthorizeAddr,如果不同,则单个来存

func (*DepositInfo) Descriptor deprecated

func (*DepositInfo) Descriptor() ([]byte, []int)

Deprecated: Use DepositInfo.ProtoReflect.Descriptor instead.

func (*DepositInfo) GetAmounts

func (x *DepositInfo) GetAmounts() string

func (*DepositInfo) GetAuthorizeAddr

func (x *DepositInfo) GetAuthorizeAddr() string

func (*DepositInfo) GetReceiverAddrs

func (x *DepositInfo) GetReceiverAddrs() string

func (*DepositInfo) GetReturnAddr

func (x *DepositInfo) GetReturnAddr() string

func (*DepositInfo) ProtoMessage

func (*DepositInfo) ProtoMessage()

func (*DepositInfo) ProtoReflect

func (x *DepositInfo) ProtoReflect() protoreflect.Message

func (*DepositInfo) Reset

func (x *DepositInfo) Reset()

func (*DepositInfo) String

func (x *DepositInfo) String() string

type DepositProofResp

type DepositProofResp struct {
	NoteHash string         `protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
	Proof    *SecretData    `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	Secrets  *DHSecretGroup `protobuf:"bytes,3,opt,name=secrets,proto3" json:"secrets,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositProofResp) Descriptor deprecated

func (*DepositProofResp) Descriptor() ([]byte, []int)

Deprecated: Use DepositProofResp.ProtoReflect.Descriptor instead.

func (*DepositProofResp) GetNoteHash

func (x *DepositProofResp) GetNoteHash() string

func (*DepositProofResp) GetProof

func (x *DepositProofResp) GetProof() *SecretData

func (*DepositProofResp) GetSecrets

func (x *DepositProofResp) GetSecrets() *DHSecretGroup

func (*DepositProofResp) ProtoMessage

func (*DepositProofResp) ProtoMessage()

func (*DepositProofResp) ProtoReflect

func (x *DepositProofResp) ProtoReflect() protoreflect.Message

func (*DepositProofResp) Reset

func (x *DepositProofResp) Reset()

func (*DepositProofResp) String

func (x *DepositProofResp) String() string

type DepositTxReq

type DepositTxReq struct {
	Deposit *DepositInfo `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"`
	ZkPath  string       `protobuf:"bytes,2,opt,name=zkPath,proto3" json:"zkPath,omitempty"`
	// contains filtered or unexported fields
}

钱包生成deposit tx

func (*DepositTxReq) Descriptor deprecated

func (*DepositTxReq) Descriptor() ([]byte, []int)

Deprecated: Use DepositTxReq.ProtoReflect.Descriptor instead.

func (*DepositTxReq) GetDeposit

func (x *DepositTxReq) GetDeposit() *DepositInfo

func (*DepositTxReq) GetZkPath

func (x *DepositTxReq) GetZkPath() string

func (*DepositTxReq) ProtoMessage

func (*DepositTxReq) ProtoMessage()

func (*DepositTxReq) ProtoReflect

func (x *DepositTxReq) ProtoReflect() protoreflect.Message

func (*DepositTxReq) Reset

func (x *DepositTxReq) Reset()

func (*DepositTxReq) String

func (x *DepositTxReq) String() string

type EncryptSecretData

type EncryptSecretData struct {
	Secret           string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	PeerSecretPubKey string `protobuf:"bytes,2,opt,name=peerSecretPubKey,proto3" json:"peerSecretPubKey,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptSecretData) Descriptor deprecated

func (*EncryptSecretData) Descriptor() ([]byte, []int)

Deprecated: Use EncryptSecretData.ProtoReflect.Descriptor instead.

func (*EncryptSecretData) GetPeerSecretPubKey

func (x *EncryptSecretData) GetPeerSecretPubKey() string

func (*EncryptSecretData) GetSecret

func (x *EncryptSecretData) GetSecret() string

func (*EncryptSecretData) ProtoMessage

func (*EncryptSecretData) ProtoMessage()

func (*EncryptSecretData) ProtoReflect

func (x *EncryptSecretData) ProtoReflect() protoreflect.Message

func (*EncryptSecretData) Reset

func (x *EncryptSecretData) Reset()

func (*EncryptSecretData) String

func (x *EncryptSecretData) String() string

type EncryptSecretKeyPair

type EncryptSecretKeyPair struct {
	SecretPrivKey string `protobuf:"bytes,1,opt,name=secretPrivKey,proto3" json:"secretPrivKey,omitempty"`
	SecretPubKey  string `protobuf:"bytes,2,opt,name=secretPubKey,proto3" json:"secretPubKey,omitempty"`
	// contains filtered or unexported fields
}

diff-hellman crypto key pair secretPrivKey = wallet private key * G_25519 secretPubKey = secretPrivKey * G_25519

func (*EncryptSecretKeyPair) Descriptor deprecated

func (*EncryptSecretKeyPair) Descriptor() ([]byte, []int)

Deprecated: Use EncryptSecretKeyPair.ProtoReflect.Descriptor instead.

func (*EncryptSecretKeyPair) GetSecretPrivKey

func (x *EncryptSecretKeyPair) GetSecretPrivKey() string

func (*EncryptSecretKeyPair) GetSecretPubKey

func (x *EncryptSecretKeyPair) GetSecretPubKey() string

func (*EncryptSecretKeyPair) ProtoMessage

func (*EncryptSecretKeyPair) ProtoMessage()

func (*EncryptSecretKeyPair) ProtoReflect

func (x *EncryptSecretKeyPair) ProtoReflect() protoreflect.Message

func (*EncryptSecretKeyPair) Reset

func (x *EncryptSecretKeyPair) Reset()

func (*EncryptSecretKeyPair) String

func (x *EncryptSecretKeyPair) String() string

type ExistValue

type ExistValue struct {
	Nullifier string `protobuf:"bytes,1,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
	Exist     bool   `protobuf:"varint,2,opt,name=exist,proto3" json:"exist,omitempty"`
	// contains filtered or unexported fields
}

nullifer 存在value

func (*ExistValue) Descriptor deprecated

func (*ExistValue) Descriptor() ([]byte, []int)

Deprecated: Use ExistValue.ProtoReflect.Descriptor instead.

func (*ExistValue) GetExist

func (x *ExistValue) GetExist() bool

func (*ExistValue) GetNullifier

func (x *ExistValue) GetNullifier() string

func (*ExistValue) ProtoMessage

func (*ExistValue) ProtoMessage()

func (*ExistValue) ProtoReflect

func (x *ExistValue) ProtoReflect() protoreflect.Message

func (*ExistValue) Reset

func (x *ExistValue) Reset()

func (*ExistValue) String

func (x *ExistValue) String() string

type LocalMixTx

type LocalMixTx struct {
	Hash   string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Height int64  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Index  int64  `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*LocalMixTx) Descriptor deprecated

func (*LocalMixTx) Descriptor() ([]byte, []int)

Deprecated: Use LocalMixTx.ProtoReflect.Descriptor instead.

func (*LocalMixTx) GetHash

func (x *LocalMixTx) GetHash() string

func (*LocalMixTx) GetHeight

func (x *LocalMixTx) GetHeight() int64

func (*LocalMixTx) GetIndex

func (x *LocalMixTx) GetIndex() int64

func (*LocalMixTx) ProtoMessage

func (*LocalMixTx) ProtoMessage()

func (*LocalMixTx) ProtoReflect

func (x *LocalMixTx) ProtoReflect() protoreflect.Message

func (*LocalMixTx) Reset

func (x *LocalMixTx) Reset()

func (*LocalMixTx) String

func (x *LocalMixTx) String() string

type MixAction

type MixAction struct {
	Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
	// Types that are assignable to Value:
	//	*MixAction_Config
	//	*MixAction_Deposit
	//	*MixAction_Withdraw
	//	*MixAction_Transfer
	//	*MixAction_Authorize
	Value isMixAction_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*MixAction) Descriptor deprecated

func (*MixAction) Descriptor() ([]byte, []int)

Deprecated: Use MixAction.ProtoReflect.Descriptor instead.

func (*MixAction) GetAuthorize

func (x *MixAction) GetAuthorize() *MixAuthorizeAction

func (*MixAction) GetConfig

func (x *MixAction) GetConfig() *MixConfigAction

func (*MixAction) GetDeposit

func (x *MixAction) GetDeposit() *MixDepositAction

func (*MixAction) GetTransfer

func (x *MixAction) GetTransfer() *MixTransferAction

func (*MixAction) GetTy

func (x *MixAction) GetTy() int32

func (*MixAction) GetValue

func (m *MixAction) GetValue() isMixAction_Value

func (*MixAction) GetWithdraw

func (x *MixAction) GetWithdraw() *MixWithdrawAction

func (*MixAction) ProtoMessage

func (*MixAction) ProtoMessage()

func (*MixAction) ProtoReflect

func (x *MixAction) ProtoReflect() protoreflect.Message

func (*MixAction) Reset

func (x *MixAction) Reset()

func (*MixAction) String

func (x *MixAction) String() string

type MixAction_Authorize

type MixAction_Authorize struct {
	Authorize *MixAuthorizeAction `protobuf:"bytes,6,opt,name=authorize,proto3,oneof"`
}

type MixAction_Config

type MixAction_Config struct {
	Config *MixConfigAction `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type MixAction_Deposit

type MixAction_Deposit struct {
	Deposit *MixDepositAction `protobuf:"bytes,3,opt,name=deposit,proto3,oneof"`
}

type MixAction_Transfer

type MixAction_Transfer struct {
	Transfer *MixTransferAction `protobuf:"bytes,5,opt,name=transfer,proto3,oneof"`
}

type MixAction_Withdraw

type MixAction_Withdraw struct {
	Withdraw *MixWithdrawAction `protobuf:"bytes,4,opt,name=withdraw,proto3,oneof"`
}

type MixAuthorizeAction

type MixAuthorizeAction struct {
	AssetExec   string       `protobuf:"bytes,1,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string       `protobuf:"bytes,2,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	ProofInfo   *ZkProofInfo `protobuf:"bytes,3,opt,name=proofInfo,proto3" json:"proofInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*MixAuthorizeAction) Descriptor deprecated

func (*MixAuthorizeAction) Descriptor() ([]byte, []int)

Deprecated: Use MixAuthorizeAction.ProtoReflect.Descriptor instead.

func (*MixAuthorizeAction) GetAssetExec

func (x *MixAuthorizeAction) GetAssetExec() string

func (*MixAuthorizeAction) GetAssetSymbol

func (x *MixAuthorizeAction) GetAssetSymbol() string

func (*MixAuthorizeAction) GetProofInfo

func (x *MixAuthorizeAction) GetProofInfo() *ZkProofInfo

func (*MixAuthorizeAction) ProtoMessage

func (*MixAuthorizeAction) ProtoMessage()

func (*MixAuthorizeAction) ProtoReflect

func (x *MixAuthorizeAction) ProtoReflect() protoreflect.Message

func (*MixAuthorizeAction) Reset

func (x *MixAuthorizeAction) Reset()

func (*MixAuthorizeAction) String

func (x *MixAuthorizeAction) String() string

type MixConfigAct

type MixConfigAct int32
const (
	MixConfigAct_Add    MixConfigAct = 0
	MixConfigAct_Delete MixConfigAct = 1
)

func (MixConfigAct) Descriptor

func (MixConfigAct) Enum

func (x MixConfigAct) Enum() *MixConfigAct

func (MixConfigAct) EnumDescriptor deprecated

func (MixConfigAct) EnumDescriptor() ([]byte, []int)

Deprecated: Use MixConfigAct.Descriptor instead.

func (MixConfigAct) Number

func (MixConfigAct) String

func (x MixConfigAct) String() string

func (MixConfigAct) Type

type MixConfigAction

type MixConfigAction struct {
	Ty     MixConfigType `protobuf:"varint,1,opt,name=Ty,proto3,enum=types.MixConfigType" json:"Ty,omitempty"`
	Action MixConfigAct  `protobuf:"varint,2,opt,name=Action,proto3,enum=types.MixConfigAct" json:"Action,omitempty"`
	// Types that are assignable to Value:
	//	*MixConfigAction_VerifyKey
	//	*MixConfigAction_AuthKey
	//	*MixConfigAction_NoteAccountKey
	Value isMixConfigAction_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

config verify parameter for proof 当前authPk=mimc_hash(prikey),没有X,Y值

func (*MixConfigAction) Descriptor deprecated

func (*MixConfigAction) Descriptor() ([]byte, []int)

Deprecated: Use MixConfigAction.ProtoReflect.Descriptor instead.

func (*MixConfigAction) GetAction

func (x *MixConfigAction) GetAction() MixConfigAct

func (*MixConfigAction) GetAuthKey

func (x *MixConfigAction) GetAuthKey() string

func (*MixConfigAction) GetNoteAccountKey

func (x *MixConfigAction) GetNoteAccountKey() *NoteAccountKey

func (*MixConfigAction) GetTy

func (x *MixConfigAction) GetTy() MixConfigType

func (*MixConfigAction) GetValue

func (m *MixConfigAction) GetValue() isMixConfigAction_Value

func (*MixConfigAction) GetVerifyKey

func (x *MixConfigAction) GetVerifyKey() *MixZkVerifyKey

func (*MixConfigAction) ProtoMessage

func (*MixConfigAction) ProtoMessage()

func (*MixConfigAction) ProtoReflect

func (x *MixConfigAction) ProtoReflect() protoreflect.Message

func (*MixConfigAction) Reset

func (x *MixConfigAction) Reset()

func (*MixConfigAction) String

func (x *MixConfigAction) String() string

type MixConfigAction_AuthKey

type MixConfigAction_AuthKey struct {
	AuthKey string `protobuf:"bytes,4,opt,name=authKey,proto3,oneof"`
}

type MixConfigAction_NoteAccountKey

type MixConfigAction_NoteAccountKey struct {
	NoteAccountKey *NoteAccountKey `protobuf:"bytes,5,opt,name=noteAccountKey,proto3,oneof"`
}

type MixConfigAction_VerifyKey

type MixConfigAction_VerifyKey struct {
	VerifyKey *MixZkVerifyKey `protobuf:"bytes,3,opt,name=verifyKey,proto3,oneof"`
}

type MixConfigType

type MixConfigType int32
const (
	MixConfigType_Verify MixConfigType = 0
	//register unify authorize pubkey
	MixConfigType_Auth MixConfigType = 1
	//for spender's pay pubkey register,DH secret
	//spender注册自己的payment公钥, 用来生成DiffHellman秘钥
	MixConfigType_Payment MixConfigType = 2
)

func (MixConfigType) Descriptor

func (MixConfigType) Enum

func (x MixConfigType) Enum() *MixConfigType

func (MixConfigType) EnumDescriptor deprecated

func (MixConfigType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MixConfigType.Descriptor instead.

func (MixConfigType) Number

func (MixConfigType) String

func (x MixConfigType) String() string

func (MixConfigType) Type

type MixDepositAction

type MixDepositAction struct {
	AssetExec   string         `protobuf:"bytes,1,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string         `protobuf:"bytes,2,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	Proofs      []*ZkProofInfo `protobuf:"bytes,3,rep,name=proofs,proto3" json:"proofs,omitempty"`
	// contains filtered or unexported fields
}

func (*MixDepositAction) Descriptor deprecated

func (*MixDepositAction) Descriptor() ([]byte, []int)

Deprecated: Use MixDepositAction.ProtoReflect.Descriptor instead.

func (*MixDepositAction) GetAssetExec

func (x *MixDepositAction) GetAssetExec() string

func (*MixDepositAction) GetAssetSymbol

func (x *MixDepositAction) GetAssetSymbol() string

func (*MixDepositAction) GetProofs

func (x *MixDepositAction) GetProofs() []*ZkProofInfo

func (*MixDepositAction) ProtoMessage

func (*MixDepositAction) ProtoMessage()

func (*MixDepositAction) ProtoReflect

func (x *MixDepositAction) ProtoReflect() protoreflect.Message

func (*MixDepositAction) Reset

func (x *MixDepositAction) Reset()

func (*MixDepositAction) String

func (x *MixDepositAction) String() string

type MixPrivacyClient

type MixPrivacyClient interface {
	// 扫描UTXO以及获取扫描UTXO后的状态
	GetRescanStatus(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ReqString, error)
	// 使能隐私账户
	RescanNotes(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.ReqString, error)
	// 创建隐私交易
	EnablePrivacy(ctx context.Context, in *types.ReqAddrs, opts ...grpc.CallOption) (*ReqEnablePrivacyRst, error)
}

MixPrivacyClient is the client API for MixPrivacy service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMixPrivacyClient

func NewMixPrivacyClient(cc grpc.ClientConnInterface) MixPrivacyClient

type MixPrivacyServer

type MixPrivacyServer interface {
	// 扫描UTXO以及获取扫描UTXO后的状态
	GetRescanStatus(context.Context, *types.ReqNil) (*types.ReqString, error)
	// 使能隐私账户
	RescanNotes(context.Context, *types.ReqNil) (*types.ReqString, error)
	// 创建隐私交易
	EnablePrivacy(context.Context, *types.ReqAddrs) (*ReqEnablePrivacyRst, error)
}

MixPrivacyServer is the server API for MixPrivacy service.

type MixTransferAction

type MixTransferAction struct {
	AssetExec   string         `protobuf:"bytes,1,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string         `protobuf:"bytes,2,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	Inputs      []*ZkProofInfo `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Output      *ZkProofInfo   `protobuf:"bytes,4,opt,name=output,proto3" json:"output,omitempty"`
	Change      *ZkProofInfo   `protobuf:"bytes,5,opt,name=change,proto3" json:"change,omitempty"`
	// contains filtered or unexported fields
}

func (*MixTransferAction) Descriptor deprecated

func (*MixTransferAction) Descriptor() ([]byte, []int)

Deprecated: Use MixTransferAction.ProtoReflect.Descriptor instead.

func (*MixTransferAction) GetAssetExec

func (x *MixTransferAction) GetAssetExec() string

func (*MixTransferAction) GetAssetSymbol

func (x *MixTransferAction) GetAssetSymbol() string

func (*MixTransferAction) GetChange

func (x *MixTransferAction) GetChange() *ZkProofInfo

func (*MixTransferAction) GetInputs

func (x *MixTransferAction) GetInputs() []*ZkProofInfo

func (*MixTransferAction) GetOutput

func (x *MixTransferAction) GetOutput() *ZkProofInfo

func (*MixTransferAction) ProtoMessage

func (*MixTransferAction) ProtoMessage()

func (*MixTransferAction) ProtoReflect

func (x *MixTransferAction) ProtoReflect() protoreflect.Message

func (*MixTransferAction) Reset

func (x *MixTransferAction) Reset()

func (*MixTransferAction) String

func (x *MixTransferAction) String() string

type MixTxListReq

type MixTxListReq struct {
	TxIndex   string `protobuf:"bytes,1,opt,name=txIndex,proto3" json:"txIndex,omitempty"` //primary direct query
	Hash      string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Height    int64  `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Index     int64  `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	Count     int32  `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"`
	Direction int32  `protobuf:"varint,6,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*MixTxListReq) Descriptor deprecated

func (*MixTxListReq) Descriptor() ([]byte, []int)

Deprecated: Use MixTxListReq.ProtoReflect.Descriptor instead.

func (*MixTxListReq) GetCount

func (x *MixTxListReq) GetCount() int32

func (*MixTxListReq) GetDirection

func (x *MixTxListReq) GetDirection() int32

func (*MixTxListReq) GetHash

func (x *MixTxListReq) GetHash() string

func (*MixTxListReq) GetHeight

func (x *MixTxListReq) GetHeight() int64

func (*MixTxListReq) GetIndex

func (x *MixTxListReq) GetIndex() int64

func (*MixTxListReq) GetTxIndex

func (x *MixTxListReq) GetTxIndex() string

func (*MixTxListReq) ProtoMessage

func (*MixTxListReq) ProtoMessage()

func (*MixTxListReq) ProtoReflect

func (x *MixTxListReq) ProtoReflect() protoreflect.Message

func (*MixTxListReq) Reset

func (x *MixTxListReq) Reset()

func (*MixTxListReq) String

func (x *MixTxListReq) String() string

type MixTxListResp

type MixTxListResp struct {
	Txs []*LocalMixTx `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*MixTxListResp) Descriptor deprecated

func (*MixTxListResp) Descriptor() ([]byte, []int)

Deprecated: Use MixTxListResp.ProtoReflect.Descriptor instead.

func (*MixTxListResp) GetTxs

func (x *MixTxListResp) GetTxs() []*LocalMixTx

func (*MixTxListResp) ProtoMessage

func (*MixTxListResp) ProtoMessage()

func (*MixTxListResp) ProtoReflect

func (x *MixTxListResp) ProtoReflect() protoreflect.Message

func (*MixTxListResp) Reset

func (x *MixTxListResp) Reset()

func (*MixTxListResp) String

func (x *MixTxListResp) String() string

type MixType

type MixType struct {
	types.ExecTypeBase
}

ParacrossType base paracross type

func NewType

func NewType(cfg *types.Chain33Config) *MixType

NewType get paracross type

func (*MixType) GetLogMap

func (p *MixType) GetLogMap() map[int64]*types.LogInfo

GetLogMap get receipt log map

func (*MixType) GetName

func (p *MixType) GetName() string

GetName 获取执行器名称

func (*MixType) GetPayload

func (p *MixType) GetPayload() types.Message

GetPayload mix get action payload

func (*MixType) GetTypeMap

func (p *MixType) GetTypeMap() map[string]int32

GetTypeMap get action type

type MixWalletRescanStatus

type MixWalletRescanStatus int32
const (
	MixWalletRescanStatus_IDLE     MixWalletRescanStatus = 0
	MixWalletRescanStatus_SCANNING MixWalletRescanStatus = 1
	MixWalletRescanStatus_FINISHED MixWalletRescanStatus = 2
)

func (MixWalletRescanStatus) Descriptor

func (MixWalletRescanStatus) Enum

func (MixWalletRescanStatus) EnumDescriptor deprecated

func (MixWalletRescanStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use MixWalletRescanStatus.Descriptor instead.

func (MixWalletRescanStatus) Number

func (MixWalletRescanStatus) String

func (x MixWalletRescanStatus) String() string

func (MixWalletRescanStatus) Type

type MixWithdrawAction

type MixWithdrawAction struct {
	AssetExec   string         `protobuf:"bytes,1,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string         `protobuf:"bytes,2,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	Amount      uint64         `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Proofs      []*ZkProofInfo `protobuf:"bytes,4,rep,name=proofs,proto3" json:"proofs,omitempty"`
	// contains filtered or unexported fields
}

func (*MixWithdrawAction) Descriptor deprecated

func (*MixWithdrawAction) Descriptor() ([]byte, []int)

Deprecated: Use MixWithdrawAction.ProtoReflect.Descriptor instead.

func (*MixWithdrawAction) GetAmount

func (x *MixWithdrawAction) GetAmount() uint64

func (*MixWithdrawAction) GetAssetExec

func (x *MixWithdrawAction) GetAssetExec() string

func (*MixWithdrawAction) GetAssetSymbol

func (x *MixWithdrawAction) GetAssetSymbol() string

func (*MixWithdrawAction) GetProofs

func (x *MixWithdrawAction) GetProofs() []*ZkProofInfo

func (*MixWithdrawAction) ProtoMessage

func (*MixWithdrawAction) ProtoMessage()

func (*MixWithdrawAction) ProtoReflect

func (x *MixWithdrawAction) ProtoReflect() protoreflect.Message

func (*MixWithdrawAction) Reset

func (x *MixWithdrawAction) Reset()

func (*MixWithdrawAction) String

func (x *MixWithdrawAction) String() string

type MixZkVerifyKey added in v1.67.3

type MixZkVerifyKey struct {
	Type  VerifyType `protobuf:"varint,1,opt,name=type,proto3,enum=types.VerifyType" json:"type,omitempty"`
	Value string     `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MixZkVerifyKey) Descriptor deprecated added in v1.67.3

func (*MixZkVerifyKey) Descriptor() ([]byte, []int)

Deprecated: Use MixZkVerifyKey.ProtoReflect.Descriptor instead.

func (*MixZkVerifyKey) GetType added in v1.67.3

func (x *MixZkVerifyKey) GetType() VerifyType

func (*MixZkVerifyKey) GetValue added in v1.67.3

func (x *MixZkVerifyKey) GetValue() string

func (*MixZkVerifyKey) ProtoMessage added in v1.67.3

func (*MixZkVerifyKey) ProtoMessage()

func (*MixZkVerifyKey) ProtoReflect added in v1.67.3

func (x *MixZkVerifyKey) ProtoReflect() protoreflect.Message

func (*MixZkVerifyKey) Reset added in v1.67.3

func (x *MixZkVerifyKey) Reset()

func (*MixZkVerifyKey) String added in v1.67.3

func (x *MixZkVerifyKey) String() string

type NoteAccountKey

type NoteAccountKey struct {

	//链上地址
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	//支票收款地址
	NoteReceiveAddr string `protobuf:"bytes,2,opt,name=noteReceiveAddr,proto3" json:"noteReceiveAddr,omitempty"`
	//note秘密信息接收key
	SecretReceiveKey string `protobuf:"bytes,3,opt,name=secretReceiveKey,proto3" json:"secretReceiveKey,omitempty"`
	// contains filtered or unexported fields
}

func (*NoteAccountKey) Descriptor deprecated

func (*NoteAccountKey) Descriptor() ([]byte, []int)

Deprecated: Use NoteAccountKey.ProtoReflect.Descriptor instead.

func (*NoteAccountKey) GetAddr

func (x *NoteAccountKey) GetAddr() string

func (*NoteAccountKey) GetNoteReceiveAddr

func (x *NoteAccountKey) GetNoteReceiveAddr() string

func (*NoteAccountKey) GetSecretReceiveKey

func (x *NoteAccountKey) GetSecretReceiveKey() string

func (*NoteAccountKey) ProtoMessage

func (*NoteAccountKey) ProtoMessage()

func (*NoteAccountKey) ProtoReflect

func (x *NoteAccountKey) ProtoReflect() protoreflect.Message

func (*NoteAccountKey) Reset

func (x *NoteAccountKey) Reset()

func (*NoteAccountKey) String

func (x *NoteAccountKey) String() string

type NoteKeyPair

type NoteKeyPair struct {
	ReceiveKey string `protobuf:"bytes,1,opt,name=receiveKey,proto3" json:"receiveKey,omitempty"`
	SpendKey   string `protobuf:"bytes,2,opt,name=spendKey,proto3" json:"spendKey,omitempty"`
	// contains filtered or unexported fields
}

note payment account receiveKey = hash(spendKey)

func (*NoteKeyPair) Descriptor deprecated

func (*NoteKeyPair) Descriptor() ([]byte, []int)

Deprecated: Use NoteKeyPair.ProtoReflect.Descriptor instead.

func (*NoteKeyPair) GetReceiveKey

func (x *NoteKeyPair) GetReceiveKey() string

func (*NoteKeyPair) GetSpendKey

func (x *NoteKeyPair) GetSpendKey() string

func (*NoteKeyPair) ProtoMessage

func (*NoteKeyPair) ProtoMessage()

func (*NoteKeyPair) ProtoReflect

func (x *NoteKeyPair) ProtoReflect() protoreflect.Message

func (*NoteKeyPair) Reset

func (x *NoteKeyPair) Reset()

func (*NoteKeyPair) String

func (x *NoteKeyPair) String() string

type NoteStatus

type NoteStatus int32
const (
	NoteStatus_UNDEF    NoteStatus = 0
	NoteStatus_VALID    NoteStatus = 1 //已授权可使用 相对消费者
	NoteStatus_USED     NoteStatus = 2 //已使用
	NoteStatus_FROZEN   NoteStatus = 3 //未授权
	NoteStatus_UNFROZEN NoteStatus = 4 //已授权 相对授权者
)

func (NoteStatus) Descriptor

func (NoteStatus) Descriptor() protoreflect.EnumDescriptor

func (NoteStatus) Enum

func (x NoteStatus) Enum() *NoteStatus

func (NoteStatus) EnumDescriptor deprecated

func (NoteStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use NoteStatus.Descriptor instead.

func (NoteStatus) Number

func (x NoteStatus) Number() protoreflect.EnumNumber

func (NoteStatus) String

func (x NoteStatus) String() string

func (NoteStatus) Type

type PaymentKeysReq

type PaymentKeysReq struct {
	PrivKey string `protobuf:"bytes,1,opt,name=privKey,proto3" json:"privKey,omitempty"` //user wallet priv key
	Addr    string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`       //user addr
	Detail  bool   `protobuf:"varint,3,opt,name=detail,proto3" json:"detail,omitempty"`  //获取私钥信息
	// contains filtered or unexported fields
}

func (*PaymentKeysReq) Descriptor deprecated

func (*PaymentKeysReq) Descriptor() ([]byte, []int)

Deprecated: Use PaymentKeysReq.ProtoReflect.Descriptor instead.

func (*PaymentKeysReq) GetAddr

func (x *PaymentKeysReq) GetAddr() string

func (*PaymentKeysReq) GetDetail

func (x *PaymentKeysReq) GetDetail() bool

func (*PaymentKeysReq) GetPrivKey

func (x *PaymentKeysReq) GetPrivKey() string

func (*PaymentKeysReq) ProtoMessage

func (*PaymentKeysReq) ProtoMessage()

func (*PaymentKeysReq) ProtoReflect

func (x *PaymentKeysReq) ProtoReflect() protoreflect.Message

func (*PaymentKeysReq) Reset

func (x *PaymentKeysReq) Reset()

func (*PaymentKeysReq) String

func (x *PaymentKeysReq) String() string

type PrivacyAddrResult

type PrivacyAddrResult struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	IsOK bool   `protobuf:"varint,2,opt,name=isOK,proto3" json:"isOK,omitempty"`
	Msg  string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivacyAddrResult) Descriptor deprecated

func (*PrivacyAddrResult) Descriptor() ([]byte, []int)

Deprecated: Use PrivacyAddrResult.ProtoReflect.Descriptor instead.

func (*PrivacyAddrResult) GetAddr

func (x *PrivacyAddrResult) GetAddr() string

func (*PrivacyAddrResult) GetIsOK

func (x *PrivacyAddrResult) GetIsOK() bool

func (*PrivacyAddrResult) GetMsg

func (x *PrivacyAddrResult) GetMsg() string

func (*PrivacyAddrResult) ProtoMessage

func (*PrivacyAddrResult) ProtoMessage()

func (*PrivacyAddrResult) ProtoReflect

func (x *PrivacyAddrResult) ProtoReflect() protoreflect.Message

func (*PrivacyAddrResult) Reset

func (x *PrivacyAddrResult) Reset()

func (*PrivacyAddrResult) String

func (x *PrivacyAddrResult) String() string

type ReceiptArchiveLeaves

type ReceiptArchiveLeaves struct {
	Count    int32  `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	RootHash string `protobuf:"bytes,2,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	LastLeaf string `protobuf:"bytes,3,opt,name=lastLeaf,proto3" json:"lastLeaf,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptArchiveLeaves) Descriptor deprecated

func (*ReceiptArchiveLeaves) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptArchiveLeaves.ProtoReflect.Descriptor instead.

func (*ReceiptArchiveLeaves) GetCount

func (x *ReceiptArchiveLeaves) GetCount() int32

func (*ReceiptArchiveLeaves) GetLastLeaf

func (x *ReceiptArchiveLeaves) GetLastLeaf() string

func (*ReceiptArchiveLeaves) GetRootHash

func (x *ReceiptArchiveLeaves) GetRootHash() string

func (*ReceiptArchiveLeaves) ProtoMessage

func (*ReceiptArchiveLeaves) ProtoMessage()

func (*ReceiptArchiveLeaves) ProtoReflect

func (x *ReceiptArchiveLeaves) ProtoReflect() protoreflect.Message

func (*ReceiptArchiveLeaves) Reset

func (x *ReceiptArchiveLeaves) Reset()

func (*ReceiptArchiveLeaves) String

func (x *ReceiptArchiveLeaves) String() string

type ReceiptArchiveTreeRoot

type ReceiptArchiveTreeRoot struct {
	Seq      uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	RootHash string `protobuf:"bytes,2,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptArchiveTreeRoot) Descriptor deprecated

func (*ReceiptArchiveTreeRoot) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptArchiveTreeRoot.ProtoReflect.Descriptor instead.

func (*ReceiptArchiveTreeRoot) GetRootHash

func (x *ReceiptArchiveTreeRoot) GetRootHash() string

func (*ReceiptArchiveTreeRoot) GetSeq

func (x *ReceiptArchiveTreeRoot) GetSeq() uint64

func (*ReceiptArchiveTreeRoot) ProtoMessage

func (*ReceiptArchiveTreeRoot) ProtoMessage()

func (*ReceiptArchiveTreeRoot) ProtoReflect

func (x *ReceiptArchiveTreeRoot) ProtoReflect() protoreflect.Message

func (*ReceiptArchiveTreeRoot) Reset

func (x *ReceiptArchiveTreeRoot) Reset()

func (*ReceiptArchiveTreeRoot) String

func (x *ReceiptArchiveTreeRoot) String() string

type ReceiptCommitSubLeaves

type ReceiptCommitSubLeaves struct {
	Seq  int32  `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	Leaf string `protobuf:"bytes,2,opt,name=leaf,proto3" json:"leaf,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptCommitSubLeaves) Descriptor deprecated

func (*ReceiptCommitSubLeaves) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptCommitSubLeaves.ProtoReflect.Descriptor instead.

func (*ReceiptCommitSubLeaves) GetLeaf

func (x *ReceiptCommitSubLeaves) GetLeaf() string

func (*ReceiptCommitSubLeaves) GetSeq

func (x *ReceiptCommitSubLeaves) GetSeq() int32

func (*ReceiptCommitSubLeaves) ProtoMessage

func (*ReceiptCommitSubLeaves) ProtoMessage()

func (*ReceiptCommitSubLeaves) ProtoReflect

func (x *ReceiptCommitSubLeaves) ProtoReflect() protoreflect.Message

func (*ReceiptCommitSubLeaves) Reset

func (x *ReceiptCommitSubLeaves) Reset()

func (*ReceiptCommitSubLeaves) String

func (x *ReceiptCommitSubLeaves) String() string

type ReceiptCommitSubRoots

type ReceiptCommitSubRoots struct {
	Seq  int32  `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	Root string `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptCommitSubRoots) Descriptor deprecated

func (*ReceiptCommitSubRoots) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptCommitSubRoots.ProtoReflect.Descriptor instead.

func (*ReceiptCommitSubRoots) GetRoot

func (x *ReceiptCommitSubRoots) GetRoot() string

func (*ReceiptCommitSubRoots) GetSeq

func (x *ReceiptCommitSubRoots) GetSeq() int32

func (*ReceiptCommitSubRoots) ProtoMessage

func (*ReceiptCommitSubRoots) ProtoMessage()

func (*ReceiptCommitSubRoots) ProtoReflect

func (x *ReceiptCommitSubRoots) ProtoReflect() protoreflect.Message

func (*ReceiptCommitSubRoots) Reset

func (x *ReceiptCommitSubRoots) Reset()

func (*ReceiptCommitSubRoots) String

func (x *ReceiptCommitSubRoots) String() string

type ReceiptCommitTreeStatus

type ReceiptCommitTreeStatus struct {
	Prev    *CommitTreeStatus `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	Current *CommitTreeStatus `protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiptCommitTreeStatus) Descriptor deprecated

func (*ReceiptCommitTreeStatus) Descriptor() ([]byte, []int)

Deprecated: Use ReceiptCommitTreeStatus.ProtoReflect.Descriptor instead.

func (*ReceiptCommitTreeStatus) GetCurrent

func (x *ReceiptCommitTreeStatus) GetCurrent() *CommitTreeStatus

func (*ReceiptCommitTreeStatus) GetPrev

func (*ReceiptCommitTreeStatus) ProtoMessage

func (*ReceiptCommitTreeStatus) ProtoMessage()

func (*ReceiptCommitTreeStatus) ProtoReflect

func (x *ReceiptCommitTreeStatus) ProtoReflect() protoreflect.Message

func (*ReceiptCommitTreeStatus) Reset

func (x *ReceiptCommitTreeStatus) Reset()

func (*ReceiptCommitTreeStatus) String

func (x *ReceiptCommitTreeStatus) String() string

type ReqEnablePrivacyRst

type ReqEnablePrivacyRst struct {
	Results []*PrivacyAddrResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ReqEnablePrivacyRst) Descriptor deprecated

func (*ReqEnablePrivacyRst) Descriptor() ([]byte, []int)

Deprecated: Use ReqEnablePrivacyRst.ProtoReflect.Descriptor instead.

func (*ReqEnablePrivacyRst) GetResults

func (x *ReqEnablePrivacyRst) GetResults() []*PrivacyAddrResult

func (*ReqEnablePrivacyRst) ProtoMessage

func (*ReqEnablePrivacyRst) ProtoMessage()

func (*ReqEnablePrivacyRst) ProtoReflect

func (x *ReqEnablePrivacyRst) ProtoReflect() protoreflect.Message

func (*ReqEnablePrivacyRst) Reset

func (x *ReqEnablePrivacyRst) Reset()

func (*ReqEnablePrivacyRst) String

func (x *ReqEnablePrivacyRst) String() string

type RootListResp

type RootListResp struct {
	Roots []string `protobuf:"bytes,1,rep,name=roots,proto3" json:"roots,omitempty"`
	// contains filtered or unexported fields
}

func (*RootListResp) Descriptor deprecated

func (*RootListResp) Descriptor() ([]byte, []int)

Deprecated: Use RootListResp.ProtoReflect.Descriptor instead.

func (*RootListResp) GetRoots

func (x *RootListResp) GetRoots() []string

func (*RootListResp) ProtoMessage

func (*RootListResp) ProtoMessage()

func (*RootListResp) ProtoReflect

func (x *RootListResp) ProtoReflect() protoreflect.Message

func (*RootListResp) Reset

func (x *RootListResp) Reset()

func (*RootListResp) String

func (x *RootListResp) String() string

type SecretData

type SecretData struct {
	ReceiverKey  string `protobuf:"bytes,1,opt,name=receiverKey,proto3" json:"receiverKey,omitempty"`
	ReturnKey    string `protobuf:"bytes,2,opt,name=returnKey,proto3" json:"returnKey,omitempty"`
	AuthorizeKey string `protobuf:"bytes,3,opt,name=authorizeKey,proto3" json:"authorizeKey,omitempty"`
	Amount       string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	NoteRandom   string `protobuf:"bytes,5,opt,name=noteRandom,proto3" json:"noteRandom,omitempty"`
	AssetExec    string `protobuf:"bytes,6,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol  string `protobuf:"bytes,7,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretData) Descriptor deprecated

func (*SecretData) Descriptor() ([]byte, []int)

Deprecated: Use SecretData.ProtoReflect.Descriptor instead.

func (*SecretData) GetAmount

func (x *SecretData) GetAmount() string

func (*SecretData) GetAssetExec

func (x *SecretData) GetAssetExec() string

func (*SecretData) GetAssetSymbol

func (x *SecretData) GetAssetSymbol() string

func (*SecretData) GetAuthorizeKey

func (x *SecretData) GetAuthorizeKey() string

func (*SecretData) GetNoteRandom

func (x *SecretData) GetNoteRandom() string

func (*SecretData) GetReceiverKey

func (x *SecretData) GetReceiverKey() string

func (*SecretData) GetReturnKey

func (x *SecretData) GetReturnKey() string

func (*SecretData) ProtoMessage

func (*SecretData) ProtoMessage()

func (*SecretData) ProtoReflect

func (x *SecretData) ProtoReflect() protoreflect.Message

func (*SecretData) Reset

func (x *SecretData) Reset()

func (*SecretData) String

func (x *SecretData) String() string

type ShieldAmount

type ShieldAmount struct {
	X string `protobuf:"bytes,1,opt,name=X,proto3" json:"X,omitempty"`
	Y string `protobuf:"bytes,2,opt,name=Y,proto3" json:"Y,omitempty"`
	// contains filtered or unexported fields
}

加密了的input/output amount

func (*ShieldAmount) Descriptor deprecated

func (*ShieldAmount) Descriptor() ([]byte, []int)

Deprecated: Use ShieldAmount.ProtoReflect.Descriptor instead.

func (*ShieldAmount) GetX

func (x *ShieldAmount) GetX() string

func (*ShieldAmount) GetY

func (x *ShieldAmount) GetY() string

func (*ShieldAmount) ProtoMessage

func (*ShieldAmount) ProtoMessage()

func (*ShieldAmount) ProtoReflect

func (x *ShieldAmount) ProtoReflect() protoreflect.Message

func (*ShieldAmount) Reset

func (x *ShieldAmount) Reset()

func (*ShieldAmount) String

func (x *ShieldAmount) String() string

type ShieldAmountRst

type ShieldAmountRst struct {
	InputRandoms []string        `protobuf:"bytes,1,rep,name=inputRandoms,proto3" json:"inputRandoms,omitempty"`
	OutputRandom string          `protobuf:"bytes,2,opt,name=outputRandom,proto3" json:"outputRandom,omitempty"`
	ChangeRandom string          `protobuf:"bytes,3,opt,name=changeRandom,proto3" json:"changeRandom,omitempty"`
	Inputs       []*ShieldAmount `protobuf:"bytes,4,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Output       *ShieldAmount   `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
	Change       *ShieldAmount   `protobuf:"bytes,6,opt,name=change,proto3" json:"change,omitempty"`
	// contains filtered or unexported fields
}

func (*ShieldAmountRst) Descriptor deprecated

func (*ShieldAmountRst) Descriptor() ([]byte, []int)

Deprecated: Use ShieldAmountRst.ProtoReflect.Descriptor instead.

func (*ShieldAmountRst) GetChange

func (x *ShieldAmountRst) GetChange() *ShieldAmount

func (*ShieldAmountRst) GetChangeRandom

func (x *ShieldAmountRst) GetChangeRandom() string

func (*ShieldAmountRst) GetInputRandoms

func (x *ShieldAmountRst) GetInputRandoms() []string

func (*ShieldAmountRst) GetInputs

func (x *ShieldAmountRst) GetInputs() []*ShieldAmount

func (*ShieldAmountRst) GetOutput

func (x *ShieldAmountRst) GetOutput() *ShieldAmount

func (*ShieldAmountRst) GetOutputRandom

func (x *ShieldAmountRst) GetOutputRandom() string

func (*ShieldAmountRst) ProtoMessage

func (*ShieldAmountRst) ProtoMessage()

func (*ShieldAmountRst) ProtoReflect

func (x *ShieldAmountRst) ProtoReflect() protoreflect.Message

func (*ShieldAmountRst) Reset

func (x *ShieldAmountRst) Reset()

func (*ShieldAmountRst) String

func (x *ShieldAmountRst) String() string

type SubTreeResp

type SubTreeResp struct {
	Height int32  `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Hash   string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*SubTreeResp) Descriptor deprecated

func (*SubTreeResp) Descriptor() ([]byte, []int)

Deprecated: Use SubTreeResp.ProtoReflect.Descriptor instead.

func (*SubTreeResp) GetHash

func (x *SubTreeResp) GetHash() string

func (*SubTreeResp) GetHeight

func (x *SubTreeResp) GetHeight() int32

func (*SubTreeResp) ProtoMessage

func (*SubTreeResp) ProtoMessage()

func (*SubTreeResp) ProtoReflect

func (x *SubTreeResp) ProtoReflect() protoreflect.Message

func (*SubTreeResp) Reset

func (x *SubTreeResp) Reset()

func (*SubTreeResp) String

func (x *SubTreeResp) String() string

type TokenTxFeeAddrReq

type TokenTxFeeAddrReq struct {
	AssetExec   string `protobuf:"bytes,1,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string `protobuf:"bytes,2,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenTxFeeAddrReq) Descriptor deprecated

func (*TokenTxFeeAddrReq) Descriptor() ([]byte, []int)

Deprecated: Use TokenTxFeeAddrReq.ProtoReflect.Descriptor instead.

func (*TokenTxFeeAddrReq) GetAssetExec

func (x *TokenTxFeeAddrReq) GetAssetExec() string

func (*TokenTxFeeAddrReq) GetAssetSymbol

func (x *TokenTxFeeAddrReq) GetAssetSymbol() string

func (*TokenTxFeeAddrReq) ProtoMessage

func (*TokenTxFeeAddrReq) ProtoMessage()

func (*TokenTxFeeAddrReq) ProtoReflect

func (x *TokenTxFeeAddrReq) ProtoReflect() protoreflect.Message

func (*TokenTxFeeAddrReq) Reset

func (x *TokenTxFeeAddrReq) Reset()

func (*TokenTxFeeAddrReq) String

func (x *TokenTxFeeAddrReq) String() string

type TransferInputCircuit

type TransferInputCircuit struct {
	TreeRootHash       frontend.Variable `gnark:",public"`
	AuthorizeSpendHash frontend.Variable `gnark:",public"`
	NullifierHash      frontend.Variable `gnark:",public"`
	ShieldAmountX      frontend.Variable `gnark:",public"`
	ShieldAmountY      frontend.Variable `gnark:",public"`
	ShieldPointHX      frontend.Variable `gnark:",public"`
	ShieldPointHY      frontend.Variable `gnark:",public"`

	//secret
	ReceiverPubKey  frontend.Variable
	ReturnPubKey    frontend.Variable
	AuthorizePubKey frontend.Variable
	NoteRandom      frontend.Variable

	Amount        frontend.Variable
	AmountRandom  frontend.Variable
	SpendPriKey   frontend.Variable
	SpendFlag     frontend.Variable
	AuthorizeFlag frontend.Variable
	NoteHash      frontend.Variable

	//tree path info
	Path0 frontend.Variable
	Path1 frontend.Variable
	Path2 frontend.Variable
	Path3 frontend.Variable
	Path4 frontend.Variable
	Path5 frontend.Variable
	Path6 frontend.Variable
	Path7 frontend.Variable
	Path8 frontend.Variable
	Path9 frontend.Variable

	Helper0 frontend.Variable
	Helper1 frontend.Variable
	Helper2 frontend.Variable
	Helper3 frontend.Variable
	Helper4 frontend.Variable
	Helper5 frontend.Variable
	Helper6 frontend.Variable
	Helper7 frontend.Variable
	Helper8 frontend.Variable
	Helper9 frontend.Variable

	Valid0 frontend.Variable
	Valid1 frontend.Variable
	Valid2 frontend.Variable
	Valid3 frontend.Variable
	Valid4 frontend.Variable
	Valid5 frontend.Variable
	Valid6 frontend.Variable
	Valid7 frontend.Variable
	Valid8 frontend.Variable
	Valid9 frontend.Variable
}

func (*TransferInputCircuit) Define

func (circuit *TransferInputCircuit) Define(curveID ecc.ID, cs frontend.API) error

Define declares the circuit's constraints

type TransferInputTxReq

type TransferInputTxReq struct {
	NoteHashs string `protobuf:"bytes,1,opt,name=noteHashs,proto3" json:"noteHashs,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferInputTxReq) Descriptor deprecated

func (*TransferInputTxReq) Descriptor() ([]byte, []int)

Deprecated: Use TransferInputTxReq.ProtoReflect.Descriptor instead.

func (*TransferInputTxReq) GetNoteHashs

func (x *TransferInputTxReq) GetNoteHashs() string

func (*TransferInputTxReq) ProtoMessage

func (*TransferInputTxReq) ProtoMessage()

func (*TransferInputTxReq) ProtoReflect

func (x *TransferInputTxReq) ProtoReflect() protoreflect.Message

func (*TransferInputTxReq) Reset

func (x *TransferInputTxReq) Reset()

func (*TransferInputTxReq) String

func (x *TransferInputTxReq) String() string

type TransferOutputCircuit

type TransferOutputCircuit struct {
	//public
	NoteHash      frontend.Variable `gnark:",public"`
	ShieldAmountX frontend.Variable `gnark:",public"`
	ShieldAmountY frontend.Variable `gnark:",public"`
	ShieldPointHX frontend.Variable `gnark:",public"`
	ShieldPointHY frontend.Variable `gnark:",public"`

	//secret
	ReceiverPubKey  frontend.Variable
	ReturnPubKey    frontend.Variable
	AuthorizePubKey frontend.Variable
	NoteRandom      frontend.Variable
	Amount          frontend.Variable
	AmountRandom    frontend.Variable
}

func (*TransferOutputCircuit) Define

func (circuit *TransferOutputCircuit) Define(curveID ecc.ID, cs frontend.API) error

Define declares the circuit's constraints

type TransferOutputTxReq

type TransferOutputTxReq struct {
	Deposit *DepositInfo `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferOutputTxReq) Descriptor deprecated

func (*TransferOutputTxReq) Descriptor() ([]byte, []int)

Deprecated: Use TransferOutputTxReq.ProtoReflect.Descriptor instead.

func (*TransferOutputTxReq) GetDeposit

func (x *TransferOutputTxReq) GetDeposit() *DepositInfo

func (*TransferOutputTxReq) ProtoMessage

func (*TransferOutputTxReq) ProtoMessage()

func (*TransferOutputTxReq) ProtoReflect

func (x *TransferOutputTxReq) ProtoReflect() protoreflect.Message

func (*TransferOutputTxReq) Reset

func (x *TransferOutputTxReq) Reset()

func (*TransferOutputTxReq) String

func (x *TransferOutputTxReq) String() string

type TransferTxReq

type TransferTxReq struct {
	Input  *TransferInputTxReq  `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	Output *TransferOutputTxReq `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	ZkPath string               `protobuf:"bytes,3,opt,name=zkPath,proto3" json:"zkPath,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferTxReq) Descriptor deprecated

func (*TransferTxReq) Descriptor() ([]byte, []int)

Deprecated: Use TransferTxReq.ProtoReflect.Descriptor instead.

func (*TransferTxReq) GetInput

func (x *TransferTxReq) GetInput() *TransferInputTxReq

func (*TransferTxReq) GetOutput

func (x *TransferTxReq) GetOutput() *TransferOutputTxReq

func (*TransferTxReq) GetZkPath

func (x *TransferTxReq) GetZkPath() string

func (*TransferTxReq) ProtoMessage

func (*TransferTxReq) ProtoMessage()

func (*TransferTxReq) ProtoReflect

func (x *TransferTxReq) ProtoReflect() protoreflect.Message

func (*TransferTxReq) Reset

func (x *TransferTxReq) Reset()

func (*TransferTxReq) String

func (x *TransferTxReq) String() string

type TreeInfoReq

type TreeInfoReq struct {
	RootHash    string `protobuf:"bytes,1,opt,name=rootHash,proto3" json:"rootHash,omitempty"`
	LeafHash    string `protobuf:"bytes,2,opt,name=leafHash,proto3" json:"leafHash,omitempty"`
	AssetExec   string `protobuf:"bytes,3,opt,name=assetExec,proto3" json:"assetExec,omitempty"`
	AssetSymbol string `protobuf:"bytes,4,opt,name=assetSymbol,proto3" json:"assetSymbol,omitempty"`
	RootHeight  uint64 `protobuf:"varint,5,opt,name=rootHeight,proto3" json:"rootHeight,omitempty"`
	// contains filtered or unexported fields
}

func (*TreeInfoReq) Descriptor deprecated

func (*TreeInfoReq) Descriptor() ([]byte, []int)

Deprecated: Use TreeInfoReq.ProtoReflect.Descriptor instead.

func (*TreeInfoReq) GetAssetExec

func (x *TreeInfoReq) GetAssetExec() string

func (*TreeInfoReq) GetAssetSymbol

func (x *TreeInfoReq) GetAssetSymbol() string

func (*TreeInfoReq) GetLeafHash

func (x *TreeInfoReq) GetLeafHash() string

func (*TreeInfoReq) GetRootHash

func (x *TreeInfoReq) GetRootHash() string

func (*TreeInfoReq) GetRootHeight

func (x *TreeInfoReq) GetRootHeight() uint64

func (*TreeInfoReq) ProtoMessage

func (*TreeInfoReq) ProtoMessage()

func (*TreeInfoReq) ProtoReflect

func (x *TreeInfoReq) ProtoReflect() protoreflect.Message

func (*TreeInfoReq) Reset

func (x *TreeInfoReq) Reset()

func (*TreeInfoReq) String

func (x *TreeInfoReq) String() string

type TreeListResp

type TreeListResp struct {
	Leaves []string `protobuf:"bytes,1,rep,name=leaves,proto3" json:"leaves,omitempty"`
	// contains filtered or unexported fields
}

func (*TreeListResp) Descriptor deprecated

func (*TreeListResp) Descriptor() ([]byte, []int)

Deprecated: Use TreeListResp.ProtoReflect.Descriptor instead.

func (*TreeListResp) GetLeaves

func (x *TreeListResp) GetLeaves() []string

func (*TreeListResp) ProtoMessage

func (*TreeListResp) ProtoMessage()

func (*TreeListResp) ProtoReflect

func (x *TreeListResp) ProtoReflect() protoreflect.Message

func (*TreeListResp) Reset

func (x *TreeListResp) Reset()

func (*TreeListResp) String

func (x *TreeListResp) String() string

type TreePathProof

type TreePathProof struct {
	TreeRootHash string   `protobuf:"bytes,1,opt,name=treeRootHash,proto3" json:"treeRootHash,omitempty"`
	TreePath     []string `protobuf:"bytes,2,rep,name=treePath,proto3" json:"treePath,omitempty"`
	Helpers      []uint32 `protobuf:"varint,3,rep,packed,name=helpers,proto3" json:"helpers,omitempty"`
	// contains filtered or unexported fields
}

func (*TreePathProof) Descriptor deprecated

func (*TreePathProof) Descriptor() ([]byte, []int)

Deprecated: Use TreePathProof.ProtoReflect.Descriptor instead.

func (*TreePathProof) GetHelpers

func (x *TreePathProof) GetHelpers() []uint32

func (*TreePathProof) GetTreePath

func (x *TreePathProof) GetTreePath() []string

func (*TreePathProof) GetTreeRootHash

func (x *TreePathProof) GetTreeRootHash() string

func (*TreePathProof) ProtoMessage

func (*TreePathProof) ProtoMessage()

func (*TreePathProof) ProtoReflect

func (x *TreePathProof) ProtoReflect() protoreflect.Message

func (*TreePathProof) Reset

func (x *TreePathProof) Reset()

func (*TreePathProof) String

func (x *TreePathProof) String() string

type TreeStatusResp

type TreeStatusResp struct {
	SubLeavesSeq    int32          `protobuf:"varint,1,opt,name=subLeavesSeq,proto3" json:"subLeavesSeq,omitempty"`
	ArchiveRootsSeq uint64         `protobuf:"varint,2,opt,name=archiveRootsSeq,proto3" json:"archiveRootsSeq,omitempty"`
	SubTrees        []*SubTreeResp `protobuf:"bytes,3,rep,name=subTrees,proto3" json:"subTrees,omitempty"`
	// contains filtered or unexported fields
}

func (*TreeStatusResp) Descriptor deprecated

func (*TreeStatusResp) Descriptor() ([]byte, []int)

Deprecated: Use TreeStatusResp.ProtoReflect.Descriptor instead.

func (*TreeStatusResp) GetArchiveRootsSeq

func (x *TreeStatusResp) GetArchiveRootsSeq() uint64

func (*TreeStatusResp) GetSubLeavesSeq

func (x *TreeStatusResp) GetSubLeavesSeq() int32

func (*TreeStatusResp) GetSubTrees

func (x *TreeStatusResp) GetSubTrees() []*SubTreeResp

func (*TreeStatusResp) ProtoMessage

func (*TreeStatusResp) ProtoMessage()

func (*TreeStatusResp) ProtoReflect

func (x *TreeStatusResp) ProtoReflect() protoreflect.Message

func (*TreeStatusResp) Reset

func (x *TreeStatusResp) Reset()

func (*TreeStatusResp) String

func (x *TreeStatusResp) String() string

type UnimplementedMixPrivacyServer

type UnimplementedMixPrivacyServer struct {
}

UnimplementedMixPrivacyServer can be embedded to have forward compatible implementations.

func (*UnimplementedMixPrivacyServer) EnablePrivacy

func (*UnimplementedMixPrivacyServer) GetRescanStatus

func (*UnimplementedMixPrivacyServer) RescanNotes

type VerifyProofInfo

type VerifyProofInfo struct {
	Ty    VerifyType   `protobuf:"varint,1,opt,name=ty,proto3,enum=types.VerifyType" json:"ty,omitempty"`
	Proof *ZkProofInfo `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyProofInfo) Descriptor deprecated

func (*VerifyProofInfo) Descriptor() ([]byte, []int)

Deprecated: Use VerifyProofInfo.ProtoReflect.Descriptor instead.

func (*VerifyProofInfo) GetProof

func (x *VerifyProofInfo) GetProof() *ZkProofInfo

func (*VerifyProofInfo) GetTy

func (x *VerifyProofInfo) GetTy() VerifyType

func (*VerifyProofInfo) ProtoMessage

func (*VerifyProofInfo) ProtoMessage()

func (*VerifyProofInfo) ProtoReflect

func (x *VerifyProofInfo) ProtoReflect() protoreflect.Message

func (*VerifyProofInfo) Reset

func (x *VerifyProofInfo) Reset()

func (*VerifyProofInfo) String

func (x *VerifyProofInfo) String() string

type VerifyType

type VerifyType int32

区分不同的验证电路

const (
	VerifyType_DEPOSIT        VerifyType = 0
	VerifyType_WITHDRAW       VerifyType = 1
	VerifyType_TRANSFERINPUT  VerifyType = 2
	VerifyType_TRANSFEROUTPUT VerifyType = 3
	VerifyType_AUTHORIZE      VerifyType = 4
)

func (VerifyType) Descriptor

func (VerifyType) Descriptor() protoreflect.EnumDescriptor

func (VerifyType) Enum

func (x VerifyType) Enum() *VerifyType

func (VerifyType) EnumDescriptor deprecated

func (VerifyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VerifyType.Descriptor instead.

func (VerifyType) Number

func (x VerifyType) Number() protoreflect.EnumNumber

func (VerifyType) String

func (x VerifyType) String() string

func (VerifyType) Type

type WalletAddrPrivacy

type WalletAddrPrivacy struct {
	Privacy *AccountPrivacyKey `protobuf:"bytes,1,opt,name=privacy,proto3" json:"privacy,omitempty"`
	Addr    string             `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletAddrPrivacy) Descriptor deprecated

func (*WalletAddrPrivacy) Descriptor() ([]byte, []int)

Deprecated: Use WalletAddrPrivacy.ProtoReflect.Descriptor instead.

func (*WalletAddrPrivacy) GetAddr

func (x *WalletAddrPrivacy) GetAddr() string

func (*WalletAddrPrivacy) GetPrivacy

func (x *WalletAddrPrivacy) GetPrivacy() *AccountPrivacyKey

func (*WalletAddrPrivacy) ProtoMessage

func (*WalletAddrPrivacy) ProtoMessage()

func (*WalletAddrPrivacy) ProtoReflect

func (x *WalletAddrPrivacy) ProtoReflect() protoreflect.Message

func (*WalletAddrPrivacy) Reset

func (x *WalletAddrPrivacy) Reset()

func (*WalletAddrPrivacy) String

func (x *WalletAddrPrivacy) String() string

type WalletDbMixInfo

type WalletDbMixInfo struct {
	Info    *WalletNoteInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	TxIndex string          `protobuf:"bytes,2,opt,name=txIndex,proto3" json:"txIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletDbMixInfo) Descriptor deprecated

func (*WalletDbMixInfo) Descriptor() ([]byte, []int)

Deprecated: Use WalletDbMixInfo.ProtoReflect.Descriptor instead.

func (*WalletDbMixInfo) GetInfo

func (x *WalletDbMixInfo) GetInfo() *WalletNoteInfo

func (*WalletDbMixInfo) GetTxIndex

func (x *WalletDbMixInfo) GetTxIndex() string

func (*WalletDbMixInfo) ProtoMessage

func (*WalletDbMixInfo) ProtoMessage()

func (*WalletDbMixInfo) ProtoReflect

func (x *WalletDbMixInfo) ProtoReflect() protoreflect.Message

func (*WalletDbMixInfo) Reset

func (x *WalletDbMixInfo) Reset()

func (*WalletDbMixInfo) String

func (x *WalletDbMixInfo) String() string

type WalletEnablePrivacyResp

type WalletEnablePrivacyResp struct {
	Resps []*WalletEnablePrivacyRst `protobuf:"bytes,1,rep,name=resps,proto3" json:"resps,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletEnablePrivacyResp) Descriptor deprecated

func (*WalletEnablePrivacyResp) Descriptor() ([]byte, []int)

Deprecated: Use WalletEnablePrivacyResp.ProtoReflect.Descriptor instead.

func (*WalletEnablePrivacyResp) GetResps

func (*WalletEnablePrivacyResp) ProtoMessage

func (*WalletEnablePrivacyResp) ProtoMessage()

func (*WalletEnablePrivacyResp) ProtoReflect

func (x *WalletEnablePrivacyResp) ProtoReflect() protoreflect.Message

func (*WalletEnablePrivacyResp) Reset

func (x *WalletEnablePrivacyResp) Reset()

func (*WalletEnablePrivacyResp) String

func (x *WalletEnablePrivacyResp) String() string

type WalletEnablePrivacyRst

type WalletEnablePrivacyRst struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	IsOK bool   `protobuf:"varint,2,opt,name=isOK,proto3" json:"isOK,omitempty"`
	Msg  string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletEnablePrivacyRst) Descriptor deprecated

func (*WalletEnablePrivacyRst) Descriptor() ([]byte, []int)

Deprecated: Use WalletEnablePrivacyRst.ProtoReflect.Descriptor instead.

func (*WalletEnablePrivacyRst) GetAddr

func (x *WalletEnablePrivacyRst) GetAddr() string

func (*WalletEnablePrivacyRst) GetIsOK

func (x *WalletEnablePrivacyRst) GetIsOK() bool

func (*WalletEnablePrivacyRst) GetMsg

func (x *WalletEnablePrivacyRst) GetMsg() string

func (*WalletEnablePrivacyRst) ProtoMessage

func (*WalletEnablePrivacyRst) ProtoMessage()

func (*WalletEnablePrivacyRst) ProtoReflect

func (x *WalletEnablePrivacyRst) ProtoReflect() protoreflect.Message

func (*WalletEnablePrivacyRst) Reset

func (x *WalletEnablePrivacyRst) Reset()

func (*WalletEnablePrivacyRst) String

func (x *WalletEnablePrivacyRst) String() string

type WalletMixIndexReq

type WalletMixIndexReq struct {
	NoteHash           string `protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
	Nullifier          string `protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
	AuthorizeSpendHash string `protobuf:"bytes,3,opt,name=authorizeSpendHash,proto3" json:"authorizeSpendHash,omitempty"`
	AuthorizeHash      string `protobuf:"bytes,4,opt,name=authorizeHash,proto3" json:"authorizeHash,omitempty"`
	Account            string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"`
	Status             int32  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
	Count              int32  `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"`
	Direction          int32  `protobuf:"varint,8,opt,name=direction,proto3" json:"direction,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletMixIndexReq) Descriptor deprecated

func (*WalletMixIndexReq) Descriptor() ([]byte, []int)

Deprecated: Use WalletMixIndexReq.ProtoReflect.Descriptor instead.

func (*WalletMixIndexReq) GetAccount

func (x *WalletMixIndexReq) GetAccount() string

func (*WalletMixIndexReq) GetAuthorizeHash

func (x *WalletMixIndexReq) GetAuthorizeHash() string

func (*WalletMixIndexReq) GetAuthorizeSpendHash

func (x *WalletMixIndexReq) GetAuthorizeSpendHash() string

func (*WalletMixIndexReq) GetCount

func (x *WalletMixIndexReq) GetCount() int32

func (*WalletMixIndexReq) GetDirection

func (x *WalletMixIndexReq) GetDirection() int32

func (*WalletMixIndexReq) GetNoteHash

func (x *WalletMixIndexReq) GetNoteHash() string

func (*WalletMixIndexReq) GetNullifier

func (x *WalletMixIndexReq) GetNullifier() string

func (*WalletMixIndexReq) GetStatus

func (x *WalletMixIndexReq) GetStatus() int32

func (*WalletMixIndexReq) ProtoMessage

func (*WalletMixIndexReq) ProtoMessage()

func (*WalletMixIndexReq) ProtoReflect

func (x *WalletMixIndexReq) ProtoReflect() protoreflect.Message

func (*WalletMixIndexReq) Reset

func (x *WalletMixIndexReq) Reset()

func (*WalletMixIndexReq) String

func (x *WalletMixIndexReq) String() string

type WalletNoteInfo

type WalletNoteInfo struct {
	NoteHash           string      `protobuf:"bytes,1,opt,name=noteHash,proto3" json:"noteHash,omitempty"`
	Nullifier          string      `protobuf:"bytes,2,opt,name=nullifier,proto3" json:"nullifier,omitempty"`
	AuthorizeSpendHash string      `protobuf:"bytes,3,opt,name=authorizeSpendHash,proto3" json:"authorizeSpendHash,omitempty"`
	AuthorizeHash      string      `protobuf:"bytes,4,opt,name=authorizeHash,proto3" json:"authorizeHash,omitempty"`
	Account            string      `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` //账户地址
	Status             NoteStatus  `protobuf:"varint,6,opt,name=status,proto3,enum=types.NoteStatus" json:"status,omitempty"`
	Secret             *SecretData `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletNoteInfo) Descriptor deprecated

func (*WalletNoteInfo) Descriptor() ([]byte, []int)

Deprecated: Use WalletNoteInfo.ProtoReflect.Descriptor instead.

func (*WalletNoteInfo) GetAccount

func (x *WalletNoteInfo) GetAccount() string

func (*WalletNoteInfo) GetAuthorizeHash

func (x *WalletNoteInfo) GetAuthorizeHash() string

func (*WalletNoteInfo) GetAuthorizeSpendHash

func (x *WalletNoteInfo) GetAuthorizeSpendHash() string

func (*WalletNoteInfo) GetNoteHash

func (x *WalletNoteInfo) GetNoteHash() string

func (*WalletNoteInfo) GetNullifier

func (x *WalletNoteInfo) GetNullifier() string

func (*WalletNoteInfo) GetSecret

func (x *WalletNoteInfo) GetSecret() *SecretData

func (*WalletNoteInfo) GetStatus

func (x *WalletNoteInfo) GetStatus() NoteStatus

func (*WalletNoteInfo) ProtoMessage

func (*WalletNoteInfo) ProtoMessage()

func (*WalletNoteInfo) ProtoReflect

func (x *WalletNoteInfo) ProtoReflect() protoreflect.Message

func (*WalletNoteInfo) Reset

func (x *WalletNoteInfo) Reset()

func (*WalletNoteInfo) String

func (x *WalletNoteInfo) String() string

type WalletNoteResp

type WalletNoteResp struct {
	Notes []*WalletNoteInfo `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

func (*WalletNoteResp) Descriptor deprecated

func (*WalletNoteResp) Descriptor() ([]byte, []int)

Deprecated: Use WalletNoteResp.ProtoReflect.Descriptor instead.

func (*WalletNoteResp) GetNotes

func (x *WalletNoteResp) GetNotes() []*WalletNoteInfo

func (*WalletNoteResp) ProtoMessage

func (*WalletNoteResp) ProtoMessage()

func (*WalletNoteResp) ProtoReflect

func (x *WalletNoteResp) ProtoReflect() protoreflect.Message

func (*WalletNoteResp) Reset

func (x *WalletNoteResp) Reset()

func (*WalletNoteResp) String

func (x *WalletNoteResp) String() string

type WithdrawCircuit

type WithdrawCircuit struct {
	//public
	TreeRootHash       frontend.Variable `gnark:",public"`
	AuthorizeSpendHash frontend.Variable `gnark:",public"`
	NullifierHash      frontend.Variable `gnark:",public"`
	Amount             frontend.Variable `gnark:",public"`

	//secret
	ReceiverPubKey  frontend.Variable
	ReturnPubKey    frontend.Variable
	AuthorizePubKey frontend.Variable
	NoteRandom      frontend.Variable
	SpendPriKey     frontend.Variable
	SpendFlag       frontend.Variable
	AuthorizeFlag   frontend.Variable

	//tree path info
	NoteHash frontend.Variable
	Path0    frontend.Variable
	Path1    frontend.Variable
	Path2    frontend.Variable
	Path3    frontend.Variable
	Path4    frontend.Variable
	Path5    frontend.Variable
	Path6    frontend.Variable
	Path7    frontend.Variable
	Path8    frontend.Variable
	Path9    frontend.Variable

	Helper0 frontend.Variable
	Helper1 frontend.Variable
	Helper2 frontend.Variable
	Helper3 frontend.Variable
	Helper4 frontend.Variable
	Helper5 frontend.Variable
	Helper6 frontend.Variable
	Helper7 frontend.Variable
	Helper8 frontend.Variable
	Helper9 frontend.Variable

	Valid0 frontend.Variable
	Valid1 frontend.Variable
	Valid2 frontend.Variable
	Valid3 frontend.Variable
	Valid4 frontend.Variable
	Valid5 frontend.Variable
	Valid6 frontend.Variable
	Valid7 frontend.Variable
	Valid8 frontend.Variable
	Valid9 frontend.Variable
}

func (*WithdrawCircuit) Define

func (circuit *WithdrawCircuit) Define(curveID ecc.ID, cs frontend.API) error

Define declares the circuit's constraints

type WithdrawTxReq

type WithdrawTxReq struct {
	TotalAmount uint64 `protobuf:"varint,1,opt,name=totalAmount,proto3" json:"totalAmount,omitempty"`
	NoteHashs   string `protobuf:"bytes,2,opt,name=noteHashs,proto3" json:"noteHashs,omitempty"` // seperate by ","
	ZkPath      string `protobuf:"bytes,3,opt,name=zkPath,proto3" json:"zkPath,omitempty"`
	// contains filtered or unexported fields
}

可withdraw 多个note

func (*WithdrawTxReq) Descriptor deprecated

func (*WithdrawTxReq) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawTxReq.ProtoReflect.Descriptor instead.

func (*WithdrawTxReq) GetNoteHashs

func (x *WithdrawTxReq) GetNoteHashs() string

func (*WithdrawTxReq) GetTotalAmount

func (x *WithdrawTxReq) GetTotalAmount() uint64

func (*WithdrawTxReq) GetZkPath

func (x *WithdrawTxReq) GetZkPath() string

func (*WithdrawTxReq) ProtoMessage

func (*WithdrawTxReq) ProtoMessage()

func (*WithdrawTxReq) ProtoReflect

func (x *WithdrawTxReq) ProtoReflect() protoreflect.Message

func (*WithdrawTxReq) Reset

func (x *WithdrawTxReq) Reset()

func (*WithdrawTxReq) String

func (x *WithdrawTxReq) String() string

type Witness

type Witness []fr.Element

func (*Witness) LimitReadFrom

func (witness *Witness) LimitReadFrom(r io.Reader) (int64, error)

type ZkProofInfo

type ZkProofInfo struct {
	Proof       string         `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	PublicInput string         `protobuf:"bytes,2,opt,name=publicInput,proto3" json:"publicInput,omitempty"`
	Secrets     *DHSecretGroup `protobuf:"bytes,3,opt,name=secrets,proto3" json:"secrets,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkProofInfo) Descriptor deprecated

func (*ZkProofInfo) Descriptor() ([]byte, []int)

Deprecated: Use ZkProofInfo.ProtoReflect.Descriptor instead.

func (*ZkProofInfo) GetProof

func (x *ZkProofInfo) GetProof() string

func (*ZkProofInfo) GetPublicInput

func (x *ZkProofInfo) GetPublicInput() string

func (*ZkProofInfo) GetSecrets

func (x *ZkProofInfo) GetSecrets() *DHSecretGroup

func (*ZkProofInfo) ProtoMessage

func (*ZkProofInfo) ProtoMessage()

func (*ZkProofInfo) ProtoReflect

func (x *ZkProofInfo) ProtoReflect() protoreflect.Message

func (*ZkProofInfo) Reset

func (x *ZkProofInfo) Reset()

func (*ZkProofInfo) String

func (x *ZkProofInfo) String() string

type ZkVerifyKeys

type ZkVerifyKeys struct {
	Data []*MixZkVerifyKey `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ZkVerifyKeys) Descriptor deprecated

func (*ZkVerifyKeys) Descriptor() ([]byte, []int)

Deprecated: Use ZkVerifyKeys.ProtoReflect.Descriptor instead.

func (*ZkVerifyKeys) GetData

func (x *ZkVerifyKeys) GetData() []*MixZkVerifyKey

func (*ZkVerifyKeys) ProtoMessage

func (*ZkVerifyKeys) ProtoMessage()

func (*ZkVerifyKeys) ProtoReflect

func (x *ZkVerifyKeys) ProtoReflect() protoreflect.Message

func (*ZkVerifyKeys) Reset

func (x *ZkVerifyKeys) Reset()

func (*ZkVerifyKeys) String

func (x *ZkVerifyKeys) String() string

Jump to

Keyboard shortcuts

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