chainpb

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Settings) GetAccount

func (m *Settings) GetAccount() uint64

func (*Settings) GetDataHash

func (m *Settings) GetDataHash() []byte

func (*Settings) GetHash

func (m *Settings) GetHash() []byte

func (*Settings) GetID

func (m *Settings) GetID() uint64

func (*Settings) GetPrevHash

func (m *Settings) GetPrevHash() []byte

func (*Settings) GetPublicKey

func (m *Settings) GetPublicKey() []byte

func (*Settings) GetSign

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

func (*Settings) GetVerifyTransferSign

func (m *Settings) GetVerifyTransferSign() bool

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) Reset

func (m *Settings) Reset()

func (*Settings) String

func (m *Settings) String() string

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) Descriptor() ([]byte, []int)

func (*Txn) GetAmount

func (m *Txn) GetAmount() int64

func (*Txn) GetBalance

func (m *Txn) GetBalance() int64

func (*Txn) GetHash

func (m *Txn) GetHash() []byte

func (*Txn) GetID

func (m *Txn) GetID() uint64

func (*Txn) GetPrevHash

func (m *Txn) GetPrevHash() []byte

func (*Txn) GetReceiver

func (m *Txn) GetReceiver() uint64

func (*Txn) GetSender

func (m *Txn) GetSender() uint64

func (*Txn) GetSettingsId

func (m *Txn) GetSettingsId() uint64

func (*Txn) GetSign

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

func (*Txn) GetSpentBy

func (m *Txn) GetSpentBy() uint64

func (*Txn) ProtoMessage

func (*Txn) ProtoMessage()

func (*Txn) Reset

func (m *Txn) Reset()

func (*Txn) String

func (m *Txn) String() string

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) Descriptor() ([]byte, []int)

func (*TxnID) GetAccount

func (m *TxnID) GetAccount() uint64

func (*TxnID) GetID

func (m *TxnID) GetID() uint64

func (*TxnID) ProtoMessage

func (*TxnID) ProtoMessage()

func (*TxnID) Reset

func (m *TxnID) Reset()

func (*TxnID) String

func (m *TxnID) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL