> For the complete documentation index, see [llms.txt](https://fogcomputingchain.gitbook.io/fog-computing-chain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fogcomputingchain.gitbook.io/fog-computing-chain/key-technology/cross-chain.md).

# Cross-chain

The key to cross-chain technology is to solve the transfer problem between backbone and side chain, and to have a mechanism to ensure that the transfer between backbone side chain is safe and credible.To this end, Adam Back et al. Have proposed a technique called two-way anchoring (Two-waypeg) to address the transfer of assets between the two chains.The basic principle is based on SPV to verify that transactions do exist on another chain, but this is the premise to save all of each other's block header information.

Main chain and side chain are 1-to-many relationships, using symmetrical bidirectional anchoring, there is no problem with saving only the whole block head information of the side chain. If the backbone needs to save all side chain header information, it is unacceptable, so symmetrical SPV-based bidirectional anchoring can not be used on the main side chain architecture of FOGR.

FOGR adopts different mechanisms for the transfer in the two directions between the main and side chains.

{% content-ref url="/pages/OQN8wG02dQWS1TKxUVxB" %}
[Backbone to side chain transfer](/fog-computing-chain/key-technology/cross-chain/backbone-to-side-chain-transfer.md)
{% endcontent-ref %}

{% content-ref url="/pages/kTjALJBwye3OdiEFIIV3" %}
[Side chain to the backbone transfer](/fog-computing-chain/key-technology/cross-chain/side-chain-to-the-backbone-transfer.md)
{% endcontent-ref %}

{% content-ref url="/pages/2Jxmi6TGHrr78zDDW41z" %}
[Arbitrator](/fog-computing-chain/key-technology/cross-chain/arbitrator.md)
{% endcontent-ref %}


---

# 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://fogcomputingchain.gitbook.io/fog-computing-chain/key-technology/cross-chain.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.
