<p>That's correct.</p>
<p>Of course, that many leaves is intractable to construct. The reason for permitting that many levels is to permit unlikely leaves to be put in deeper levels, reducing the <em>average</em> control block size (while increasing the <em>worst cast</em> control block size).</p>

CC BY-SA 4.0
2021-10-16T18:42:46.603Z
2021-10-16T18:42:46.603Z
Pieter Wuille
<p>According to <a href="https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki" rel="nofollow noreferrer">BIP-341</a>, the control block can have a length of 33 + 32m, for a value of m that is an integer max 128. Does it mean it's possible to construct a MAST with 128 levels, making 340282366920938463463374607431768211456 possible script combinations?</p>

<taproot><mast>
Maximum number of possible MAST leaves
Burak
# Maximum number of possible MAST leaves

(Asked by: username_0 on 2021-10-16)

According to [BIP-341](https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki), the control block can have a length of 33 + 32m, for a value of m that is an integer max 128. Does it mean it's possible to construct a MAST with 128 levels, making 340282366920938463463374607431768211456 possible script combinations?

**Tags:** taproot, mast


---

## 1 answers

### Answer by username_1 on 2021-10-16. Score: 2 | Accepted answer

That's correct.

Of course, that many leaves is intractable to construct. The reason for permitting that many levels is to permit unlikely leaves to be put in deeper levels, reducing the *average* control block size (while increasing the *worst cast* control block size).


---

