Documentation ¶
Overview ¶
Package chainpb is a generated protocol buffer package.
It is generated from these files:
chain.proto
It has these top-level messages:
Txn Settings TxnID
Index ¶
- type Settings
- func (*Settings) Descriptor() ([]byte, []int)
- func (m *Settings) GetAccount() uint64
- func (m *Settings) GetDataHash() []byte
- func (m *Settings) GetHash() []byte
- func (m *Settings) GetID() uint64
- func (m *Settings) GetPrevHash() []byte
- func (m *Settings) GetPublicKey() []byte
- func (m *Settings) GetSign() []byte
- func (m *Settings) GetVerifyTransferSign() bool
- func (*Settings) ProtoMessage()
- func (m *Settings) Reset()
- func (m *Settings) String() string
- type Txn
- func (*Txn) Descriptor() ([]byte, []int)
- func (m *Txn) GetAmount() int64
- func (m *Txn) GetBalance() int64
- func (m *Txn) GetHash() []byte
- func (m *Txn) GetID() uint64
- func (m *Txn) GetPrevHash() []byte
- func (m *Txn) GetReceiver() uint64
- func (m *Txn) GetSender() uint64
- func (m *Txn) GetSettingsId() uint64
- func (m *Txn) GetSign() []byte
- func (m *Txn) GetSpentBy() uint64
- func (*Txn) ProtoMessage()
- func (m *Txn) Reset()
- func (m *Txn) String() string
- type TxnID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { // Account Settings transaction ID ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // Account Account uint64 `protobuf:"varint,2,opt,name=account,proto3" json:"account,omitempty"` // Previous Settings Hash PrevHash []byte `protobuf:"bytes,3,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"` // User Data Hash DataHash []byte `protobuf:"bytes,4,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` // User Public Key PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // User request Sign Sign []byte `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"` // Hash of this transaction Hash []byte `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` // Flag to verify transactions sign VerifyTransferSign bool `protobuf:"varint,8,opt,name=verify_transfer_sign,json=verifyTransferSign,proto3" json:"verify_transfer_sign,omitempty"` }
Account Settings transaction
func (*Settings) Descriptor ¶
func (*Settings) GetAccount ¶
func (*Settings) GetDataHash ¶
func (*Settings) GetPrevHash ¶
func (*Settings) GetPublicKey ¶
func (*Settings) GetVerifyTransferSign ¶
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
type Txn ¶
type Txn struct { // Transaction ID ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // Sender Sender uint64 `protobuf:"varint,4,opt,name=sender,proto3" json:"sender,omitempty"` // Receiver Receiver uint64 `protobuf:"varint,5,opt,name=receiver,proto3" json:"receiver,omitempty"` // Amount Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"` // Sender balance after transfer Balance int64 `protobuf:"varint,7,opt,name=balance,proto3" json:"balance,omitempty"` // Update, when account spends value SpentBy uint64 `protobuf:"varint,9,opt,name=spent_by,json=spentBy,proto3" json:"spent_by,omitempty"` // Previous transaction hash PrevHash []byte `protobuf:"bytes,10,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"` // Account Settings ID SettingsId uint64 `protobuf:"varint,12,opt,name=settings_id,json=settingsId,proto3" json:"settings_id,omitempty"` // Transaction sign via public key Sign []byte `protobuf:"bytes,13,opt,name=sign,proto3" json:"sign,omitempty"` // Hash of important fields Hash []byte `protobuf:"bytes,21,opt,name=hash,proto3" json:"hash,omitempty"` }
Transaction
func (*Txn) Descriptor ¶
func (*Txn) GetBalance ¶
func (*Txn) GetPrevHash ¶
func (*Txn) GetReceiver ¶
func (*Txn) GetSettingsId ¶
func (*Txn) GetSpentBy ¶
func (*Txn) ProtoMessage ¶
func (*Txn) ProtoMessage()
type TxnID ¶
type TxnID struct { // Account Account uint64 `protobuf:"varint,1,opt,name=account,proto3" json:"account,omitempty"` // Account ID ID uint64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` }
TxnID is am ID of transaction
func (*TxnID) Descriptor ¶
func (*TxnID) GetAccount ¶
func (*TxnID) ProtoMessage ¶
func (*TxnID) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.