<blockquote>
<p>What would a fragment be defined as here?</p>
</blockquote>
<p>The functions in Miniscript (e.g. <code>and_v</code>, <code>older(1000)</code>) are referred to as <strong>fragments</strong>.</p>
<blockquote>
<p>What should I call the underscore letter (<code>_v</code>)?</p>
</blockquote>
<p><code>and_v</code> is the <strong>fragment</strong> and the <code>_v</code> part of it is the <strong>suffix</strong>.</p>
<blockquote>
<p>And the (<code>v:</code>)?</p>
</blockquote>
<p>The <code>v:</code> in <code>v:older(1000)</code> is a <strong>wrapper</strong>.</p>
<p>Some <a href="https://github.com/bitcoin/bitcoin/pull/24147" rel="nofollow noreferrer">additional definitions</a> may be of interest.</p>
<p>We use the term <strong>valid</strong> for any correctly typed Miniscript. And we use the term <strong>safe</strong> for any <strong>sane</strong> Miniscript, ie one whose satisfaction isn't malleable, which requires a key for any spending path, etc.</p>
<p>Thanks to individuals for answering this on IRC.</p>

CC BY-SA 4.0
2022-01-28T21:20:12.583Z
2022-05-25T16:11:31.920Z
2022-05-25T16:11:31.920Z
Michael Folkson
<p>An example <a href="https://bitcoin.stackexchange.com/questions/91565/what-does-bitcoin-policy-language-offer-the-developer-that-miniscript-doesnt-w">Miniscript</a> is:</p>
<p><code>and_v(or_c(pk(B),or_c(pk(C),v:older(1000))),pk(A))</code></p>
<p>(Generated using this Miniscript <a href="https://bitcoin.sipa.be/miniscript/" rel="nofollow noreferrer">site</a>).</p>
<p>What would a fragment be here? What should I call the underscore letter (<code>_v</code>)? And the (<code>v:</code>)?</p>

<script><terminology><miniscript>
What is a Miniscript fragment? And what should I call the underscore letter?
Michael Folkson
# What is a Miniscript fragment? And what should I call the underscore letter?

(Asked by: username_0 on 2022-01-28)

An example [Miniscript](https://bitcoin.stackexchange.com/questions/91565/what-does-bitcoin-policy-language-offer-the-developer-that-miniscript-doesnt-w) is:

`and_v(or_c(pk(B),or_c(pk(C),v:older(1000))),pk(A))`

(Generated using this Miniscript [site](https://bitcoin.sipa.be/miniscript/)).

What would a fragment be here? What should I call the underscore letter (`_v`)? And the (`v:`)?

**Tags:** script, terminology, miniscript


---

## 1 answers

### Answer by username_0 on 2022-01-28. Score: 0 | Accepted answer

> What would a fragment be defined as here?

The functions in Miniscript (e.g. `and_v`, `older(1000)`) are referred to as **fragments**.

> What should I call the underscore letter (`_v`)?

`and_v` is the **fragment** and the `_v` part of it is the **suffix**.

> And the (`v:`)?

The `v:` in `v:older(1000)` is a **wrapper**.

Some [additional definitions](https://github.com/bitcoin/bitcoin/pull/24147) may be of interest.

We use the term **valid** for any correctly typed Miniscript. And we use the term **safe** for any **sane** Miniscript, ie one whose satisfaction isn't malleable, which requires a key for any spending path, etc.

Thanks to individuals for answering this on IRC.


---

