Class OutputDescriptor.TapTree
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
scriptsIList<OutputDescriptor>depthsIList<int>
Returns
IterateScripts()
Iterates all tap script with its depth. Depth-first.
public IEnumerable<(OutputDescriptor, int)> IterateScripts()
Returns
NewLeaf(OutputDescriptor)
public static OutputDescriptor.TapTree NewLeaf(OutputDescriptor inner)
Parameters
innerOutputDescriptor
Returns
NewTree(TapTree, TapTree)
public static OutputDescriptor.TapTree NewTree(OutputDescriptor.TapTree child1, OutputDescriptor.TapTree child2)
Parameters
child1OutputDescriptor.TapTreechild2OutputDescriptor.TapTree
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.