[ETH Seoul 2024] Bring BTC to web3 by Denis Fadeev

ETH Seoul 2024 · 12 Apr 2024 · 21:57

Denis Fadeev, Head of DevEx at ZetaChain, asks why most Bitcoin sits idle outside decentralized finance and how it can be brought into web3 applications. He describes ZetaChain's EVM-compatible omnichain contracts, where one contract can accept native deposits from Bitcoin, Ethereum and other chains, with observer validators voting on deposits. Examples include cross-chain swaps and collateral, and the session covers tooling and grants for developers.

Speakers

Topics

From ETH Seoul 2024, hosted by Kryptoplanet.

Transcript

hey everyone my name is Dennis um and I'm going to be talking about bringing Bitcoin to web 3 so Bitcoin was the first major blockchain right this is the blockchain that uh people think about when you when you say crypto when you say um blockchain right that's that's the most popular um coin that's the most most popular asset uh pretty much everywhere and it has been popular since the very beginning pretty much right we we can we can see that the dominance hasn't really declined over the years it still uh is over 50% um by by all um

measurements right it's it's an extremely large um blockchain with um with a share that you can't really uh compare to anything else um with recent um advancements in in kind of legal side of things where uh BTC ETFs getting improved and many countries uh cryptocurrencies and first of all Bitcoin of course uh become um more integrated in in the system of of in the financial system um it it its popularity is is growing even more right with the upcoming Hing um so I mean I

don't have to tell you guys that Bitcoin is huge uh but there are missing opportunities here right there there are opportunities that haven't been utilized yet um specifically that it's not really part of defi right it's not part of the the the the the main narrative it it has been even though it's the most popular asset kind of has been excluded from many of the activities that um that we're uh talking about right and all the advancements are kind of um moving in parallel to to to to bitcoin um so for example right if you compare uh the the

version of assets uh that can be used in in defi it's it's tiny compared to to eth even though the market dominance of Bitcoin is overwhelming and if we look into uh how this asset wbtc compares to bitcoin and general we can see that it's less than 1% so 99% of Bitcoin is just kind of sitting on on on chain uh doing pretty much nothing uh in terms of um activity uh onchain activity right um it's uh it's being used obviously in centralized uh environment but not in uh applications that that we're interested

in building right like decentralized applications uh with Z chain we uh think we have potential uh to unlock um the the power of BGC and uh connected to the applications that are deployed on uh on other blockchains and make it actually much more useful so Zeta chain is the first simple fast and secure Omni chain blockchain and I'm going to talk what I I'm going to explain what I mean by this um why build on Z chain well first of all it offers um unique chain

abstraction capabilities that are um that make any asset um doesn't matter if a smart contract capable or not um useful in defi environment and pretty much any programmable environment uh and it's also much more secure than um many other solutions that have that are attempting to to do this so what is data chain it's a sovereign L1 blockchain that provides a platform for developers to build Omni chain applications it also offers cross chain messaging between evm chains

so with cross chain messaging it's super easy to send arbitrary data between uh contracts deployed on different chains um we've seen um kind of projects implementing this and um it's very useful but it has some limitations right like even on on this slide you can see that you can't really do that with with Bitcoin so the most popular asset uh is getting left out and cross messaging is the most popular um solution for interoperability between uh specifically evm chains but we're excluding the most popular asset so we think it's um cross

stream messaging is kind of missing the point we we think it's it's a good solution but it's not as scalable and not as uh streamlined from developer experience point of view that's why we're um offering Omni chain contracts so with Omni chain contracts you can connect any blockchain and any asset on any blockchain and the way it works is as a developer you deploy a contract on Zeta chain it uh it's evm compatible so it's the famili it's the familiar uh developer environment that you're

already used to on other blockchains but what's different about it is that your contract by default becomes uh interoperable with any blockchain so what this means is you deploy a single contract uh on data chain and any user of Bitcoin ethereum BSC can call your contract and deposit tokens into it and your contract can generate one or more outputs to any connected blockchain so this means that when you when you deploy to um to a non interoperable blockchain um that is also evm compatible you get

