Table of Contents

Class OutputDescriptor.TapTree

Namespace
NBitcoin.Scripting
Assembly
NArk.Abstractions.dll

binary tree to represent MAST in Taproot script for descriptor.

public abstract class OutputDescriptor.TapTree
Inheritance
OutputDescriptor.TapTree
Derived
Inherited Members

Methods

FromScriptDepths(IList<OutputDescriptor>, IList<int>)

public static OutputDescriptor.TapTree FromScriptDepths(IList<OutputDescriptor> scripts, IList<int> depths)

Parameters

scripts IList<OutputDescriptor>
depths IList<int>

Returns

OutputDescriptor.TapTree

IterateScripts()

Iterates all tap script with its depth. Depth-first.

public IEnumerable<(OutputDescriptor, int)> IterateScripts()

Returns

IEnumerable<(OutputDescriptor, int)>

NewLeaf(OutputDescriptor)

public static OutputDescriptor.TapTree NewLeaf(OutputDescriptor inner)

Parameters

inner OutputDescriptor

Returns

OutputDescriptor.TapTree

NewTree(TapTree, TapTree)

public static OutputDescriptor.TapTree NewTree(OutputDescriptor.TapTree child1, OutputDescriptor.TapTree child2)

Parameters

child1 OutputDescriptor.TapTree
child2 OutputDescriptor.TapTree

Returns

OutputDescriptor.TapTree

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.