pub struct TaprootBuilder { /* private fields */ }
Expand description

| Utility class to construct Taproot | outputs from internal key and script | tree. |

Implementations§

| Return true if so far all input was valid. |

| Return whether there were either no | leaves, or the leaves form a Huffman | tree. |

| Combine information about a parent | Merkle tree node from its child nodes. |

| Insert information about a node at a | certain depth, and propagate information | up. |

| Check if a list of depths is legal (will | lead to IsComplete()). |

| Add a new script at a certain depth in | the tree. Add() operations must be called | in depth-first traversal order of binary | tree. If track is true, it will be included | in the GetSpendData() output. |

| Like Add(), but for a Merkle node with | a given hash to the tree. |

| Finalize the construction. Can only | be called when IsComplete() is true. | internal_key.IsFullyValid() must | be true. |

| Compute scriptPubKey (after Finalize()). |

| Compute spending data (after Finalize()). |

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Performs the conversion. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Convert type of a const pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.