FIO Layer 2


FIO Layer 2 is a concept which introduces an off-chain framework, which enables FIO Protocol users to exchange messages between each other without the need to store those messages on-chain.


Messages which are candidates for this approach are:

Messages which are not candidates for this approach are:

  • Token transfers - since FIO Chain’s main purpose is not payment solution and due to the complexity associated with a payments on L2, token transfers are not a good fit for L2.

  • FIO Domain/Address registration - since the FIO Private key which owns a FIO Address or Domain is critical to authenticate the L2 message, and because it involves a payment transaction, FIO Domain/Address registration are not a good fit for L2.

  • Core blockchain transactions (voting, proxying, account management, etc.)


Similar to other Layer 2 solutions, the benefits of this approach include:


  • The solution would consist of nodes which would relay messages between FIO Protocol users.

  • The message would be routed to recipient using FIO Addresses.

  • Recipient would fetch the message using their FIO Address or a search index contemplated in FIP-5 to further enhance privacy.

  • The messages would be signed with FIO Private Key which owns sender’s FIO Address.

    • The recipient would fetch the FIO Public Key which owns the sender’s FIO Address from the FIO Chain and use it to cryptographically validate that the message was created by the owner of the private key which owns the sender’s FIO Address.

  • The message could be further encrypted using Diffie-Hellman Key Exchange scheme similar to how FIO Request content is encrypted today.

Open Questions and Challenges

Running L2 nodes

What is the incentive to run an L2 node and who will run it?

  • Anyone - because all messages are signed by the private key of the sender, there is no trust required to run a node. Therefore anyone could do it. The incentive to do it could be:

    • Part of FIO Chain fees could be redirected to L2 node operators.

    • Nodes could be ran by integrators (wallets/exchanges) as they have an incentive to service their customers.

  • Block Producers - block producers already have an incentive to run FIO Chain infrastructure and that L2 node could be part of it.

Availability and censorship resistance

By definition blockchains are highly available and censorship resistant, because the data is securely replicated across many nodes.

What is the optimal design for L2 nodes?

  • Non-replicated - allow FIO Address owner to specify which node to use to send or receive L2 messages. Only that node would contain the relevant content. Similar approach has been described in FIP-24.

    • The downside of this approach is that:

      • Data can be irreversibly lost if the node is lost.

      • Data is not accessible if node is down or is being censored.

    • See related discussion regarding Request for Signature.

  • Replicated - the messages are simultaneously stored on and are accessible by querying any node.

    • The downside of this approach is that:

      • High overhead of having to maintain and sync messages across multiple nodes.


Today most FIO Chain transactions have an on-chain cost. This is intended to deter, but not prevent spam. There is already an initiative on the Roadmap to consider solutions to FIO Request spamming, which have already been reported. This issue is significantly larger if the cost of transmitting a message is free. An attacker could easily send millions of messages intended to spam users or to make the service unusable.

How is spam mitigated?