only users from that specific chain which might be okay but as more and more chains uh become popular uh you can't deploy your app on every chain and synchronize the state with uh cross chain messaging it just becomes uh unmanageable and from the architecture point of view it becomes very complex very quickly with Omni chain contracts the architecture is completely different is just a single contract that just by default uh is interoperable the way it works is uh fully decentralized so being a proof of stake L1 Zeta chain has validators and

uh it actually has two types of validator ators core validators secure the network and um they they run Comet bft consensus which has instant finality and a bunch of other um very useful features uh but we also have Observer validators who do much more than that so they run Zeta chain nodes but they also run nodes of connected blockchains and uh they observe these blockchains And when they see incoming transactions they vote on the these transactions on Zeta chain and it's all very transparent it happens on chain and when the vote is complete tokens are minted so when a user for example um deposits BTC onto

Zeta chain um Observer validators notice this transaction they vote on it and uh as a result they uh the protocol mint uh WS Bitcoin but WRA Bitcoin is not the end of the story right it's just kind of the beginning this the advantage of Zeta chain as a platform is that this uh WRA token automatically gets deposited into the contract that that that you want so for example you can easily build a swap contract where um Native BTC gets deposited swap for another token uh for example uh uh usdc and usdc gets withdrawn to the destination token so

for many any applications uh like cross chain swaps users never actually have to deal with wrapped assets wrapped assets only act as um accounting mechanism for uh for the contract uh at the end what end users get is very seamless transition of value between blockchains without needing to explicitly wrap assets or um deal with with uh with putting these assets into contracts so uh let me give you um a quick example of why this is super important for um for Bitcoin users for example so um let's say there's um a Bitcoin user that

doesn't really they're not really interested in other chains they truly believe in Bitcoin they have a Bitcoin wallet right but at the same time they want to make sure that kind of um they they're they're using they're utilizing their BTC right so not just sitting uh in their wallets and they don't want to use centralized exchanges or Services because um they they they believe in self- custody so what they what they can do with data chain is uh deposit their BTC by sending a native Bitcoin transaction in their favorite wallet without having to sign up for any other account or knowing about gas token or even knowing about data chain right they

use their favorite wallet they send a native transaction BTC gets deposited on into what we call TSS address and uh it's not a contract it's regular address that is owned by Observer validators of Zeta chain so BTC gets locked in in this TSS address and observer signers vote on this deposit to make sure that that they all uh agree that they have consensus on that BTC gets deposited and in this transaction in this BTC transaction um a user well hopefully not the user but the D they're using provides information

about which contract they want to deposit uh btc2 which contract on Zeta chain and they can also provide additional information in the memo so this information gets passed to the on Ming contract that you as a developer um buildt and you can use pretty much all the power of evm and all the dabs deployed on Zeta chain uh to potentially Swap this BTC uh into another asset or Mint nfts or what have you right you can do anything you want with this asset uh including um swapping and withdrawing or um yeah so it's very very flexible we

don't impose any uh limitation on you as a developer we just provide the infrastructure kind of the the decentralized mechanism for users of any blockchain to deposit and withdraw assets and call Omni chain contracts permissionless so this mechanism is extremely powerful and we um we think it's going to unlock a lot of interesting possibilities specifically uh for assets and chains that don't support smart contracts but of course uh we're not limited to that so as I mentioned uh Zeta chain is fully evm compatible um it's uh built on top

of cosmos's Decay and uses an evm module so um all the applications that's run on other evm compatible chains can be just easily deployed on Zeta chain and even if you don't modify them by default they're already interoperable uh because the token format that Zeta chain uses for deposited assets are is erc20 compatible so even if you don't modify your contract you just deploy it on Zeta chain users can already deposit tokens and uh use them in your applications um but to improve the experience you can modify your

application or create a contract that kind of wraps this functionality and allow users to um to to deposit with a single transaction as as I described earlier right so you can choose the level of integration you want but of course uh you probably uh as developers you probably want to provide the best experience for end users and the best experience is that a user just sends a a native token transfer on any connected chain signs just one transaction it triggers a sequence of action sequence of contract calls uh potentially with output to other blockchains so this is really powerful uh we provide all the tooling for for you to uh create these contracts to

