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
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
Click to show internal directories.
Click to hide internal directories.