The Good Tech Companies - Scaling Bitcoin On-Chain with Omnity
Episode Date: April 30, 2024This story was originally published on HackerNoon at: https://hackernoon.com/scaling-bitcoin-on-chain-with-omnity. Omnity Launches the First 100% Onchain Bitcoin Asset O...mnichain Hub Check more stories related to tech-stories at: https://hackernoon.com/c/tech-stories. You can also check exclusive content about #scaling, #omnity, #bitcoin, #onchain-bitcoin-asset, #zk-technology, #layer-2-rollups, #bitcoin-network, #good-company, and more. This story was written by: @omnity. Learn more about this writer by checking @omnity's about page, and for more stories, please visit hackernoon.com.
Transcript
Discussion (0)
This audio is presented by Hacker Noon, where anyone can learn anything about any technology.
Scaling Bitcoin on-chain with Omniti by Omniti Network.
After five years of restless building in the cross-chain interoperability space,
Octopus Network, the development team behind Omniti, has created a perfect,
invisible Omnichain hub that can connect any L1-per-liter 2-per-liter 3 and even ZK technology
once it advances enough.
Omnity's 100% end-to-end on-chain tech stack offers fast finality, fungible token persistence,
and negligible user fees, even for Bitcoin. N-Omnity launches on April 28 with its first
Bitcoin asset, Runes, on the internet computer. Omnity's ability to connect any chain without
relying on centralized multi-sig or
off-chain components adds unprecedented potential to Bitcoin's scalability, enabling Bitcoin Layer
2 solutions. Bitcoin in the spotlight. Bitcoin's been in the spotlight this year. ETFs, ordinals,
runes, and the halving. The surge in NFT trading, fueled by the popularity of Ordinal's ANDBR C20 tokens,
prompted Binance and other cryptocurrency exchanges to integrate Layer 2 solutions
like the Lightning Network to sidestep network congestion.
Binance eventually decided to cease support for Ordinals altogether because Bitcoin NFT
transactions clogged the network, increasing fees and slowing processing times.
The RUNES initiative sought to draw more developers and conventional users to Bitcoin, and it
worked.
The launch of RUNES triggered intensive activity on the Bitcoin network, crippling the network
and boasting some outrageous transaction fees.
Bitcoin miners blew past record daily transaction fees of $24 million.
Within the first 60 blocks following the halving, miners amassed 860.
20 BTC, roughly $54 million in transaction fees alone. Many view this as benevolent
in compensating for miners for suffering the halving fee cut from 6.25 BTC to 3.125 BTC.
However, Bitcoin's usability is the broader issue. Scaling Bitcoin.
Over the years, the multi-levered challenge of scaling Bitcoin without compromising its
inherent characteristics has continued to drive the development of many innovative projects,
all contributing to our collective, open-source, voluminous history of headbanging against the
blockchain trilemma. Every solution balances tradeoffs between
decentralization, security, and scalability. On layers, SegWit, and Taproot the concept of
separate layers to expand Bitcoin functionality was mentioned as far back as 2012 in the Colored
Coins white paper, years before the Lightning Network was launched. So, the issue has been
kicking around the block for over a decade, pun intended.
The Lightning Network wouldn't work before SegWit.
The security and functionality of its off-chain transactions depend on the immutability of
on-chain transaction identifiers, leaving it open to attack while transaction malleability
exists.
SegWit was successfully activated in 2017, increasing available block space and addressing
transaction malleability.
Taproot, implemented in 2021, brought several enhancements that improved privacy, efficiency,
and flexibility in scripting. The core of Taproot is the introduction of Schnorr signatures,
which allow for key and signature aggregation. This means multiple parties can combine their
keys to a single public key, allowing them to sign a single message. Schnorr signatures Cominto play later in this discussion.
Taproot also introduced MAST, Merkleized Abstract Syntax Trees. Traditional Bitcoin scripts are
bulky and fully expose the script upon transaction execution, compromising user privacy. MAST
improves this by structuring the script as a binary Merkle tree,
revealing only the essential parts needed for transactions, thereby boosting scalability and
privacy. While Taproot's primary goal wasn't directly focused on enabling specific Layer 2
solutions, its introduced features could facilitate and improve various Layer 2 protocols and
applications by enabling more complex smart contracts on Layer
2 solutions. Bitcoin Layer 2S Technically, Bitcoin's Layer 2 solutions still need to be
fully developed. Conceptually, Layer 2 solutions emerged in the Ethereum ecosystem. However,
Bitcoin's ecosystem has only two methods for expanding from L1. One is through ZK,
BitVM technology, which represents a significant
breakthrough. However, ZK proofs aren't practical on Bitcoin yet. Another method involves leasing
security, exemplified by Babylon, where some of Bitcoin's classic security is shared with other
chains. Strictly speaking, this second method isn't considered Bitcoin L2. This is not to say
that Bitcoin Layer 2
developers aren't hard at work. Building a Layer 2 that does not rely on off-chain components is
incredibly difficult. So, when talking about Bitcoin L2s today, we refer to any execution
environment primarily dealing with Bitcoin assets. They can be independent chains leveraging
security leasing or even Ethereum L2S.
Currently, the most active chains often derive their security not from Bitcoin but from Ethereum.
Suppose they're connected to the Bitcoin ecosystem. In that case, they're considered execution chains for Bitcoin, while their mainnet is also responsible for asset issuance and
settlement, akin to the relationship between central and commercial banks.
What does Omniti bring to the Bitcoin community? Omniti establishes a trustless and highly secure
asset bridge between Bitcoin's mainnet and Layer 2 solutions with a 100% end-to-end on-chain
protocol stack. Omniti runs on the Internet Computer Protocol, ICP, and integrates Bitcoin's
network into a specialized subnet within ICP, where all nodes are connected
with the Bitcoin network via P2P. In this respect, Omniti is a Bitcoin Layer 2 enabler.
To explain how the Omniti development team accomplished this, we need to take a step back.
WHO built OMNITY. The development team behind Omniti has been tirelessly attacking
interoperability issues for years.
In line with our philosophy of a more open, secure, and fair internet, the team, called CDOT back then,
adopted and built on IBC, Inter-Blockchain Communication, receiving a grant in 2020 from ICF to implement IBC on Substrate. CDOT rebranded to Octopus as we released our first product,
a multi-chain network
featuring shared security to substrate-based app chains on Near Protocol. With substantial support
from DCG, Electric Capital, Near Foundation, and dozens of leading venture capitalists,
the Octopus mainnet launched in October 2021 and became the first shared security network,
preceding Cosmos' shared security by just under
two years. The birth of a perfect invisible HUBase Octopus, we proposed Substrate IBC, ICS-10,
of the Cosmos IBC specification and have been its maintainer since. In 2023, we implemented the first
restaking AVS on NIR, enabling users to directly restake from Octopus to shared security.
Next, we proposed NEAR IBC ICS 12, connecting NEAR to Cosmos. While pioneering a NEAR IBC
Lite client, we chose the Internet Computer to test verification proxies. Then, we realized the
Internet Computer was much more capable than we knew. We discovered that by leveraging ICP's unique capabilities,
such as chain-key cryptography and HTTPS outcalls, we could fulfill IBC's unfinished
ambition by presenting a perfect but invisible hub, leading to the interoperability endgame.
Specific primitives of ICP's advanced technology allowed the Omniti team to solve some of IBC's
stickiest limitations. A full discussion of this discovery
is beyond the scope of this article but can be found here. The diagram below shows a high-level
view of our modifications to IBC, TAO by applying ICP tech. TLDR. In the Omniti network, ICP smart
contracts called customs and route replace IBC's PEGZones and Lite Clients, respectively, and the
browser wallet takes over the job of the relayer. In OmniT, IBC's PEGZones are replaced with ICP
Customs smart contracts, eliminating the need for an independent security and incentive model.
Smart contract runtime on the hub chain enables heterogeneous blockchain extensibility.
Now, various types of Lite clients, in the form of
smart contracts, can run on the hub to facilitate communication with different blockchains.
Customs acts like a customs checkpoint by handling user asset locking and routing assets to various
chains, connecting L1 per liter to L3 orb chains. IBC Lite clients are replaced with ICP root smart contracts in Omniti.
Because Cosmos designed the tendement consensus, now Comet BFT, with the IBC Lite client in mind,
a ready-to-use on-chain Lite client existed for Cosmos SDK chains.
This isn't true for other blockchains.
In addition, Lite client verification isn't good enough for settlement chains,
which are cornerstones of Omniti's security, especially considering that some light clients,
including ETH2, are not designed for high-stake use cases like bridges.
Finally, the Omniti user's browser wallet takes over for the relayer.
ICP's reverse gas model allows Omniti to get rid of off-chain relayers.
Users don't need to pay gas fees to interact with
smart contracts on ICP. So, the user's front end takes the first half of the relayer's work,
relaying cross-chain messages from the source chain to ICP. Users don't need to install a
wallet and hold $ICP beforehand. How does Omniti work with Bitcoin?
Canisters are ICP smart contracts containing a program's code
and state. Canisters can carry out complex computations, such as verifying a block header
with hundreds of signatures or storing a few hundred GB of data on a chain, all at a very
affordable cost, which is simply impossible on any other blockchain. ICP builds 100% on chain
end-to-end tech stacks, so its Bitcoin integration is similar to running a Bitcoin node on chain. ICP builds 100% on-chain end-to-end tech stacks, so its Bitcoin integration is similar to
running a Bitcoin node on-chain. ICP is integrated with the Bitcoin network at the protocol level,
maintaining BTC code for easy transitions and data consumption. Canisters can read and write
to the Bitcoin network. The diagram below shows the Bitcoin adapter and Bitcoin canister,
which have been live on the ICP mainnet for almost a year while Omniti built the other components. A dedicated Bitcoin subnet
with each node runs a Bitcoin adapter daemon and is independently connected with the Bitcoin P2P
network. If a canister wants to make a Bitcoin transaction, a request is sent to the Bitcoin
subnet that hosts the Bitcoin canister containing ICPs on
Bitcoin state. Once the subnet nodes reach consensus on a new Bitcoin block,
the block is fed to Bitcoin canister, a UTXO indexer that continuously updates a whole UTXO set.
The request is then sent to the Bitcoin network through the Bitcoin adapter and is processed by
the Bitcoin network asynchronously. OMNITYBTI. The first fully on-chain Bitcoin indexer Omnity will deploy the Bitcoin Token
Indexer, BTI, parallel to the Bitcoin canister to support BRC20, Runes, and other Bitcoin assets.
Omnity BTI will beta world's first fully on-chain Bitcoin Token Indexer,
facilitating the fully trustless
transfer of Bitcoin tokens to other blockchains and strengthening Bitcoin's position as a universal
settlement layer. What is CKBTC? ICP's chain fusion technology enables ICP smart contracts
to directly hold, receive, and send BTC and facilitate the creation of a CKBTC token that is backed one-to-one by BTC. However,
the great value of chain-key tokens, like CKBTC, is that they can be transferred within seconds for
a fraction of that cost on the token's native network. ICP's CKBTC is like a Bitcoin twin in
that it shares Bitcoin's network state. It's an ICRC2 token that is backed one-to-one by BTC held 100% on the mainnet,
securely incorporating BTC into DeFi and Web3 services on the internet computer blockchain
as if ICP and the Bitcoin network were one blockchain. OmniT is a BTC Layer 2 enabler
for all chains. ICP's on-chain Bitcoin integration is essential because it brings smart contract functionality to Bitcoin, opening up new possibilities for DeFi and Dapp development without congesting the Bitcoin network and driving up transaction fees.
Omniti will facilitate token transfers so tokens do not need to return to Bitcoin. They can be transferred to any chain connected to the ICP protocolfully on-chain with no witnesses or verifiers, the first fully on-chain token bridge. Omniti only incorporates a settlement chain when
full node security can be achieved. For now, Bitcoin, Ethereum, and ICP itself meet this
standard. However, almost all blockchains, including various types of L2, can be connected
with Omniti as execution chains.
Meanwhile, any token issued on a connected settlement chain will have unparalleled cross-chain interoperability through Omni-T without liquidity provisions.
As discussed, Schnorr signatures allow for easy aggregation of multi-signature
sand threshold signatures. ICP's recent announcement of the integration of threshold
Schnorr signatures will enable
canisters to obtain their own Schnorr public keys and addresses, request ICP to compute
Schnorr signatures for arbitrary messages, and support both BIP 340 and ED 25519.
This extends Omnity's scope of cross-chain assets trading to ordinals and other asset types,
along with future potential integrations with
other chains that use ED25519 variants, such as Solana, Polkadot, or Cardana. OMNITY is anti-fragile
and future-proof OMNITY is a vast improvement over multi-signature or other external verification
cross-chain bridges. It offers a trustless omni-chain hub that enhances user experience
and exhibits
anti-fragileness against the vulnerabilities seen in centralized models. Skeptics of our IBC design
might question the need for verification proxies and suggest relying solely on external verification
cross-chain bridges instead. However, because IBC is an open, layered protocol, it allows for the
continuous evolution of the verification layer while maintaining IBC interoper open, layered protocol. It allows for the continuous evolution of the verification layer
while maintaining IBC interoperability. So, Omniti can seamlessly integrate future advancements,
such as replacing the proxy client with a ZK verifier once the technology matures,
without disrupting any existing applications. Omniti is poised to both keep pace with
technological progress and lead it, ensuring that all connected
blockchains can effectively function as layer 2 solutions to Bitcoin. This vision for a secure,
fully on-chain, cross-chain protocol underscores our dedication to adopting and advancing the
best available technologies for Bitcoin scalability. Suzanne Lee is the editor of Omniti Network.
This article was written in collaboration with Louis Liu, CEO and founder of Omniti Network. This article was written in collaboration with Louis Liu,
CEO and founder of Omniti Network. Thank you for listening to this HackerNoon story,
read by Artificial Intelligence. Visit HackerNoon.com to read, write, learn and publish.