xldgpb

package
v0.0.0-...-56f3d1a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 22

Documentation

Index

Constants

View Source
const (
	BlocksTablePrefix        = "B" //表名prefix必须用一个字母,否则拼key在compare的时候会和后面的后缀无法区分开
	UTXOTablePrefix          = "U"
	UnconfirmedTablePrefix   = "N"
	ConfirmedTablePrefix     = "C"
	MetaTablePrefix          = "M"
	PendingBlocksTablePrefix = "PB"
	ExtUtxoDelTablePrefix    = "ZD"
	ExtUtxoTablePrefix       = "ZU"
	BlockHeightPrefix        = "ZH"
	BranchInfoPrefix         = "ZI"
)

common definition for KV prefix

View Source
const FeePlaceholder = "$"

FeePlaceholder fee identifier to miner

Variables

View Source
var BlockStatus_name = map[int32]string{
	0: "BLOCK_ERROR",
	1: "BLOCK_TRUNK",
	2: "BLOCK_BRANCH",
	3: "BLOCK_NOEXIST",
}
View Source
var BlockStatus_value = map[string]int32{
	"BLOCK_ERROR":   0,
	"BLOCK_TRUNK":   1,
	"BLOCK_BRANCH":  2,
	"BLOCK_NOEXIST": 3,
}
View Source
var QCState_name = map[int32]string{
	0: "NEW_VIEW",
	1: "PREPARE",
	2: "PRE_COMMIT",
	3: "COMMIT",
	4: "DECIDE",
}
View Source
var QCState_value = map[string]int32{
	"NEW_VIEW":   0,
	"PREPARE":    1,
	"PRE_COMMIT": 2,
	"COMMIT":     3,
	"DECIDE":     4,
}
View Source
var TransactionStatus_name = map[int32]string{
	0: "TX_UNDEFINE",
	1: "TX_NOEXIST",
	2: "TX_CONFIRM",
	3: "TX_FURCATION",
	4: "TX_UNCONFIRM",
	5: "TX_FAILED",
}
View Source
var TransactionStatus_value = map[string]int32{
	"TX_UNDEFINE":  0,
	"TX_NOEXIST":   1,
	"TX_CONFIRM":   2,
	"TX_FURCATION": 3,
	"TX_UNCONFIRM": 4,
	"TX_FAILED":    5,
}

Functions

This section is empty.

Types

type BalanceDetailInfo