quate balances to deposit withdraw tokens also to track cross chain transactions uh to make Transition from a single chain to Omni chain uh much easier um you would really be surprised how easy it is to actually go through tutorials it might take you just like 15 minutes to complete a tutorial and maybe like uh an hour uh to to complete the most advanced one uh we have so the the layer the API um that we uh created is is basically just one function that you have to implement uh so it's it's really easy to uh augment your existing applications to become Omni chain uh

compatible and again what you get from this is all users of all the connected chains can now easily um use your application so Zeta chain uh was was launched um a few months ago now and we're seeing incredible growth with millions of transactions hundreds of uh daps deployed millions of users so it's it's growing uh incredibly uh and we've seen um AAA players like sushi swap deploy their applications on Zeta chain main net beta um that is compatible with the Omni chain uh tokens so when you build your

application you can actually use um uh liquidity pools that that swishy swap provides to to make sure that you have the liquidity you need in your applications we also have smaller projects that are Zeta chain um Native right they're they're built from the grounds up to Leverage The Omni chain functionality and um they also provide an exceptional experience for for users uh for example Eddie Finance to swap uh assets like BTC into any other uh supported asset which is pretty cool and we really encourage developers to to build applications from the grounds up

that take advantage of of this um unique functionality that we offer uh we're also seeing players like curve Finance deploying their application and um uh we actually have had curve one of the as one of the example of how easy it is to just take an existing application deploy it on Zeta chain with no uh changes required but the official curve app is is coming to Zeta chain uh what can you build on Zeta chain well first of all you can of course build anything you can build on evm but that's that's a subset right what you really can do is create applications that um use native assets

like uh BTC e uh usdc usdt uh from connected chains as collateral in defi applications uh you can build intense Centric apps you can AG uh build super aggregators because your app is not limited to one chain so you can uh aggregate liquidity and and um data effect L tokens from all the chains and connect U kind of super connected uh applications um of course it it it's going to be very useful for gaming applications that want to accept payments for example in different tokens

right they don't have to worry about bridges uh it all goes through a single decentralized interface which allows them to really e um easily build kind of apps that that are uh that accept any token um so yeah the the opportunities really are are are endless here and as developers you get full support from all the applications you might need from uh from dexes to uh price oracles to um uh account abstraction Solutions wallet as a service you name it um

so the not only does the environment very familiar to to you as a developer right it's the same evm same language um you also get the services that you are used to on other chains so the transition uh becomes very seamless so um Zeta chains Community has been growing uh rapidly from um from even before the testet was launched and uh um we've got millions of users and they're very active uh we have communities in in most languages in most countries with an ambassador system so um if you go to Z chains Discord you'll

find people from all over the world building and using applications um we have an official interface that kind of showcases uh the best platform can offer called Data Hub you can check it out uh of course it's live on mainnet um and uh we uh we also encourage third party applications obviously to to uh to build interfaces that Leverage The Unique Omni chain aspects of Zeta chain so um yeah um last thing I want to mention is is that we truly believe that the multi-chain future is is

is basically now it's not the future anymore it's present as developers you really need to think about um all these blockchains all the users all these um uh apps deployed on different chains and like how do you prepare your application for for the next generation of users and next generation of chains with Zeta chain it becomes so much easier because one of the one of the things that I didn't mention is when you deploy your dap on Zeta chain you automatically get connected to all the supported chains and that's cool but what's even cooler is that your application automatically is compatible with the chains that will

be added later on because the API is the same so that's something that you can't really get with uh any other interoperability solution where you deploy a contract and not only is it uh kind of backwards compatible it's compatible with the features that will be added to the platform later and the chains that will be added later uh so this is super exciting and I think um it doesn't matter uh on on which level of integration you're ready to to uh to which level integration you're ready you can deploy your app as is or you can build it uh from the grounds up or you can take your existing app augment it

with uh an omni chain kind of contract wrapper and um provide the best experience for uh for the users we have a grants program so for all you Builders uh out there um we have a system to incentivize Builders and ensure that they have um all they need to to build on chain applications um thank you