# Extension Chains: smart contracts for NoM

**URL:** <http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512>\
**Category:** ╰  Funding  |  Staging\
**Tags:** open\
**Created:** [June 21, 2023, 1:04pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512 "2023-06-21T13:04:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [June 21, 2023, 1:04pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/1 "2023-06-21T13:04:24Z")

</div>

**WHAT ARE EXTENSION CHAINS?**

I see extension chains as sidechains (think of a layer-2 solution similar to [Liquid Network](https://docs.liquid.net/docs/technical-overview)) that complements and enhances NoM (with smart contracts) and has the following properties:

- Allows users of the `ext-chain` to move `ZTS` tokens between the two networks with a `two-way peg`. `ZNN` used in the extension chain is referred to as `eZNN`/`xZNN`, and each `xZNN` has a verifiably equivalent amount of `ZNN` secured by the _Extension Consensus Group_: **ECG**.

- The **ECG** is operated & governed by a (sub)set of `Pillars`. With no single entity in control and a geographically diverse membership, there is no single point of failure - similar to how `orchestrators` work. Also `Pillars` have strong incentives to grow the ecosystem and will be additionally rewarded in `xZNN` to run & manage the extension chain infrastructure (via a fee sharing mechanism). We can re-use some implementation details from @sumamu’s multi-chain technology.

- We can adopt the [peg-in](https://docs.liquid.net/docs/technical-overview#peg-in-bitcoin-to-liquid) and [peg-out](https://docs.liquid.net/docs/technical-overview#peg-in-bitcoin-to-liquid) mechanisms from Liquid.

**WHY EXTENSION CHAINS?**

In my opinion this type of sidechain implementation that can bring `EVM`/`WASM` compatibility for NoM will greatly expand the ecosystem. As Mr Kaine already emphasized, extension chains are the fastest way to bring smart contracts to NoM. And we really need `EVM` compatible smart contracts to grow the ecosystem. Moreover, the base layer remains minimal & efficient as Mr Kaine strongly suggested and all the heavy work/bloat is kept in a separate execution domain.

**ARCHITECTURE DESIGN**

Pillars are the largest producer of `ZNN` inflation in the network. They also run `orchestrator` nodes for the bridge. It makes sense for them to also act as validators for the `ext-chain` where fees are paid in `xZNN`. It is important to note that the `ext-chain` cannot produce additional/separate inflation.

Users, Pillars and every other network participant can `peg-in` funds into the `ext-chain` to benefit from smart contracts for example. We can also incentivize/penalize `ext-chain` users via `peg-in`/`peg-out` fee similar to @sumamu’s affiliate fee. It is up to the `ext-chain` deployer make this decision.

`ZNN` is not a gas token because the `ext-chain` will use a wrapped representation of it. It can be called `eZNN` or `xZNN` (execution ZNN).

As I already mentioned earlier, we can re-use parts of @sumamu’s bridge and tweak them to support this type of wrapping. If we go with the burning fees, it would be a little bit different from wrapping `ZNN` to `wZNN` and unwrapping it later because `xZNN` will actually be consumed/burnt in the `ext-chain` (it won’t be a 1:1 backing).

`xZNN` can be associated with the gas concept for the `ext-chain`.

_BUILT-IN POSITIVE FEEDBACK LOOPS_

Since there won’t be any inflation within the `ext-chain`, we must rely on a fee distribution mechanism.

That’s why I propose the following fee distribution mechanism:

- 33% distributed to builders (contract deployers)
- 33% distributed to **ECG** (`ext-chain` validators)
- 34% burned (similar to ETH)

This single piece of ingenuity attracts builders which in turn attracts users.

I’ve already investigated [Canto](https://canto.io/) and why it mooned: they’ve implemented the “golden” fee mechanism (`contractDeploymentFee`).

Users will bridge/swap/convert `ZNN` for `xZNN` through an embedded contract (eg `ext-chain-embedded`) in order to be able to use their favorite dApps that will be run on the `ext-chain` (for example Unizwap, games, meme tokens, NFT collections, etc.).

Users will be required to pay gas fees to interact with the `EVM` smart contracts. Therefore, they will pay/consume `xZNN` and it will be redistributed according to the specified percentages directly by the system contract to the contract deployer, burn address and **ECG** (`ext-chain` validators).

_Positive feedback loop_:

```auto
More users => more activity => higher gas fees => more `xZNN` gets consumed => higher payouts for builders & validators => less ZNN in circulation

```

A win-win-win situation for the whole ecosystem.

The embedded that will convert `ZNN` to `xZNN` needs to be carefully designed, because there won’t be a 1:1 backing (we need to take into account `xZNN` burning).

**WEN EXTENSION CHAINS?**

I’m already working on a testnet that will go live during sometime during Q3 2023. I plan to release a fully functional mainnet release by the end of Q4 2023 or sooner.

---

<div class="post-metadata">

**Author:** ![dat\_she\_pepe](http://forum.zenon.org/user_avatar/forum.zenon.org/dat_she_pepe/32/280_2.png) [@dat\_she\_pepe](http://forum.zenon.org/u/dat_she_pepe)\
**Post date:** [June 21, 2023, 1:31pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/2 "2023-06-21T13:31:25Z")

</div>

Will extension chains be faster in term of confirmation time and throughput than the base layer? Also people talk a lot about L2 being less secure, can you elaborate about that when it comes to ext-chains and the NoM?

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [June 21, 2023, 1:34pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/3 "2023-06-21T13:34:42Z")

</div>

Great questions, zir!

> [@dat\_she\_pepe](#):
>
> Will extension chains be faster in term of confirmation time and throughput than the base layer

So far I’ve achieved `>1000tps` with deterministic finality (1 confirmation required). I have other good news, but I want you to see it with your own eyes first.

> [@dat\_she\_pepe](#):
>
> Also people talk a lot about L2 being less secure

We trade-off security and decentralization (of the base layer) for scalability & smart contracts (on L2).

---

<div class="post-metadata">

**Author:** ![georgezgeorgez](http://forum.zenon.org/letter_avatar_proxy/v4/letter/g/eada6e/32.png) [@georgezgeorgez](http://forum.zenon.org/u/georgezgeorgez)\
**Post date:** [June 21, 2023, 2:22pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/4 "2023-06-21T14:22:06Z")

</div>

> [@aliencoder](#):
>
> - 34% burned (similar to ETH)

What does the copying the burn accomplish on an L2?  
If there’s another extension chain that does 50% to contract, 50% to validators, all things being equal, why won’t people choose that chain instead?

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [June 21, 2023, 2:24pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/5 "2023-06-21T14:24:28Z")

</div>

> [@georgezgeorgez](#):
>
> What does the copying the burn accomplish on an L2?

Make `ZNN` more scarce.

> [@georgezgeorgez](#):
>
> If there’s another extension chain that does 50% to contract, 50% to validators, all things being equal, why won’t people choose that chain instead?

This is up for debate.

---

<div class="post-metadata">

**Author:** ![mehowbrainz](http://forum.zenon.org/user_avatar/forum.zenon.org/mehowbrainz/32/1532_2.png) [@mehowbrainz](http://forum.zenon.org/u/mehowbrainz)\
**Post date:** [June 21, 2023, 2:29pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/6 "2023-06-21T14:29:10Z")

</div>

Topic moved to #╰ Funding | Staging

---

<div class="post-metadata">

**Author:** ![dat\_she\_pepe](http://forum.zenon.org/user_avatar/forum.zenon.org/dat_she_pepe/32/280_2.png) [@dat\_she\_pepe](http://forum.zenon.org/u/dat_she_pepe)\
**Post date:** [June 21, 2023, 3:31pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/7 "2023-06-21T15:31:42Z")

</div>

I’m not questionning your design here but I’m really curious about how sidechains and L2 works in general. In this case, can you go deeper (if you have time) about how the tradeoff works? How the validation works etc.

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [June 21, 2023, 4:00pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/8 "2023-06-21T16:00:29Z")

</div>

> [@dat\_she\_pepe](#):
>
> I’m not questionning your design here but I’m really curious about how sidechains and L2 works in general

Sidechains are a type of L2 (eg Liquid Network). Payment Channel Networks (PCNs) are another type of L2s (eg Lightning Network).

A sidechain is basically another chain that can have different consensus, validator set, etc. and interoperate with the L1 via different mechanisms (in this case the `peg-in`/`peg-out` mechanism).

> [@dat\_she\_pepe](#):
>
> In this case, can you go deeper (if you have time) about how the tradeoff works? How the validation works etc.

Yes, I’ll compile a list with trade-offs and what design we should approach.

---

<div class="post-metadata">

**Author:** ![dat\_she\_pepe](http://forum.zenon.org/user_avatar/forum.zenon.org/dat_she_pepe/32/280_2.png) [@dat\_she\_pepe](http://forum.zenon.org/u/dat_she_pepe)\
**Post date:** [June 21, 2023, 6:13pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/9 "2023-06-21T18:13:29Z")

</div>

On a sidenote and for better UX I’d say that txs should be send seemlessly between L1 and sidechain. A different address structure would probably exists but I’d advocate for a transparent bridge interaction.

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [June 21, 2023, 7:07pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/10 "2023-06-21T19:07:31Z")

</div>

> [@dat\_she\_pepe](#):
>
> A different address structure would probably exists

Definitely. `EVM` requires `secp256k1` so the addresses will be different for sure.

> [@dat\_she\_pepe](#):
>
> for a transparent bridge interaction.

What do you have in mind? We can change the name `wrap` and `unwrap` to move across extension chains, but you’d still need to wait for confirmations to move funds between the L1 and the `ext-chain`.

---

<div class="post-metadata">

**Author:** ![dat\_she\_pepe](http://forum.zenon.org/user_avatar/forum.zenon.org/dat_she_pepe/32/280_2.png) [@dat\_she\_pepe](http://forum.zenon.org/u/dat_she_pepe)\
**Post date:** [June 21, 2023, 8:55pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/11 "2023-06-21T20:55:29Z")

</div>

What I meant is that from a user perspective it would be WAY more simple to copy paste the ext chain address and send over there without interacting with the bridge UI if they don’t want to. Less clicks. Better experience overall. Bring a popup about fee and confirmation to keep them informed but it’d be a better UX for those who seek for simplicity.

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [June 21, 2023, 9:02pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/12 "2023-06-21T21:02:48Z")

</div>

Can you check how [Avalanche is doing this](https://support.avax.network/en/articles/4058262-what-is-the-contract-chain-c-chain)? They have a similar [concept](https://support.avax.network/en/articles/6077308-what-are-the-differences-between-the-x-p-and-c-chains).

---

<div class="post-metadata">

**Author:** ![dat\_she\_pepe](http://forum.zenon.org/user_avatar/forum.zenon.org/dat_she_pepe/32/280_2.png) [@dat\_she\_pepe](http://forum.zenon.org/u/dat_she_pepe)\
**Post date:** [June 21, 2023, 9:46pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/13 "2023-06-21T21:46:07Z")

</div>

I think Harmony has this kind of trick too, with different kind of address but it’s transparent for the user.

---

<div class="post-metadata">

**Author:** ![angelo\_a\_jr](http://forum.zenon.org/user_avatar/forum.zenon.org/angelo_a_jr/32/694_2.png) [@angelo\_a\_jr](http://forum.zenon.org/u/angelo_a_jr)\
**Post date:** [June 22, 2023, 1:34pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/14 "2023-06-22T13:34:53Z")

</div>

Thinking from a positioning standpoint for the sake of marketing/comms, does this proposal essentially allow us to say you can “launch your own chain on NoM” in its final form?

This seems to be the way the market is headed:  
[https://twitter.com/yiryan/status/1671635818732040193?s=46&t=i2nSc9tNKGroSzBMw8\_UiQ](https://twitter.com/yiryan/status/1671635818732040193?s=46&t=i2nSc9tNKGroSzBMw8_UiQ)

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [June 22, 2023, 2:58pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/15 "2023-06-22T14:58:20Z")

</div>

> [@angelo\_a\_jr](#):
>
> does this proposal essentially allow us to say you can “launch your own chain on NoM” in its final form

Exactly. Extension chains will inherit some security properties from NoM, and in the future, from Bitcoin.

---

<div class="post-metadata">

**Author:** ![angelo\_a\_jr](http://forum.zenon.org/user_avatar/forum.zenon.org/angelo_a_jr/32/694_2.png) [@angelo\_a\_jr](http://forum.zenon.org/u/angelo_a_jr)\
**Post date:** [June 22, 2023, 3:37pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/16 "2023-06-22T15:37:06Z")

</div>

Amazing. This might be the perfect use-case for buildcities. Each city its own token, the entire ecosystem its own chain

---

<div class="post-metadata">

**Author:** ![cryptocheshire](http://forum.zenon.org/user_avatar/forum.zenon.org/cryptocheshire/32/1348_2.png) [@cryptocheshire](http://forum.zenon.org/u/cryptocheshire)\
**Post date:** [June 22, 2023, 9:48pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/17 "2023-06-22T21:48:02Z")

</div>

Can’t wait for that last part

---

<div class="post-metadata">

**Author:** ![zyler9985](http://forum.zenon.org/user_avatar/forum.zenon.org/zyler9985/32/232_2.png) [@zyler9985](http://forum.zenon.org/u/zyler9985)\
**Post date:** [June 23, 2023, 1:03pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/18 "2023-06-23T13:03:01Z")

</div>

Super excited for this as well. Will the extension chain have its own name?

Alpha Centauri – it’s the closest star system to earth, and this Zenon sidechain is EVM compatible and therefore the closest alien ecosystem to crypto space/humans

---

<div class="post-metadata">

**Author:** ![dat\_she\_pepe](http://forum.zenon.org/user_avatar/forum.zenon.org/dat_she_pepe/32/280_2.png) [@dat\_she\_pepe](http://forum.zenon.org/u/dat_she_pepe)\
**Post date:** [June 23, 2023, 2:51pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/19 "2023-06-23T14:51:35Z")

</div>

No please don’t bring more cringe scifi thanks

---

<div class="post-metadata">

**Author:** ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)\
**Post date:** [June 23, 2023, 3:07pm UTC](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512/20 "2023-06-23T15:07:03Z")

</div>

THORchain had all these crazy mythical names that were hard to say, remember, and type.

Look at the top 20 names. They are all easy to remember, say, spell, and type. Much better.

[Next page](http://forum.zenon.org/t/extension-chains-smart-contracts-for-nom/1512.md?page=2)
