> For the complete documentation index, see [llms.txt](https://docs.ducatprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ducatprotocol.com/how-ducat-works/architecture.md).

# Architecture

The Ducat protocol architecture can be broken down into the following diagram that show cases the steps that happen when a user attempts to borrow UNIT.

<figure><img src="/files/zuf3f0W9RryAodalQhVu" alt=""><figcaption><p>Architecture Diagram</p></figcaption></figure>

{% hint style="info" %}
The Guardian network does not, in any way, custody or control the user’s collateralised BTC, it simply acts as a backstop mechanism to ensure protocol rules are being followed.
{% endhint %}

The MPC network acts as a distributed co-signer, designed to solve the liveness problem of a purely peer-to-peer network.

It validates transactions for vault operations, co-signs outputs alongside user signatures, manages Rune distributions between network and user UTXOs, verifies that collateral ratios remain above agreed thresholds, ensures the burning of repaid UNIT tokens, and enforces transaction ordering and compliance with protocol standards.

In the future, updates to Bitcoin such as OP\_CHECKTEMPLATEVERIFY (CTV), OP\_CHECKSIGFROMSTACK (CSFS), or OP\_CAT could allow Ducat to operate without a guardian network. These changes would make it possible to enforce vault rules and transaction constraints directly in Bitcoin Script, removing the need for off-chain validation and threshold signatures. While these upgrades are not guaranteed, they illustrate a path toward a fully trust-minimised, peer-to-peer version of the protocol.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ducatprotocol.com/how-ducat-works/architecture.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
