Table of Contents

Class TreeValidator

Namespace
NArk.Core.Batches
Assembly
NArk.Core.dll

Validates tree signatures

public static class TreeValidator
Inheritance
TreeValidator
Inherited Members

Methods

ValidateConnectorsTxGraph(PSBT, TxTree)

Validates the connectors transaction graph Matches TypeScript validateConnectorsTxGraph (lines 31-56)

public static void ValidateConnectorsTxGraph(PSBT commitmentTransactionPsbt, TxTree connectorsGraph)

Parameters

commitmentTransactionPsbt PSBT
connectorsGraph TxTree

ValidateVtxoTxGraph(TxTree, PSBT, uint256)

Validates the VTXO transaction graph Matches TypeScript validateVtxoTxGraph (lines 58-157) Validates:

  • the number of nodes
  • the number of leaves
  • children coherence with parent
  • every control block and taproot output scripts
  • input and output amounts
public static void ValidateVtxoTxGraph(TxTree graph, PSBT roundTransaction, uint256 sweepTapTreeRoot)

Parameters

graph TxTree
roundTransaction PSBT
sweepTapTreeRoot uint256