type BalanceDetailInfo struct {
	Balance              string   `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	IsFrozen             bool     `protobuf:"varint,2,opt,name=isFrozen,proto3" json:"isFrozen,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BalanceDetailInfo) Descriptor

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

func (*BalanceDetailInfo) GetBalance

func (m *BalanceDetailInfo) GetBalance() string

func (*BalanceDetailInfo) GetIsFrozen

func (m *BalanceDetailInfo) GetIsFrozen() bool

func (*BalanceDetailInfo) ProtoMessage

func (*BalanceDetailInfo) ProtoMessage()

func (*BalanceDetailInfo) Reset

func (m *BalanceDetailInfo) Reset()

func (*BalanceDetailInfo) String

func (m *BalanceDetailInfo) String() string

func (*BalanceDetailInfo) XXX_DiscardUnknown

func (m *BalanceDetailInfo) XXX_DiscardUnknown()

func (*BalanceDetailInfo) XXX_Marshal

func (m *BalanceDetailInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BalanceDetailInfo) XXX_Merge

func (m *BalanceDetailInfo) XXX_Merge(src proto.Message)

func (*BalanceDetailInfo) XXX_Size

func (m *BalanceDetailInfo) XXX_Size() int

func (*BalanceDetailInfo) XXX_Unmarshal

func (m *BalanceDetailInfo) XXX_Unmarshal(b []byte) error

type BlockStatus

type BlockStatus int32

BlockStatus is the status of block

const (
	BlockStatus_BLOCK_ERROR   BlockStatus = 0
	BlockStatus_BLOCK_TRUNK   BlockStatus = 1
	BlockStatus_BLOCK_BRANCH  BlockStatus = 2
	BlockStatus_BLOCK_NOEXIST BlockStatus = 3
)

func (BlockStatus) EnumDescriptor

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

func (BlockStatus) String

func (x BlockStatus) String() string

type HDInfo

type HDInfo struct {
	// HDPublickey
	HdPublicKey []byte `protobuf:"bytes,1,opt,name=hd_public_key,json=hdPublicKey,proto3" json:"hd_public_key,omitempty"`
	// original_hash
	OriginalHash         []byte   `protobuf:"bytes,2,opt,name=original_hash,json=originalHash,proto3" json:"original_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HDInfo) Descriptor

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

func (*HDInfo) GetHdPublicKey

func (m *HDInfo) GetHdPublicKey() []byte

func (*HDInfo) GetOriginalHash

func (m *HDInfo) GetOriginalHash() []byte

func (*HDInfo) ProtoMessage

func (*HDInfo) ProtoMessage()

func (*HDInfo) Reset

func (m *HDInfo) Reset()

func (*HDInfo) String

func (m *HDInfo) String() string

func (*HDInfo) XXX_DiscardUnknown

func (m *HDInfo) XXX_DiscardUnknown()

func (*HDInfo) XXX_Marshal

func (m *HDInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HDInfo) XXX_Merge

func (m *HDInfo) XXX_Merge(src proto.Message)

func (*HDInfo) XXX_Size

func (m *HDInfo) XXX_Size() int

func (*HDInfo) XXX_Unmarshal

func (m *HDInfo) XXX_Unmarshal(b []byte) error

type InternalBlock

type InternalBlock struct {
	// block version
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Random number used to avoid replay attacks
	Nonce int32 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// blockid generate the hash sign of the block used by sha256
	Blockid []byte `protobuf:"bytes,3,opt,name=blockid,proto3" json:"blockid,omitempty"`
	// pre_hash is the parent blockid of the block
	PreHash []byte `protobuf:"bytes,4,opt,name=pre_hash,json=preHash,proto3" json:"pre_hash,omitempty"`
	// The miner id
	Proposer []byte `protobuf:"bytes,5,opt,name=proposer,proto3" json:"proposer,omitempty"`
	// The sign which miner signed: blockid + nonce + timestamp
	Sign []byte `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"`
	// The pk of the miner
	Pubkey []byte `protobuf:"bytes,7,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// The Merkle Tree root
	MerkleRoot []byte `protobuf:"bytes,8,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	// The height of the blockchain
	Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"`
	// Timestamp of the block
	Timestamp int64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Transactions of the block, only txid stored on kv, the detail information
	// stored in another table
	Transactions []*Transaction `protobuf:"bytes,11,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// The transaction count of the block
	TxCount int32 `protobuf:"varint,12,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"`
	// 所有交易hash的merkle tree
	MerkleTree  [][]byte          `protobuf:"bytes,13,rep,name=merkle_tree,json=merkleTree,proto3" json:"merkle_tree,omitempty"`
	CurTerm     int64             `protobuf:"varint,16,opt,name=curTerm,proto3" json:"curTerm,omitempty"`
	CurBlockNum int64             `protobuf:"varint,17,opt,name=curBlockNum,proto3" json:"curBlockNum,omitempty"`
	FailedTxs   map[string]string `` /* 177-byte string literal not displayed */
	TargetBits  int32             `protobuf:"varint,19,opt,name=targetBits,proto3" json:"targetBits,omitempty"`
	// Justify used in chained-bft
	Justify *QuorumCert `protobuf:"bytes,20,opt,name=Justify,proto3" json:"Justify,omitempty"`
	// 下面的属性会动态变化
	// If the block is on the trunk
	InTrunk bool `protobuf:"varint,14,opt,name=in_trunk,json=inTrunk,proto3" json:"in_trunk,omitempty"`
	// Next next block which on trunk
	NextHash             []byte   `protobuf:"bytes,15,opt,name=next_hash,json=nextHash,proto3" json:"next_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The internal block struct

func (*InternalBlock) ContainsTx

func (ib *InternalBlock) ContainsTx(txid []byte) bool

ContainsTx returns whether a tx is included in a block

func (*InternalBlock) Descriptor

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

func (*InternalBlock) GetBlockid

func (m *InternalBlock) GetBlockid() []byte

func (*InternalBlock) GetCoinbaseTotal

func (ib *InternalBlock) GetCoinbaseTotal() *big.Int

GetCoinbaseTotal get total coinbase amount

func (*InternalBlock) GetCurBlockNum

func (m *InternalBlock) GetCurBlockNum() int64

func (*InternalBlock) GetCurTerm

func (m *InternalBlock) GetCurTerm() int64

func (*InternalBlock) GetFailedTxs

func (m *InternalBlock) GetFailedTxs() map[string]string

func (*InternalBlock) GetHeight

func (m *InternalBlock) GetHeight() int64

func (*InternalBlock) GetInTrunk

func (m *InternalBlock) GetInTrunk() bool

func (*InternalBlock) GetJustify

func (m *InternalBlock) GetJustify() *QuorumCert

func (*InternalBlock) GetMerkleRoot

func (m *InternalBlock) GetMerkleRoot() []byte

func (*InternalBlock) GetMerkleTree

func (m *InternalBlock) GetMerkleTree() [][]byte

func (*InternalBlock) GetNextHash

func (m *InternalBlock) GetNextHash() []byte

func (*InternalBlock) GetNonce

func (m *InternalBlock) GetNonce() int32

func (*InternalBlock) GetPreHash

func (m *InternalBlock) GetPreHash() []byte

func (*InternalBlock) GetProposer

func (m *InternalBlock) GetProposer() []byte

func (*InternalBlock) GetPubkey

func (m *InternalBlock) GetPubkey() []byte

func (*InternalBlock) GetSign

func (m *InternalBlock) GetSign() []byte

func (*InternalBlock) GetTargetBits

func (m *InternalBlock) GetTargetBits() int32

func (*InternalBlock) GetTimestamp

func (m *InternalBlock) GetTimestamp() int64

func (*InternalBlock) GetTransactions

func (m *InternalBlock) GetTransactions() []*Transaction

func (*InternalBlock) GetTx

func (ib *InternalBlock) GetTx(txid []byte) *Transaction

GetTx returns a tx included in a block

func (*InternalBlock) GetTxCount

func (m *InternalBlock) GetTxCount() int32

func (*InternalBlock) GetVersion

func (m *InternalBlock) GetVersion() int32

func (*InternalBlock) ProtoMessage

func (*InternalBlock) ProtoMessage()

func (*InternalBlock) Reset

func (m *InternalBlock) Reset()

func (*InternalBlock) String

func (m *InternalBlock) String() string

func (*InternalBlock) XXX_DiscardUnknown

func (m *InternalBlock) XXX_DiscardUnknown()

func (*InternalBlock) XXX_Marshal

func (m *InternalBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InternalBlock) XXX_Merge

func (m *InternalBlock) XXX_Merge(src proto.Message)

func (*InternalBlock) XXX_Size

func (m *InternalBlock) XXX_Size() int

func (*InternalBlock) XXX_Unmarshal

func (m *InternalBlock) XXX_Unmarshal(b []byte) error

type LedgerMeta

type LedgerMeta struct {
	// root block id
	RootBlockid []byte `protobuf:"bytes,1,opt,name=root_blockid,json=rootBlockid,proto3" json:"root_blockid,omitempty"`
	// tip block id
	TipBlockid []byte `protobuf:"bytes,2,opt,name=tip_blockid,json=tipBlockid,proto3" json:"tip_blockid,omitempty"`
	// the height of the trunk
	TrunkHeight          int64    `protobuf:"varint,3,opt,name=trunk_height,json=trunkHeight,proto3" json:"trunk_height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Ledger metadata

func (*LedgerMeta) Descriptor

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

func (*LedgerMeta) GetRootBlockid

func (m *LedgerMeta) GetRootBlockid() []byte

func (*LedgerMeta) GetTipBlockid

func (m *LedgerMeta) GetTipBlockid() []byte

func (*LedgerMeta) GetTrunkHeight

func (m *LedgerMeta) GetTrunkHeight() int64

func (*LedgerMeta) ProtoMessage

func (*LedgerMeta) ProtoMessage()

func (*LedgerMeta) Reset

func (m *LedgerMeta) Reset()

func (*LedgerMeta) String

func (m *LedgerMeta) String() string

func (*LedgerMeta) XXX_DiscardUnknown

func (m *LedgerMeta) XXX_DiscardUnknown()

func (*LedgerMeta) XXX_Marshal

func (m *LedgerMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LedgerMeta) XXX_Merge

func (m *LedgerMeta) XXX_Merge(src proto.Message)

func (*LedgerMeta) XXX_Size

func (m *LedgerMeta) XXX_Size() int

func (*LedgerMeta) XXX_Unmarshal

func (m *LedgerMeta) XXX_Unmarshal(b []byte) error

type ModifyBlock

type ModifyBlock struct {
	// txid交易被effective_txid的交易提出可修改区块链的请求
	EffectiveTxid string `protobuf:"bytes,1,opt,name=effective_txid,json=effectiveTxid,proto3" json:"effective_txid,omitempty"`
	// 本交易是否已被修改标记
	Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"`
	// txid交易被修改生效的高度
	EffectiveHeight int64 `protobuf:"varint,3,opt,name=effective_height,json=effectiveHeight,proto3" json:"effective_height,omitempty"`
	// 监管的public key
	PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// 监管地址对修改的交易id的签名
	Sign                 string   `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ModifyBlock) Descriptor

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

func (*ModifyBlock) GetEffectiveHeight

func (m *ModifyBlock) GetEffectiveHeight() int64

func (*ModifyBlock) GetEffectiveTxid

func (m *ModifyBlock) GetEffectiveTxid() string

func (*ModifyBlock) GetMarked

func (m *ModifyBlock) GetMarked() bool

func (*ModifyBlock) GetPublicKey

func (m *ModifyBlock) GetPublicKey() string

func (*ModifyBlock) GetSign

func (m *ModifyBlock) GetSign() string

func (*ModifyBlock) ProtoMessage

func (*ModifyBlock) ProtoMessage()

func (*ModifyBlock) Reset

func (m *ModifyBlock) Reset()

func (*ModifyBlock) String

func (m *ModifyBlock) String() string

func (*ModifyBlock) XXX_DiscardUnknown

func (m *ModifyBlock) XXX_DiscardUnknown()

func (*ModifyBlock) XXX_Marshal

func (m *ModifyBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ModifyBlock) XXX_Merge

func (m *ModifyBlock) XXX_Merge(src proto.Message)

func (*ModifyBlock) XXX_Size

func (m *ModifyBlock) XXX_Size() int

func (*ModifyBlock) XXX_Unmarshal

func (m *ModifyBlock) XXX_Unmarshal(b []byte) error

type QCSignInfos

type QCSignInfos struct {
	// QCSignInfos
	QCSignInfos          []*SignInfo `protobuf:"bytes,1,rep,name=QCSignInfos,proto3" json:"QCSignInfos,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

QCSignInfos is the signs of the leader gathered from replicas of a specifically certType. A slice of signs is used at present. TODO @qizheng09: It will be change to Threshold-Signatures after Crypto lib support Threshold-Signatures.

func (*QCSignInfos) Descriptor

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

func (*QCSignInfos) GetQCSignInfos

func (m *QCSignInfos) GetQCSignInfos() []*SignInfo

func (*QCSignInfos) ProtoMessage

func (*QCSignInfos) ProtoMessage()

func (*QCSignInfos) Reset

func (m *QCSignInfos) Reset()

func (*QCSignInfos) String

func (m *QCSignInfos) String() string

func (*QCSignInfos) XXX_DiscardUnknown

func (m *QCSignInfos) XXX_DiscardUnknown()

func (*QCSignInfos) XXX_Marshal

func (m *QCSignInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QCSignInfos) XXX_Merge

func (m *QCSignInfos) XXX_Merge(src proto.Message)

func (*QCSignInfos) XXX_Size

func (m *QCSignInfos) XXX_Size() int

func (*QCSignInfos) XXX_Unmarshal

func (m *QCSignInfos) XXX_Unmarshal(b []byte) error

type QCState

type QCState int32

QCState is the phase of hotstuff

const (
	QCState_NEW_VIEW   QCState = 0
	QCState_PREPARE    QCState = 1
	QCState_PRE_COMMIT QCState = 2
	QCState_COMMIT     QCState = 3
	QCState_DECIDE     QCState = 4
)

func (QCState) EnumDescriptor

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

func (QCState) String

func (x QCState) String() string

type QuorumCert

type QuorumCert struct {
	// The id of Proposal this QC certified.
	ProposalId []byte `protobuf:"bytes,1,opt,name=ProposalId,proto3" json:"ProposalId,omitempty"`
	// The msg of Proposal this QC certified.
	ProposalMsg []byte `protobuf:"bytes,2,opt,name=ProposalMsg,proto3" json:"ProposalMsg,omitempty"`
	// The current type of this QC certified.
	// the type contains `NEW_VIEW`, `PREPARE`
	Type QCState `protobuf:"varint,3,opt,name=Type,proto3,enum=xldgpb.QCState" json:"Type,omitempty"`
	// The view number of this QC certified.
	ViewNumber int64 `protobuf:"varint,4,opt,name=ViewNumber,proto3" json:"ViewNumber,omitempty"`
	// SignInfos is the signs of the leader gathered from replicas
	// of a specifically certType.
	SignInfos            *QCSignInfos `protobuf:"bytes,5,opt,name=SignInfos,proto3" json:"SignInfos,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

QuorumCert is a data type that combines a collection of signatures from replicas.

func (*QuorumCert) Descriptor

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

func (*QuorumCert) GetProposalId

func (m *QuorumCert) GetProposalId() []byte

func (*QuorumCert) GetProposalMsg

func (m *QuorumCert) GetProposalMsg() []byte

func (*QuorumCert) GetSignInfos

func (m *QuorumCert) GetSignInfos() *QCSignInfos

func (*QuorumCert) GetType

func (m *QuorumCert) GetType() QCState

func (*QuorumCert) GetViewNumber

func (m *QuorumCert) GetViewNumber() int64

func (*QuorumCert) ProtoMessage

func (*QuorumCert) ProtoMessage()

func (*QuorumCert) Reset

func (m *QuorumCert) Reset()

func (*QuorumCert) String

func (m *QuorumCert) String() string

func (*QuorumCert) XXX_DiscardUnknown

func (m *QuorumCert) XXX_DiscardUnknown()

func (*QuorumCert) XXX_Marshal

func (m *QuorumCert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuorumCert) XXX_Merge

func (m *QuorumCert) XXX_Merge(src proto.Message)

func (*QuorumCert) XXX_Size

func (m *QuorumCert) XXX_Size() int

func (*QuorumCert) XXX_Unmarshal

func (m *QuorumCert) XXX_Unmarshal(b []byte) error

type SignInfo

type SignInfo struct {
	Address              string   `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	PublicKey            string   `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
	Sign                 []byte   `protobuf:"bytes,3,opt,name=Sign,proto3" json:"Sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SignInfo is the signature information of the

func (*SignInfo) Descriptor

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

func (*SignInfo) GetAddress

func (m *SignInfo) GetAddress() string

func (*SignInfo) GetPublicKey

func (m *SignInfo) GetPublicKey() string

func (*SignInfo) GetSign

func (m *SignInfo) GetSign() []byte

func (*SignInfo) ProtoMessage

func (*SignInfo) ProtoMessage()

func (*SignInfo) Reset

func (m *SignInfo) Reset()

func (*SignInfo) String

func (m *SignInfo) String() string

func (*SignInfo) XXX_DiscardUnknown

func (m *SignInfo) XXX_DiscardUnknown()

func (*SignInfo) XXX_Marshal

func (m *SignInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignInfo) XXX_Merge

func (m *SignInfo) XXX_Merge(src proto.Message)

func (*SignInfo) XXX_Size

func (m *SignInfo) XXX_Size() int

func (*SignInfo) XXX_Unmarshal

func (m *SignInfo) XXX_Unmarshal(b []byte) error

type Transaction

type Transaction struct {
	// txid is the id of this transaction
	Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	// the blockid the transaction belong to
	Blockid []byte `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"`
	// Transaction input list
	TxInputs []*protos.TxInput `protobuf:"bytes,3,rep,name=tx_inputs,json=txInputs,proto3" json:"tx_inputs,omitempty"`
	// Transaction output list
	TxOutputs []*protos.TxOutput `protobuf:"bytes,4,rep,name=tx_outputs,json=txOutputs,proto3" json:"tx_outputs,omitempty"`
	// Transaction description or system contract
	Desc []byte `protobuf:"bytes,6,opt,name=desc,proto3" json:"desc,omitempty"`
	// Mining rewards
	Coinbase bool `protobuf:"varint,7,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	// Random number used to avoid replay attacks
	Nonce string `protobuf:"bytes,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Timestamp to launch the transaction
	Timestamp int64 `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// tx format version; tx格式版本号
	Version int32 `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"`
	// auto generated tx
	Autogen          bool                    `protobuf:"varint,11,opt,name=autogen,proto3" json:"autogen,omitempty"`
	TxInputsExt      []*protos.TxInputExt    `protobuf:"bytes,23,rep,name=tx_inputs_ext,json=txInputsExt,proto3" json:"tx_inputs_ext,omitempty"`
	TxOutputsExt     []*protos.TxOutputExt   `protobuf:"bytes,24,rep,name=tx_outputs_ext,json=txOutputsExt,proto3" json:"tx_outputs_ext,omitempty"`
	ContractRequests []*protos.InvokeRequest `protobuf:"bytes,25,rep,name=contract_requests,json=contractRequests,proto3" json:"contract_requests,omitempty"`
	// 权限系统新增字段
	// 交易发起者, 可以是一个Address或者一个Account
	Initiator string `protobuf:"bytes,26,opt,name=initiator,proto3" json:"initiator,omitempty"`
	// 交易发起需要被收集签名的AddressURL集合信息,包括用于utxo转账和用于合约调用
	AuthRequire []string `protobuf:"bytes,27,rep,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"`
	// 交易发起者对交易元数据签名,签名的内容包括auth_require字段
	InitiatorSigns []*protos.SignatureInfo `protobuf:"bytes,28,rep,name=initiator_signs,json=initiatorSigns,proto3" json:"initiator_signs,omitempty"`
	// 收集到的签名
	AuthRequireSigns []*protos.SignatureInfo `protobuf:"bytes,29,rep,name=auth_require_signs,json=authRequireSigns,proto3" json:"auth_require_signs,omitempty"`
	// 节点收到tx的时间戳,不参与签名
	ReceivedTimestamp int64 `protobuf:"varint,30,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"`
	// 统一签名(支持多重签名/环签名等,与initiator_signs/auth_require_signs不同时使用)
	XuperSign *XuperSignature `protobuf:"bytes,31,opt,name=xuper_sign,json=xuperSign,proto3" json:"xuper_sign,omitempty"`
	// 可修改区块链标记
	ModifyBlock *ModifyBlock `protobuf:"bytes,32,opt,name=modify_block,json=modifyBlock,proto3" json:"modify_block,omitempty"`
	// HD加解密相关信息
	HDInfo               *HDInfo  `protobuf:"bytes,33,opt,name=HD_info,json=HDInfo,proto3" json:"HD_info,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Transaction is the information of the transaction

func (*Transaction) Descriptor

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

func (*Transaction) FromAddrInList

func (tx *Transaction) FromAddrInList(whiteList map[string]bool) bool

FromAddrInList 判断交易的发起人是否在白名单

func (*Transaction) GetAmountByAddress

func (tx *Transaction) GetAmountByAddress(address string) *big.Int

GetAmountByAddress 获得交易的Output中某个address的收益

func (*Transaction) GetAuthRequire

func (m *Transaction) GetAuthRequire() []string

func (*Transaction) GetAuthRequireSigns

func (m *Transaction) GetAuthRequireSigns() []*protos.SignatureInfo

func (*Transaction) GetAutogen

func (m *Transaction) GetAutogen() bool

func (*Transaction) GetBlockid

func (m *Transaction) GetBlockid() []byte

func (*Transaction) GetCoinbase

func (m *Transaction) GetCoinbase() bool

func (*Transaction) GetContractRequests

func (m *Transaction) GetContractRequests() []*protos.InvokeRequest

func (*Transaction) GetDesc

func (m *Transaction) GetDesc() []byte

func (*Transaction) GetFee

func (tx *Transaction) GetFee() *big.Int

GetFee get fee in tx output

func (*Transaction) GetFrozenAmount

func (tx *Transaction) GetFrozenAmount(height int64) *big.Int

GetFrozenAmount 获得交易output中超过某height才能解冻的金额

func (*Transaction) GetHDInfo

func (m *Transaction) GetHDInfo() *HDInfo

func (*Transaction) GetInitiator

func (m *Transaction) GetInitiator() string

func (*Transaction) GetInitiatorSigns

func (m *Transaction) GetInitiatorSigns() []*protos.SignatureInfo

func (*Transaction) GetModifyBlock

func (m *Transaction) GetModifyBlock() *ModifyBlock

func (*Transaction) GetNonce

func (m *Transaction) GetNonce() string

func (*Transaction) GetReceivedTimestamp

func (m *Transaction) GetReceivedTimestamp() int64

func (*Transaction) GetTimestamp

func (m *Transaction) GetTimestamp() int64

func (*Transaction) GetTxInputs

func (m *Transaction) GetTxInputs() []*protos.TxInput

func (*Transaction) GetTxInputsExt

func (m *Transaction) GetTxInputsExt() []*protos.TxInputExt

func (*Transaction) GetTxOutputs

func (m *Transaction) GetTxOutputs() []*protos.TxOutput

func (*Transaction) GetTxOutputsExt

func (m *Transaction) GetTxOutputsExt() []*protos.TxOutputExt

func (*Transaction) GetTxid

func (m *Transaction) GetTxid() []byte

func (*Transaction) GetVersion

func (m *Transaction) GetVersion() int32

func (*Transaction) GetXuperSign

func (m *Transaction) GetXuperSign() *XuperSignature

func (*Transaction) HexTxid

func (tx *Transaction) HexTxid() string

HexTxid get txid in hex string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error

type TransactionStatus

type TransactionStatus int32
const (
	// Undefined status
	TransactionStatus_TX_UNDEFINE TransactionStatus = 0
	// Transaction not exist
	TransactionStatus_TX_NOEXIST TransactionStatus = 1
	// Transaction have been confirmed
	TransactionStatus_TX_CONFIRM TransactionStatus = 2
	// Transaction is on the furcation
	TransactionStatus_TX_FURCATION TransactionStatus = 3
	// Transaction have not been confirmed
	TransactionStatus_TX_UNCONFIRM TransactionStatus = 4
	// Transaction occurs error
	TransactionStatus_TX_FAILED TransactionStatus = 5
)

func (TransactionStatus) EnumDescriptor

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

func (TransactionStatus) String

func (x TransactionStatus) String() string

type TxDataAccount

type TxDataAccount struct {
	// 地址
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// 金额
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// 冻结高度
	FrozenHeight         int64    `protobuf:"varint,3,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TxDataAccount) Descriptor

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

func (*TxDataAccount) GetAddress

func (m *TxDataAccount) GetAddress() string

func (*TxDataAccount) GetAmount

func (m *TxDataAccount) GetAmount() string

func (*TxDataAccount) GetFrozenHeight

func (m *TxDataAccount) GetFrozenHeight() int64

func (*TxDataAccount) ProtoMessage

func (*TxDataAccount) ProtoMessage()

func (*TxDataAccount) Reset

func (m *TxDataAccount) Reset()

func (*TxDataAccount) String

func (m *TxDataAccount) String() string

func (*TxDataAccount) XXX_DiscardUnknown

func (m *TxDataAccount) XXX_DiscardUnknown()

func (*TxDataAccount) XXX_Marshal

func (m *TxDataAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxDataAccount) XXX_Merge

func (m *TxDataAccount) XXX_Merge(src proto.Message)

func (*TxDataAccount) XXX_Size

func (m *TxDataAccount) XXX_Size() int

func (*TxDataAccount) XXX_Unmarshal

func (m *TxDataAccount) XXX_Unmarshal(b []byte) error

type Utxo

type Utxo struct {
	Amount               []byte   `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	ToAddr               []byte   `protobuf:"bytes,2,opt,name=toAddr,proto3" json:"toAddr,omitempty"`
	ToPubkey             []byte   `protobuf:"bytes,3,opt,name=toPubkey,proto3" json:"toPubkey,omitempty"`
	RefTxid              []byte   `protobuf:"bytes,4,opt,name=refTxid,proto3" json:"refTxid,omitempty"`
	RefOffset            int32    `protobuf:"varint,5,opt,name=refOffset,proto3" json:"refOffset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Utxo) Descriptor

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

func (*Utxo) GetAmount

func (m *Utxo) GetAmount() []byte

func (*Utxo) GetRefOffset

func (m *Utxo) GetRefOffset() int32

func (*Utxo) GetRefTxid

func (m *Utxo) GetRefTxid() []byte

func (*Utxo) GetToAddr

func (m *Utxo) GetToAddr() []byte

func (*Utxo) GetToPubkey

func (m *Utxo) GetToPubkey() []byte

func (*Utxo) ProtoMessage

func (*Utxo) ProtoMessage()

func (*Utxo) Reset

func (m *Utxo) Reset()

func (*Utxo) String

func (m *Utxo) String() string

func (*Utxo) XXX_DiscardUnknown

func (m *Utxo) XXX_DiscardUnknown()

func (*Utxo) XXX_Marshal

func (m *Utxo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Utxo) XXX_Merge

func (m *Utxo) XXX_Merge(src proto.Message)

func (*Utxo) XXX_Size

func (m *Utxo) XXX_Size() int

func (*Utxo) XXX_Unmarshal

func (m *Utxo) XXX_Unmarshal(b []byte) error

type UtxoKey

type UtxoKey struct {
	RefTxid              string   `protobuf:"bytes,1,opt,name=refTxid,proto3" json:"refTxid,omitempty"`
	Offset               string   `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Amount               string   `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UtxoKey) Descriptor

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

func (*UtxoKey) GetAmount

func (m *UtxoKey) GetAmount() string

func (*UtxoKey) GetOffset

func (m *UtxoKey) GetOffset() string

func (*UtxoKey) GetRefTxid

func (m *UtxoKey) GetRefTxid() string

func (*UtxoKey) ProtoMessage

func (*UtxoKey) ProtoMessage()

func (*UtxoKey) Reset

func (m *UtxoKey) Reset()

func (*UtxoKey) String

func (m *UtxoKey) String() string

func (*UtxoKey) XXX_DiscardUnknown

func (m *UtxoKey) XXX_DiscardUnknown()

func (*UtxoKey) XXX_Marshal

func (m *UtxoKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UtxoKey) XXX_Merge

func (m *UtxoKey) XXX_Merge(src proto.Message)

func (*UtxoKey) XXX_Size

func (m *UtxoKey) XXX_Size() int

func (*UtxoKey) XXX_Unmarshal

func (m *UtxoKey) XXX_Unmarshal(b []byte) error

type UtxoMeta

type UtxoMeta struct {
	// utxo vm目前执行到的blockid
	LatestBlockid []byte   `protobuf:"bytes,1,opt,name=latest_blockid,json=latestBlockid,proto3" json:"latest_blockid,omitempty"`
	LockKeyList   []string `protobuf:"bytes,2,rep,name=lock_key_list,json=lockKeyList,proto3" json:"lock_key_list,omitempty"`
	// 当前utxo vm上的总资产
	UtxoTotal string `protobuf:"bytes,3,opt,name=utxo_total,json=utxoTotal,proto3" json:"utxo_total,omitempty"`
	// 平均上链延时
	AvgDelay int64 `protobuf:"varint,4,opt,name=avgDelay,proto3" json:"avgDelay,omitempty"`
	// 待确认交易量
	UnconfirmTxAmount int64 `protobuf:"varint,5,opt,name=unconfirmTxAmount,proto3" json:"unconfirmTxAmount,omitempty"`
	// max block size
	MaxBlockSize int64 `protobuf:"varint,6,opt,name=max_block_size,json=maxBlockSize,proto3" json:"max_block_size,omitempty"`
	// preset contracts
	ReservedContracts []*protos.InvokeRequest `protobuf:"bytes,7,rep,name=reserved_contracts,json=reservedContracts,proto3" json:"reserved_contracts,omitempty"`
	// reset forbidden contract configuration
	ForbiddenContract *protos.InvokeRequest `protobuf:"bytes,8,opt,name=forbidden_contract,json=forbiddenContract,proto3" json:"forbidden_contract,omitempty"`
	// the resource amount of creating an account
	NewAccountResourceAmount int64 `` /* 138-byte string literal not displayed */
	// 当前不可逆区块高度,与utxo对齐
	IrreversibleBlockHeight int64 `protobuf:"varint,10,opt,name=irreversibleBlockHeight,proto3" json:"irreversibleBlockHeight,omitempty"`
	// 当前不可逆区块高度调整窗口
	IrreversibleSlideWindow int64            `protobuf:"varint,11,opt,name=irreversibleSlideWindow,proto3" json:"irreversibleSlideWindow,omitempty"`
	GasPrice                *protos.GasPrice `protobuf:"bytes,12,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
	// 群组合约相关
	GroupChainContract   *protos.InvokeRequest `protobuf:"bytes,13,opt,name=group_chain_contract,json=groupChainContract,proto3" json:"group_chain_contract,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Utxo metadata

func (*UtxoMeta) Descriptor

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

func (*UtxoMeta) GetAvgDelay

func (m *UtxoMeta) GetAvgDelay() int64

func (*UtxoMeta) GetForbiddenContract

func (m *UtxoMeta) GetForbiddenContract() *protos.InvokeRequest

func (*UtxoMeta) GetGasPrice

func (m *UtxoMeta) GetGasPrice() *protos.GasPrice

func (*UtxoMeta) GetGroupChainContract

func (m *UtxoMeta) GetGroupChainContract() *protos.InvokeRequest

func (*UtxoMeta) GetIrreversibleBlockHeight

func (m *UtxoMeta) GetIrreversibleBlockHeight() int64

func (*UtxoMeta) GetIrreversibleSlideWindow

func (m *UtxoMeta) GetIrreversibleSlideWindow() int64

func (*UtxoMeta) GetLatestBlockid

func (m *UtxoMeta) GetLatestBlockid() []byte

func (*UtxoMeta) GetLockKeyList

func (m *UtxoMeta) GetLockKeyList() []string

func (*UtxoMeta) GetMaxBlockSize

func (m *UtxoMeta) GetMaxBlockSize() int64

func (*UtxoMeta) GetNewAccountResourceAmount

func (m *UtxoMeta) GetNewAccountResourceAmount() int64

func (*UtxoMeta) GetReservedContracts

func (m *UtxoMeta) GetReservedContracts() []*protos.InvokeRequest

func (*UtxoMeta) GetUnconfirmTxAmount

func (m *UtxoMeta) GetUnconfirmTxAmount() int64

func (*UtxoMeta) GetUtxoTotal

func (m *UtxoMeta) GetUtxoTotal() string

func (*UtxoMeta) ProtoMessage

func (*UtxoMeta) ProtoMessage()

func (*UtxoMeta) Reset

func (m *UtxoMeta) Reset()

func (*UtxoMeta) String

func (m *UtxoMeta) String() string

func (*UtxoMeta) XXX_DiscardUnknown

func (m *UtxoMeta) XXX_DiscardUnknown()

func (*UtxoMeta) XXX_Marshal

func (m *UtxoMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UtxoMeta) XXX_Merge

func (m *UtxoMeta) XXX_Merge(src proto.Message)

func (*UtxoMeta) XXX_Size

func (m *UtxoMeta) XXX_Size() int

func (*UtxoMeta) XXX_Unmarshal

func (m *UtxoMeta) XXX_Unmarshal(b []byte) error

type UtxoOutput

type UtxoOutput struct {
	// utxo list
	UtxoList []*Utxo `protobuf:"bytes,1,rep,name=utxoList,proto3" json:"utxoList,omitempty"`
	// total selected amount
	TotalSelected        string   `protobuf:"bytes,2,opt,name=totalSelected,proto3" json:"totalSelected,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UtxoOutput query results

func (*UtxoOutput) Descriptor

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

func (*UtxoOutput) GetTotalSelected

func (m *UtxoOutput) GetTotalSelected() string

func (*UtxoOutput) GetUtxoList

func (m *UtxoOutput) GetUtxoList() []*Utxo

func (*UtxoOutput) ProtoMessage

func (*UtxoOutput) ProtoMessage()

func (*UtxoOutput) Reset

func (m *UtxoOutput) Reset()

func (*UtxoOutput) String

func (m *UtxoOutput) String() string

func (*UtxoOutput) XXX_DiscardUnknown

func (m *UtxoOutput) XXX_DiscardUnknown()

func (*UtxoOutput) XXX_Marshal

func (m *UtxoOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UtxoOutput) XXX_Merge

func (m *UtxoOutput) XXX_Merge(src proto.Message)

func (*UtxoOutput) XXX_Size

func (m *UtxoOutput) XXX_Size() int

func (*UtxoOutput) XXX_Unmarshal

func (m *UtxoOutput) XXX_Unmarshal(b []byte) error

type UtxoRecord

type UtxoRecord struct {
	UtxoCount            string     `protobuf:"bytes,1,opt,name=utxoCount,proto3" json:"utxoCount,omitempty"`
	UtxoAmount           string     `protobuf:"bytes,2,opt,name=utxoAmount,proto3" json:"utxoAmount,omitempty"`
	Item                 []*UtxoKey `protobuf:"bytes,3,rep,name=item,proto3" json:"item,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*UtxoRecord) Descriptor

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

func (*UtxoRecord) GetItem

func (m *UtxoRecord) GetItem() []*UtxoKey

func (*UtxoRecord) GetUtxoAmount

func (m *UtxoRecord) GetUtxoAmount() string

func (*UtxoRecord) GetUtxoCount

func (m *UtxoRecord) GetUtxoCount() string

func (*UtxoRecord) ProtoMessage

func (*UtxoRecord) ProtoMessage()

func (*UtxoRecord) Reset

func (m *UtxoRecord) Reset()

func (*UtxoRecord) String

func (m *UtxoRecord) String() string

func (*UtxoRecord) XXX_DiscardUnknown

func (m *UtxoRecord) XXX_DiscardUnknown()

func (*UtxoRecord) XXX_Marshal

func (m *UtxoRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UtxoRecord) XXX_Merge

func (m *UtxoRecord) XXX_Merge(src proto.Message)

func (*UtxoRecord) XXX_Size

func (m *UtxoRecord) XXX_Size() int

func (*UtxoRecord) XXX_Unmarshal

func (m *UtxoRecord) XXX_Unmarshal(b []byte) error

type UtxoRecordDetail

type UtxoRecordDetail struct {
	OpenUtxo             *UtxoRecord `protobuf:"bytes,1,opt,name=openUtxo,proto3" json:"openUtxo,omitempty"`
	LockedUtxo           *UtxoRecord `protobuf:"bytes,2,opt,name=lockedUtxo,proto3" json:"lockedUtxo,omitempty"`
	FrozenUtxo           *UtxoRecord `protobuf:"bytes,3,opt,name=frozenUtxo,proto3" json:"frozenUtxo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*UtxoRecordDetail) Descriptor

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

func (*UtxoRecordDetail) GetFrozenUtxo

func (m *UtxoRecordDetail) GetFrozenUtxo() *UtxoRecord

func (*UtxoRecordDetail) GetLockedUtxo

func (m *UtxoRecordDetail) GetLockedUtxo() *UtxoRecord

func (*UtxoRecordDetail) GetOpenUtxo

func (m *UtxoRecordDetail) GetOpenUtxo() *UtxoRecord

func (*UtxoRecordDetail) ProtoMessage

func (*UtxoRecordDetail) ProtoMessage()

func (*UtxoRecordDetail) Reset

func (m *UtxoRecordDetail) Reset()

func (*UtxoRecordDetail) String

func (m *UtxoRecordDetail) String() string

func (*UtxoRecordDetail) XXX_DiscardUnknown

func (m *UtxoRecordDetail) XXX_DiscardUnknown()

func (*UtxoRecordDetail) XXX_Marshal

func (m *UtxoRecordDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UtxoRecordDetail) XXX_Merge

func (m *UtxoRecordDetail) XXX_Merge(src proto.Message)

func (*UtxoRecordDetail) XXX_Size

func (m *UtxoRecordDetail) XXX_Size() int

func (*UtxoRecordDetail) XXX_Unmarshal

func (m *UtxoRecordDetail) XXX_Unmarshal(b []byte) error

type XuperSignature

type XuperSignature struct {
	PublicKeys           [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Unified Xuper Signature

func (*XuperSignature) Descriptor

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

func (*XuperSignature) GetPublicKeys

func (m *XuperSignature) GetPublicKeys() [][]byte

func (*XuperSignature) GetSignature

func (m *XuperSignature) GetSignature() []byte

func (*XuperSignature) ProtoMessage

func (*XuperSignature) ProtoMessage()

func (*XuperSignature) Reset

func (m *XuperSignature) Reset()

func (*XuperSignature) String

func (m *XuperSignature) String() string

func (*XuperSignature) XXX_DiscardUnknown

func (m *XuperSignature) XXX_DiscardUnknown()

func (*XuperSignature) XXX_Marshal

func (m *XuperSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*XuperSignature) XXX_Merge

func (m *XuperSignature) XXX_Merge(src proto.Message)

func (*XuperSignature) XXX_Size

func (m *XuperSignature) XXX_Size() int

func (*XuperSignature) XXX_Unmarshal

func (m *XuperSignature) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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