[#TaprootBuilder-ValidDepths]
= xref:TaprootBuilder.adoc[TaprootBuilder]::ValidDepths
:relfileprefix: ../
:mrdocs:

Check if a list of depths is legal (will lead to IsComplete())&period;

== Synopsis

Declared in `&lt;script&sol;signingprovider&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
ValidDepths(std::vector&lt;int&gt; const& depths);
----

== Return Value

True if the depths form a valid tree&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *depths*
| The leaf depths in depth&hyphen;first order&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
