server

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IoWriter added in v1.0.8

type IoWriter struct {
	// contains filtered or unexported fields
}

func NewIoWriter added in v1.0.8

func NewIoWriter(writer http.ResponseWriter, logger log.Logger) *IoWriter

func (*IoWriter) Write added in v1.0.8

func (writer *IoWriter) Write(message string)

type Transaction added in v1.0.1

type Transaction struct {
	// contains filtered or unexported fields
}

func NewTransaction added in v1.0.1

func NewTransaction(recipientAddress string, senderAddress string, senderPublicKey *encryption.PublicKey, timestamp int64, value uint64) *Transaction

func (*Transaction) GetRequest added in v1.0.1

func (transaction *Transaction) GetRequest() network.TransactionRequest

func (*Transaction) MarshalJSON added in v1.0.1

func (transaction *Transaction) MarshalJSON() ([]byte, error)

func (*Transaction) Sign added in v1.0.1

func (transaction *Transaction) Sign(privateKey *encryption.PrivateKey) (err error)

type TransactionRequest

type TransactionRequest struct {
	SenderPrivateKey *string `json:"sender_private_key"`
	SenderAddress    *string `json:"sender_address"`
	RecipientAddress *string `json:"recipient_address"`
	// TODO remove useless field
	SenderPublicKey *string `json:"sender_public_key"`
	Value           *string `json:"value"`
}

func (*TransactionRequest) IsInvalid

func (transactionRequest *TransactionRequest) IsInvalid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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