Documentation
¶
Index ¶
- Variables
- type BalanceMessage
- func (*BalanceMessage) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceMessage) GetBalance() int64
- func (x *BalanceMessage) GetBalanceThrylos() float64
- func (x *BalanceMessage) GetBlockchainAddress() string
- func (*BalanceMessage) ProtoMessage()
- func (x *BalanceMessage) ProtoReflect() protoreflect.Message
- func (x *BalanceMessage) Reset()
- func (x *BalanceMessage) String() string
- type BalanceResponse
- func (*BalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceResponse) GetBalance() int64
- func (x *BalanceResponse) GetBalanceThrylos() float64
- func (x *BalanceResponse) GetBlockchainAddress() string
- func (*BalanceResponse) ProtoMessage()
- func (x *BalanceResponse) ProtoReflect() protoreflect.Message
- func (x *BalanceResponse) Reset()
- func (x *BalanceResponse) String() string
- type BalanceSubscriptionRequest
- func (*BalanceSubscriptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceSubscriptionRequest) GetBlockchainAddress() string
- func (*BalanceSubscriptionRequest) ProtoMessage()
- func (x *BalanceSubscriptionRequest) ProtoReflect() protoreflect.Message
- func (x *BalanceSubscriptionRequest) Reset()
- func (x *BalanceSubscriptionRequest) String() string
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetHash() []byte
- func (x *Block) GetIndex() int32
- func (x *Block) GetPrevHash() []byte
- func (x *Block) GetSalt() []byte
- func (x *Block) GetSignature() []byte
- func (x *Block) GetTimestamp() int64
- func (x *Block) GetTransactions() []*Transaction
- func (x *Block) GetValidator() string
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockResponse
- type EmptyRequest
- type FailedTransaction
- func (*FailedTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *FailedTransaction) GetErrorMessage() string
- func (x *FailedTransaction) GetTransactionId() string
- func (*FailedTransaction) ProtoMessage()
- func (x *FailedTransaction) ProtoReflect() protoreflect.Message
- func (x *FailedTransaction) Reset()
- func (x *FailedTransaction) String() string
- type GetBalanceRequest
- type GetBlockByHashRequest
- func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByHashRequest) GetHash() []byte
- func (*GetBlockByHashRequest) ProtoMessage()
- func (x *GetBlockByHashRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockByHashRequest) Reset()
- func (x *GetBlockByHashRequest) String() string
- type GetBlockByIndexRequest
- func (*GetBlockByIndexRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockByIndexRequest) GetIndex() int32
- func (*GetBlockByIndexRequest) ProtoMessage()
- func (x *GetBlockByIndexRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockByIndexRequest) Reset()
- func (x *GetBlockByIndexRequest) String() string
- type GetBlockRequest
- type GetPendingTransactionsRequest
- func (*GetPendingTransactionsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetPendingTransactionsRequest) ProtoMessage()
- func (x *GetPendingTransactionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPendingTransactionsRequest) Reset()
- func (x *GetPendingTransactionsRequest) String() string
- type GetStatsRequest
- type GetTransactionRequest
- func (*GetTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionRequest) GetId() string
- func (*GetTransactionRequest) ProtoMessage()
- func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetTransactionRequest) Reset()
- func (x *GetTransactionRequest) String() string
- type Input
- func (*Input) Descriptor() ([]byte, []int)deprecated
- func (x *Input) GetIndex() int32
- func (x *Input) GetOwnerAddress() string
- func (x *Input) GetPreviousTx() string
- func (x *Input) GetSignature() string
- func (*Input) ProtoMessage()
- func (x *Input) ProtoReflect() protoreflect.Message
- func (x *Input) Reset()
- func (x *Input) String() string
- type Output
- type PendingTransactionsResponse
- func (*PendingTransactionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PendingTransactionsResponse) GetTransactions() string
- func (*PendingTransactionsResponse) ProtoMessage()
- func (x *PendingTransactionsResponse) ProtoReflect() protoreflect.Message
- func (x *PendingTransactionsResponse) Reset()
- func (x *PendingTransactionsResponse) String() string
- type StatsResponse
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetBlockHash() []byte
- func (x *Transaction) GetEncryptedAesKey() []byte
- func (x *Transaction) GetEncryptedInputs() []byte
- func (x *Transaction) GetEncryptedOutputs() []byte
- func (x *Transaction) GetGasfee() int32
- func (x *Transaction) GetId() string
- func (x *Transaction) GetInputs() []*UTXO
- func (x *Transaction) GetOutputs() []*UTXO
- func (x *Transaction) GetPreviousTxIds() []string
- func (x *Transaction) GetSalt() []byte
- func (x *Transaction) GetSender() string
- func (x *Transaction) GetSenderPublicKey() []byte
- func (x *Transaction) GetSignature() []byte
- func (x *Transaction) GetStatus() string
- func (x *Transaction) GetTimestamp() int64
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionBatchRequest
- func (*TransactionBatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionBatchRequest) GetTransactions() []*Transaction
- func (*TransactionBatchRequest) ProtoMessage()
- func (x *TransactionBatchRequest) ProtoReflect() protoreflect.Message
- func (x *TransactionBatchRequest) Reset()
- func (x *TransactionBatchRequest) String() string
- type TransactionBatchResponse
- func (*TransactionBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionBatchResponse) GetFailedTransactions() []*FailedTransaction
- func (x *TransactionBatchResponse) GetStatus() string
- func (*TransactionBatchResponse) ProtoMessage()
- func (x *TransactionBatchResponse) ProtoReflect() protoreflect.Message
- func (x *TransactionBatchResponse) Reset()
- func (x *TransactionBatchResponse) String() string
- type TransactionJSON
- type TransactionRequest
- func (*TransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionRequest) GetTransaction() *Transaction
- func (*TransactionRequest) ProtoMessage()
- func (x *TransactionRequest) ProtoReflect() protoreflect.Message
- func (x *TransactionRequest) Reset()
- func (x *TransactionRequest) String() string
- type TransactionResponse
- func (*TransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionResponse) GetStatus() string
- func (*TransactionResponse) ProtoMessage()
- func (x *TransactionResponse) ProtoReflect() protoreflect.Message
- func (x *TransactionResponse) Reset()
- func (x *TransactionResponse) String() string
- type UTXO
- func (*UTXO) Descriptor() ([]byte, []int)deprecated
- func (x *UTXO) GetAmount() int64
- func (x *UTXO) GetIndex() int32
- func (x *UTXO) GetIsSpent() bool
- func (x *UTXO) GetOwnerAddress() string
- func (x *UTXO) GetTransactionId() string
- func (*UTXO) ProtoMessage()
- func (x *UTXO) ProtoReflect() protoreflect.Message
- func (x *UTXO) Reset()
- func (x *UTXO) String() string
- type UTXOJSON
Constants ¶
This section is empty.
Variables ¶
var File_transactions_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BalanceMessage ¶
type BalanceMessage struct {
BlockchainAddress string `protobuf:"bytes,1,opt,name=blockchain_address,json=blockchainAddress,proto3" json:"blockchain_address,omitempty"` // The address receiving the balance update
Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` // Balance in nanoTHRYLOS
BalanceThrylos float64 `protobuf:"fixed64,3,opt,name=balance_thrylos,json=balanceThrylos,proto3" json:"balance_thrylos,omitempty"` // Balance converted to THRYLOS
// contains filtered or unexported fields
}
WebSocket balance update message
func (*BalanceMessage) Descriptor
deprecated
func (*BalanceMessage) Descriptor() ([]byte, []int)
Deprecated: Use BalanceMessage.ProtoReflect.Descriptor instead.
func (*BalanceMessage) GetBalance ¶
func (x *BalanceMessage) GetBalance() int64
func (*BalanceMessage) GetBalanceThrylos ¶
func (x *BalanceMessage) GetBalanceThrylos() float64
func (*BalanceMessage) GetBlockchainAddress ¶
func (x *BalanceMessage) GetBlockchainAddress() string
func (*BalanceMessage) ProtoMessage ¶
func (*BalanceMessage) ProtoMessage()
func (*BalanceMessage) ProtoReflect ¶
func (x *BalanceMessage) ProtoReflect() protoreflect.Message
func (*BalanceMessage) Reset ¶
func (x *BalanceMessage) Reset()
func (*BalanceMessage) String ¶
func (x *BalanceMessage) String() string
type BalanceResponse ¶
type BalanceResponse struct {
Balance int64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"` // Balance in nanoTHRYLOS
BalanceThrylos float64 `protobuf:"fixed64,2,opt,name=balance_thrylos,json=balanceThrylos,proto3" json:"balance_thrylos,omitempty"` // Balance in THRYLOS
BlockchainAddress string `protobuf:"bytes,3,opt,name=blockchain_address,json=blockchainAddress,proto3" json:"blockchain_address,omitempty"` // The address queried
// contains filtered or unexported fields
}
func (*BalanceResponse) Descriptor
deprecated
func (*BalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead.
func (*BalanceResponse) GetBalance ¶
func (x *BalanceResponse) GetBalance() int64
func (*BalanceResponse) GetBalanceThrylos ¶
func (x *BalanceResponse) GetBalanceThrylos() float64
func (*BalanceResponse) GetBlockchainAddress ¶
func (x *BalanceResponse) GetBlockchainAddress() string
func (*BalanceResponse) ProtoMessage ¶
func (*BalanceResponse) ProtoMessage()
func (*BalanceResponse) ProtoReflect ¶
func (x *BalanceResponse) ProtoReflect() protoreflect.Message
func (*BalanceResponse) Reset ¶
func (x *BalanceResponse) Reset()
func (*BalanceResponse) String ¶
func (x *BalanceResponse) String() string
type BalanceSubscriptionRequest ¶
type BalanceSubscriptionRequest struct {
BlockchainAddress string `protobuf:"bytes,1,opt,name=blockchain_address,json=blockchainAddress,proto3" json:"blockchain_address,omitempty"`
// contains filtered or unexported fields
}
func (*BalanceSubscriptionRequest) Descriptor
deprecated
func (*BalanceSubscriptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use BalanceSubscriptionRequest.ProtoReflect.Descriptor instead.
func (*BalanceSubscriptionRequest) GetBlockchainAddress ¶
func (x *BalanceSubscriptionRequest) GetBlockchainAddress() string
func (*BalanceSubscriptionRequest) ProtoMessage ¶
func (*BalanceSubscriptionRequest) ProtoMessage()
func (*BalanceSubscriptionRequest) ProtoReflect ¶
func (x *BalanceSubscriptionRequest) ProtoReflect() protoreflect.Message
func (*BalanceSubscriptionRequest) Reset ¶
func (x *BalanceSubscriptionRequest) Reset()
func (*BalanceSubscriptionRequest) String ¶
func (x *BalanceSubscriptionRequest) String() string
type Block ¶
type Block struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
PrevHash []byte `protobuf:"bytes,3,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"`
Validator string `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty"`
Transactions []*Transaction `protobuf:"bytes,5,rep,name=transactions,proto3" json:"transactions,omitempty"`
Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
Signature []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` // If not already present
Salt []byte `protobuf:"bytes,8,opt,name=salt,proto3" json:"salt,omitempty"` // Add this for MLDSA signature scheme
// contains filtered or unexported fields
}
New Block message
func (*Block) Descriptor
deprecated
func (*Block) GetPrevHash ¶
func (*Block) GetSignature ¶
func (*Block) GetTimestamp ¶
func (*Block) GetTransactions ¶
func (x *Block) GetTransactions() []*Transaction
func (*Block) GetValidator ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockResponse ¶
type BlockResponse struct {
Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
// contains filtered or unexported fields
}
func (*BlockResponse) Descriptor
deprecated
func (*BlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlockResponse.ProtoReflect.Descriptor instead.
func (*BlockResponse) GetBlock ¶
func (x *BlockResponse) GetBlock() *Block
func (*BlockResponse) ProtoMessage ¶
func (*BlockResponse) ProtoMessage()
func (*BlockResponse) ProtoReflect ¶
func (x *BlockResponse) ProtoReflect() protoreflect.Message
func (*BlockResponse) Reset ¶
func (x *BlockResponse) Reset()
func (*BlockResponse) String ¶
func (x *BlockResponse) String() string
type EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type FailedTransaction ¶
type FailedTransaction struct {
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // The ID of the transaction
ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // Error message explaining why the transaction failed
// contains filtered or unexported fields
}
func (*FailedTransaction) Descriptor
deprecated
func (*FailedTransaction) Descriptor() ([]byte, []int)
Deprecated: Use FailedTransaction.ProtoReflect.Descriptor instead.
func (*FailedTransaction) GetErrorMessage ¶
func (x *FailedTransaction) GetErrorMessage() string
func (*FailedTransaction) GetTransactionId ¶
func (x *FailedTransaction) GetTransactionId() string
func (*FailedTransaction) ProtoMessage ¶
func (*FailedTransaction) ProtoMessage()
func (*FailedTransaction) ProtoReflect ¶
func (x *FailedTransaction) ProtoReflect() protoreflect.Message
func (*FailedTransaction) Reset ¶
func (x *FailedTransaction) Reset()
func (*FailedTransaction) String ¶
func (x *FailedTransaction) String() string
type GetBalanceRequest ¶
type GetBalanceRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The blockchain address for which the balance is requested
// contains filtered or unexported fields
}
func (*GetBalanceRequest) Descriptor
deprecated
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetBalanceRequest) GetAddress ¶
func (x *GetBalanceRequest) GetAddress() string
func (*GetBalanceRequest) ProtoMessage ¶
func (*GetBalanceRequest) ProtoMessage()
func (*GetBalanceRequest) ProtoReflect ¶
func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message
func (*GetBalanceRequest) Reset ¶
func (x *GetBalanceRequest) Reset()
func (*GetBalanceRequest) String ¶
func (x *GetBalanceRequest) String() string
type GetBlockByHashRequest ¶
type GetBlockByHashRequest struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// contains filtered or unexported fields
}
func (*GetBlockByHashRequest) Descriptor
deprecated
func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByHashRequest.ProtoReflect.Descriptor instead.
func (*GetBlockByHashRequest) GetHash ¶
func (x *GetBlockByHashRequest) GetHash() []byte
func (*GetBlockByHashRequest) ProtoMessage ¶
func (*GetBlockByHashRequest) ProtoMessage()
func (*GetBlockByHashRequest) ProtoReflect ¶
func (x *GetBlockByHashRequest) ProtoReflect() protoreflect.Message
func (*GetBlockByHashRequest) Reset ¶
func (x *GetBlockByHashRequest) Reset()
func (*GetBlockByHashRequest) String ¶
func (x *GetBlockByHashRequest) String() string
type GetBlockByIndexRequest ¶
type GetBlockByIndexRequest struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
func (*GetBlockByIndexRequest) Descriptor
deprecated
func (*GetBlockByIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockByIndexRequest.ProtoReflect.Descriptor instead.
func (*GetBlockByIndexRequest) GetIndex ¶
func (x *GetBlockByIndexRequest) GetIndex() int32
func (*GetBlockByIndexRequest) ProtoMessage ¶
func (*GetBlockByIndexRequest) ProtoMessage()
func (*GetBlockByIndexRequest) ProtoReflect ¶
func (x *GetBlockByIndexRequest) ProtoReflect() protoreflect.Message
func (*GetBlockByIndexRequest) Reset ¶
func (x *GetBlockByIndexRequest) Reset()
func (*GetBlockByIndexRequest) String ¶
func (x *GetBlockByIndexRequest) String() string
type GetBlockRequest ¶
type GetBlockRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetBlockRequest) Descriptor
deprecated
func (*GetBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.
func (*GetBlockRequest) GetId ¶
func (x *GetBlockRequest) GetId() int32
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) ProtoReflect ¶
func (x *GetBlockRequest) ProtoReflect() protoreflect.Message
func (*GetBlockRequest) Reset ¶
func (x *GetBlockRequest) Reset()
func (*GetBlockRequest) String ¶
func (x *GetBlockRequest) String() string
type GetPendingTransactionsRequest ¶
type GetPendingTransactionsRequest struct {
// contains filtered or unexported fields
}
func (*GetPendingTransactionsRequest) Descriptor
deprecated
func (*GetPendingTransactionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPendingTransactionsRequest.ProtoReflect.Descriptor instead.
func (*GetPendingTransactionsRequest) ProtoMessage ¶
func (*GetPendingTransactionsRequest) ProtoMessage()
func (*GetPendingTransactionsRequest) ProtoReflect ¶
func (x *GetPendingTransactionsRequest) ProtoReflect() protoreflect.Message
func (*GetPendingTransactionsRequest) Reset ¶
func (x *GetPendingTransactionsRequest) Reset()
func (*GetPendingTransactionsRequest) String ¶
func (x *GetPendingTransactionsRequest) String() string
type GetStatsRequest ¶
type GetStatsRequest struct {
// contains filtered or unexported fields
}
func (*GetStatsRequest) Descriptor
deprecated
func (*GetStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
func (*GetStatsRequest) ProtoMessage ¶
func (*GetStatsRequest) ProtoMessage()
func (*GetStatsRequest) ProtoReflect ¶
func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
func (*GetStatsRequest) Reset ¶
func (x *GetStatsRequest) Reset()
func (*GetStatsRequest) String ¶
func (x *GetStatsRequest) String() string
type GetTransactionRequest ¶
type GetTransactionRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetTransactionRequest) Descriptor
deprecated
func (*GetTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetTransactionRequest) GetId ¶
func (x *GetTransactionRequest) GetId() string
func (*GetTransactionRequest) ProtoMessage ¶
func (*GetTransactionRequest) ProtoMessage()
func (*GetTransactionRequest) ProtoReflect ¶
func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetTransactionRequest) Reset ¶
func (x *GetTransactionRequest) Reset()
func (*GetTransactionRequest) String ¶
func (x *GetTransactionRequest) String() string
type Input ¶
type Input struct {
PreviousTx string `protobuf:"bytes,1,opt,name=previousTx,proto3" json:"previousTx,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
Signature string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
OwnerAddress string `protobuf:"bytes,4,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
// contains filtered or unexported fields
}
func (*Input) Descriptor
deprecated
func (*Input) GetOwnerAddress ¶
func (*Input) GetPreviousTx ¶
func (*Input) GetSignature ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) ProtoReflect ¶
func (x *Input) ProtoReflect() protoreflect.Message
type Output ¶
type Output struct {
Amount float64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
// contains filtered or unexported fields
}
func (*Output) Descriptor
deprecated
func (*Output) GetAddress ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
type PendingTransactionsResponse ¶
type PendingTransactionsResponse struct {
Transactions string `protobuf:"bytes,1,opt,name=transactions,proto3" json:"transactions,omitempty"`
// contains filtered or unexported fields
}
func (*PendingTransactionsResponse) Descriptor
deprecated
func (*PendingTransactionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PendingTransactionsResponse.ProtoReflect.Descriptor instead.
func (*PendingTransactionsResponse) GetTransactions ¶
func (x *PendingTransactionsResponse) GetTransactions() string
func (*PendingTransactionsResponse) ProtoMessage ¶
func (*PendingTransactionsResponse) ProtoMessage()
func (*PendingTransactionsResponse) ProtoReflect ¶
func (x *PendingTransactionsResponse) ProtoReflect() protoreflect.Message
func (*PendingTransactionsResponse) Reset ¶
func (x *PendingTransactionsResponse) Reset()
func (*PendingTransactionsResponse) String ¶
func (x *PendingTransactionsResponse) String() string
type StatsResponse ¶
type StatsResponse struct {
Stats string `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
// contains filtered or unexported fields
}
func (*StatsResponse) Descriptor
deprecated
func (*StatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.
func (*StatsResponse) GetStats ¶
func (x *StatsResponse) GetStats() string
func (*StatsResponse) ProtoMessage ¶
func (*StatsResponse) ProtoMessage()
func (*StatsResponse) ProtoReflect ¶
func (x *StatsResponse) ProtoReflect() protoreflect.Message
func (*StatsResponse) Reset ¶
func (x *StatsResponse) Reset()
func (*StatsResponse) String ¶
func (x *StatsResponse) String() string
type Transaction ¶
type Transaction struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Removed json_name, as it's redundant in proto3 when matching the field name exactly.
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Inputs []*UTXO `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
Outputs []*UTXO `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
EncryptedInputs []byte `protobuf:"bytes,5,opt,name=encrypted_inputs,json=encryptedInputs,proto3" json:"encrypted_inputs,omitempty"`
EncryptedOutputs []byte `protobuf:"bytes,6,opt,name=encrypted_outputs,json=encryptedOutputs,proto3" json:"encrypted_outputs,omitempty"`
Signature []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` // Use bytes for binary data.
PreviousTxIds []string `protobuf:"bytes,8,rep,name=previous_tx_ids,json=previousTxIds,proto3" json:"previous_tx_ids,omitempty"` // Consider if large, split loading.
EncryptedAesKey []byte `protobuf:"bytes,9,opt,name=encrypted_aes_key,json=encryptedAesKey,proto3" json:"encrypted_aes_key,omitempty"` // Keep as bytes, ensure encryption keys are not logged or misused.
Sender string `protobuf:"bytes,10,opt,name=sender,proto3" json:"sender,omitempty"`
Gasfee int32 `protobuf:"varint,11,opt,name=gasfee,proto3" json:"gasfee,omitempty"` // Added gas fee field
Status string `protobuf:"bytes,12,opt,name=status,proto3" json:"status,omitempty"` // New field for transaction status
BlockHash []byte `protobuf:"bytes,13,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // Changed from string to bytes
SenderPublicKey []byte `protobuf:"bytes,14,opt,name=sender_public_key,json=senderPublicKey,proto3" json:"sender_public_key,omitempty"` // For ML-DSA44 public key when needed
Salt []byte `protobuf:"bytes,15,opt,name=salt,proto3" json:"salt,omitempty"`
// contains filtered or unexported fields
}
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetBlockHash ¶
func (x *Transaction) GetBlockHash() []byte
func (*Transaction) GetEncryptedAesKey ¶
func (x *Transaction) GetEncryptedAesKey() []byte
func (*Transaction) GetEncryptedInputs ¶
func (x *Transaction) GetEncryptedInputs() []byte
func (*Transaction) GetEncryptedOutputs ¶
func (x *Transaction) GetEncryptedOutputs() []byte
func (*Transaction) GetGasfee ¶
func (x *Transaction) GetGasfee() int32
func (*Transaction) GetId ¶
func (x *Transaction) GetId() string
func (*Transaction) GetInputs ¶
func (x *Transaction) GetInputs() []*UTXO
func (*Transaction) GetOutputs ¶
func (x *Transaction) GetOutputs() []*UTXO
func (*Transaction) GetPreviousTxIds ¶
func (x *Transaction) GetPreviousTxIds() []string
func (*Transaction) GetSalt ¶
func (x *Transaction) GetSalt() []byte
func (*Transaction) GetSender ¶
func (x *Transaction) GetSender() string
func (*Transaction) GetSenderPublicKey ¶
func (x *Transaction) GetSenderPublicKey() []byte
func (*Transaction) GetSignature ¶
func (x *Transaction) GetSignature() []byte
func (*Transaction) GetStatus ¶
func (x *Transaction) GetStatus() string
func (*Transaction) GetTimestamp ¶
func (x *Transaction) GetTimestamp() int64
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 TransactionBatchRequest ¶
type TransactionBatchRequest struct {
Transactions []*Transaction `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` // List of transactions in a batch
// contains filtered or unexported fields
}
func (*TransactionBatchRequest) Descriptor
deprecated
func (*TransactionBatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransactionBatchRequest.ProtoReflect.Descriptor instead.
func (*TransactionBatchRequest) GetTransactions ¶
func (x *TransactionBatchRequest) GetTransactions() []*Transaction
func (*TransactionBatchRequest) ProtoMessage ¶
func (*TransactionBatchRequest) ProtoMessage()
func (*TransactionBatchRequest) ProtoReflect ¶
func (x *TransactionBatchRequest) ProtoReflect() protoreflect.Message
func (*TransactionBatchRequest) Reset ¶
func (x *TransactionBatchRequest) Reset()
func (*TransactionBatchRequest) String ¶
func (x *TransactionBatchRequest) String() string
type TransactionBatchResponse ¶
type TransactionBatchResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // Status of the batch processing
FailedTransactions []*FailedTransaction `protobuf:"bytes,2,rep,name=failed_transactions,json=failedTransactions,proto3" json:"failed_transactions,omitempty"` // Added to provide detailed error info
// contains filtered or unexported fields
}
func (*TransactionBatchResponse) Descriptor
deprecated
func (*TransactionBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransactionBatchResponse.ProtoReflect.Descriptor instead.
func (*TransactionBatchResponse) GetFailedTransactions ¶
func (x *TransactionBatchResponse) GetFailedTransactions() []*FailedTransaction
func (*TransactionBatchResponse) GetStatus ¶
func (x *TransactionBatchResponse) GetStatus() string
func (*TransactionBatchResponse) ProtoMessage ¶
func (*TransactionBatchResponse) ProtoMessage()
func (*TransactionBatchResponse) ProtoReflect ¶
func (x *TransactionBatchResponse) ProtoReflect() protoreflect.Message
func (*TransactionBatchResponse) Reset ¶
func (x *TransactionBatchResponse) Reset()
func (*TransactionBatchResponse) String ¶
func (x *TransactionBatchResponse) String() string
type TransactionJSON ¶
type TransactionJSON struct {
ID string `json:"id"`
Timestamp int64 `json:"timestamp"`
Inputs []UTXOJSON `json:"inputs"`
Outputs []UTXOJSON `json:"outputs"`
Signature string `json:"signature"`
}
TransactionJSON mirrors the JSON structure of your transaction data
type TransactionRequest ¶
type TransactionRequest struct {
Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // Embedding the Transaction message
// contains filtered or unexported fields
}
func (*TransactionRequest) Descriptor
deprecated
func (*TransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransactionRequest.ProtoReflect.Descriptor instead.
func (*TransactionRequest) GetTransaction ¶
func (x *TransactionRequest) GetTransaction() *Transaction
func (*TransactionRequest) ProtoMessage ¶
func (*TransactionRequest) ProtoMessage()
func (*TransactionRequest) ProtoReflect ¶
func (x *TransactionRequest) ProtoReflect() protoreflect.Message
func (*TransactionRequest) Reset ¶
func (x *TransactionRequest) Reset()
func (*TransactionRequest) String ¶
func (x *TransactionRequest) String() string
type TransactionResponse ¶
type TransactionResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*TransactionResponse) Descriptor
deprecated
func (*TransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransactionResponse.ProtoReflect.Descriptor instead.
func (*TransactionResponse) GetStatus ¶
func (x *TransactionResponse) GetStatus() string
func (*TransactionResponse) ProtoMessage ¶
func (*TransactionResponse) ProtoMessage()
func (*TransactionResponse) ProtoReflect ¶
func (x *TransactionResponse) ProtoReflect() protoreflect.Message
func (*TransactionResponse) Reset ¶
func (x *TransactionResponse) Reset()
func (*TransactionResponse) String ¶
func (x *TransactionResponse) String() string
type UTXO ¶
type UTXO struct {
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
IsSpent bool `protobuf:"varint,5,opt,name=is_spent,json=isSpent,proto3" json:"is_spent,omitempty"`
// contains filtered or unexported fields
}
UTXO message optimized for size and clarity.
func (*UTXO) Descriptor
deprecated
func (*UTXO) GetIsSpent ¶
func (*UTXO) GetOwnerAddress ¶
func (*UTXO) GetTransactionId ¶
func (*UTXO) ProtoMessage ¶
func (*UTXO) ProtoMessage()
func (*UTXO) ProtoReflect ¶
func (x *UTXO) ProtoReflect() protoreflect.Message
Directories
¶
| Path | Synopsis |
|---|---|
|
thrylos
command
generate_key.go (Temporary tool)
|
generate_key.go (Temporary tool) |
|
thrylos-load-tester
command
|
|
|
consensus
|
|
|
detection
consensus/detection/behaviors.go
|
consensus/detection/behaviors.go |
|
selection
consensus/selection/consensus.go
|
consensus/selection/consensus.go |
|
privateKey.go (Revised for Exporting)
|
privateKey.go (Revised for Exporting) |
|
types/sharding.go
|
types/sharding.go |