Skip to content

src/account/UTXOStructs.hpp

Namespaces

Name
sgns

Classes

Name
struct sgns::InputUTXOInfo
Raw UTXO input data for a transaction.
struct sgns::OutputDestInfo
Single output entry.

Types

Name
using std::pair< std::vector< InputUTXOInfo >, std::vector< OutputDestInfo > > UTXOTxParameters

Types Documentation

using UTXOTxParameters

using sgns::UTXOTxParameters = std::pair<std::vector<InputUTXOInfo>, std::vector<OutputDestInfo>>;

Source code

#pragma once

#include "base/blob.hpp"
#include "TokenID.hpp"

namespace sgns
{
    struct InputUTXOInfo
    {
        std::vector<uint8_t> SerializeForSigning() const;

        base::Hash256        txid_hash_;  //< Hash of the related transaction
        uint32_t             output_idx_; //< Index of the related output in the output vector
        std::vector<uint8_t> signature_;  //< Signature of the hash and index
    };

    struct OutputDestInfo
    {
        uint64_t    encrypted_amount; 
        std::string dest_address;     
        TokenID     token_id;         
    };

    using UTXOTxParameters = std::pair<std::vector<InputUTXOInfo>, std::vector<OutputDestInfo>>;
}

Updated on 2026-03-04 at 13:10:44 -0800