Skip to content

sgns::OutPoint

Unique identifier for a transaction output.

#include <GeniusUTXO.hpp>

Public Functions

Name
bool operator==(const OutPoint & other) const
Compares two outpoints for exact transaction-and-index equality.

Public Attributes

Name
base::Hash256 txid_hash_
Hash of the transaction that produced the output.
uint32_t output_idx_
Output index within the producing transaction.

Public Functions Documentation

function operator==

inline bool operator==(
    const OutPoint & other
) const

Compares two outpoints for exact transaction-and-index equality.

Parameters:

  • other Outpoint to compare against.

Return: True when both the transaction hash and output index match.

Public Attributes Documentation

variable txid_hash_

base::Hash256 txid_hash_;

Hash of the transaction that produced the output.

variable output_idx_

uint32_t output_idx_ { 0 };

Output index within the producing transaction.


Updated on 2026-06-05 at 17:22:18 -0700