proto

package
v0.0.0-...-1f4e700 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Block

type Block struct {
	Header       *Header        `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetHeader

func (x *Block) GetHeader() *Header

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*Transaction

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

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

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string
type Header struct {
	Version      uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Height       uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	PreviousHash []byte `protobuf:"bytes,3,opt,name=previousHash,proto3" json:"previousHash,omitempty"`
	MerkleRoot   []byte `protobuf:"bytes,4,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"`
	Timestamp    int64  `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetHeight

func (x *Header) GetHeight() uint32

func (*Header) GetMerkleRoot

func (x *Header) GetMerkleRoot() []byte

func (*Header) GetPreviousHash

func (x *Header) GetPreviousHash() []byte

func (*Header) GetTimestamp

func (x *Header) GetTimestamp() int64

func (*Header) GetVersion

func (x *Header) GetVersion() uint32

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type Transaction

type Transaction struct {
	Version uint32      `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Inputs  []*TxInput  `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs []*TxOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetInputs

func (x *Transaction) GetInputs() []*TxInput

func (*Transaction) GetOutputs

func (x *Transaction) GetOutputs() []*TxOutput

func (*Transaction) GetVersion

func (x *Transaction) GetVersion() uint32

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TxInput

type TxInput struct {
	PreviousOutHash  []byte `protobuf:"bytes,1,opt,name=previousOutHash,proto3" json:"previousOutHash,omitempty"`    // The hash of the transaction that contains the output being spent.
	PreviousOutIndex uint32 `protobuf:"varint,2,opt,name=previousOutIndex,proto3" json:"previousOutIndex,omitempty"` // The index of the output of the previous transaction that is being spent.
	PublicKey        []byte `protobuf:"bytes,3,opt,name=publicKey,proto3" json:"publicKey,omitempty"`
	Signature        []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*TxInput) Descriptor deprecated

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

Deprecated: Use TxInput.ProtoReflect.Descriptor instead.

func (*TxInput) GetPreviousOutHash

func (x *TxInput) GetPreviousOutHash() []byte

func (*TxInput) GetPreviousOutIndex

func (x *TxInput) GetPreviousOutIndex() uint32

func (*TxInput) GetPublicKey

func (x *TxInput) GetPublicKey() []byte

func (*TxInput) GetSignature

func (x *TxInput) GetSignature() []byte

func (*TxInput) ProtoMessage

func (*TxInput) ProtoMessage()

func (*TxInput) ProtoReflect

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

func (*TxInput) Reset

func (x *TxInput) Reset()

func (*TxInput) String

func (x *TxInput) String() string

type TxOutput

type TxOutput struct {
	Amount  uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*TxOutput) Descriptor deprecated

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

Deprecated: Use TxOutput.ProtoReflect.Descriptor instead.

func (*TxOutput) GetAddress

func (x *TxOutput) GetAddress() []byte

func (*TxOutput) GetAmount

func (x *TxOutput) GetAmount() uint64

func (*TxOutput) ProtoMessage

func (*TxOutput) ProtoMessage()

func (*TxOutput) ProtoReflect

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

func (*TxOutput) Reset

func (x *TxOutput) Reset()

func (*TxOutput) String

func (x *TxOutput) String() string

Jump to

Keyboard shortcuts

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