Difference between revisions of "Extend Bitcoin, Ethereum and other blockchains"
m |
m |
||
Line 19: | Line 19: | ||
'''This means the Bitcoin community can now finally create what amounts to native Bitcoin DeFi using smart contracts hosted on the Internet Computer. These can even process HTTP requests, allowing DeFi user experiences to be fully decentralized too, and can provide alternative means to sign Bitcoin transactions, such as [[Internet Identity]].''' | '''This means the Bitcoin community can now finally create what amounts to native Bitcoin DeFi using smart contracts hosted on the Internet Computer. These can even process HTTP requests, allowing DeFi user experiences to be fully decentralized too, and can provide alternative means to sign Bitcoin transactions, such as [[Internet Identity]].''' | ||
− | Moreover, Internet Computer smart contracts can enable services from other blockchain ecosystems to ''leverage native bitcoin | + | Moreover, Internet Computer smart contracts can enable services from other blockchain ecosystems to ''leverage native bitcoin'' too, within applications such as on-chain DEXs (decentralized exchanges), decentralized fundraising schemes, Web3 services, and more. |
[https://internetcomputer.org/bitcoin-integration Explore further, and see how to get started writing code that processes bitcoin using Internet Computer smart contracts]. | [https://internetcomputer.org/bitcoin-integration Explore further, and see how to get started writing code that processes bitcoin using Internet Computer smart contracts]. |
Revision as of 20:50, 23 August 2022
The Internet Computer blockchain is powered by novel cryptography, which forms the basis of new capabilities, such as web serving, unlimited scaling, incredible speed, and orders of magnitude efficiency gains. This same cryptography also makes these properties available within other blockchain ecosystems...
Essentially, the Internet Computer network can sign arbitrary transactions for execution on other blockchains. It does this using the unique chain key cryptography framework that powers its decentralized protocols. For example, it can sign transactions to transfer cryptocurrency, or invoke smart contract code, on other blockchains.
This means you can extend other ecosystems with Internet Computer capabilities, or use its smart contracts as glue to construct fully decentralized Web3 and DeFi services that span multiple blockchains.
Let's look at some examples...
Extending Bitcoin or working with bitcoin
Bitcoin was the first blockchain, which started it all. Currently the network hosts vast liquidity (monetary value) in the form of bitcoin. However, the Bitcoin network is simple by design and it cannot host true smart contracts.
As a consequence, Bitcoin does not have a native DeFi ecosystem of its own. Instead, Bitcoin's liquidity is "ported" to other blockchains that do have smart contract capabilities using insecure centralized blockchain bridges, which take custody of bitcoin for users, and create equivalent amounts of wrapped bitcoin on a destination blockchain, such as Ethereum.
The use of wrapped bitcoin on Ethereum is not the same as native Bitcoin DeFi that operates directly on real bitcoin. In practice, these bridges are cumbersome to use, can act as censors, or can get shutdown or hacked causing the loss of bitcoin backing the wrapped bitcoin, completely breaking services using the wrapped bitcoin, and potentially causing rippling systemic black swan events.
On the Internet Computer, smart contracts can process bitcoins directly on the Bitcoin ledger, without need for any kind of intermediary. They can create new bitcoin addresses, and send and receive bitcoin — as though they are in fact running on the Bitcoin network itself.
This means the Bitcoin community can now finally create what amounts to native Bitcoin DeFi using smart contracts hosted on the Internet Computer. These can even process HTTP requests, allowing DeFi user experiences to be fully decentralized too, and can provide alternative means to sign Bitcoin transactions, such as Internet Identity.
Moreover, Internet Computer smart contracts can enable services from other blockchain ecosystems to leverage native bitcoin too, within applications such as on-chain DEXs (decentralized exchanges), decentralized fundraising schemes, Web3 services, and more.
Extending Ethereum or working with its contracts
Ethereum was the second major blockchain to appear after Bitcoin. It introduced smart contract functionality, which made it possible to upload "blockchain code" that would thereafter process and store data on the blockchain itself. While on Bitcoin, very basic script is attached to bitcoin tokens, which disappears when they move, on Ethereum, fully Turing complete smart contract codes resides at fixed addresses, and tokens move between the smart contracts — making the blockchain code-centric.
When considering the capability of a blockchain to host software, a member of the Ethereum community mooted the concept of a World Computer in 2014, but in practice Ethereum's technological underpinnings roots the network in the world of traditional blockchain, which situation will continue after the "merge".
Meanwhile, from 2015 onwards, the Dfinity project pursued the World Computer concept. Its aim was to leverage novel cryptography to create a blockchain that could one day replace traditional IT, such as cloud computing services, databases and web servers. This resulted in the launch of the Internet Computer blockchain May 2021 after many years R&D.
Ethereum launched soon after the Dfinity project began technical work, and in the following years built an incredible community and ecosystem, and its DeFi services are likely to continue providing the worlds preeminent public finance rails. However, increasingly, its ecosystem is being held back and harmed by a lack of decentralization.
For example, today, although Ethereum smart contracts can be used to create a DeFi service, they are not capable of serving interactive web experiences that enable end users to interact with them. Typically, cloud computing infrastructure is used to provide the user experience, and in Web3 services especially, also to perform the vast majority of data processing and storage. This exposes them to all manner of vulnerabilities, including being censored by the cloud operator, getting hacked, and making the developers operating the cloud account legally liable for the service.
It has become very clear that DeFi and Web3 services built using Ethereum need to remove their centralized components and go fully "on-chain".
Thankfully, the Internet Computer provides a solution. For example, a front-end user experience built using Internet Computer smart contracts, could respond to end user inputs by initiating arbitrary transactions on Ethereum, and could display Ethereum data and Ethereum transaction results to them.
Here's how a DEX (decentralized exchange) running on Ethereum could be improved:
- The interactive web experience, through which users place orders and manage their accounts, could be created using smart contracts on the Internet Computer, which can process HTTP requests.
- Expensive data processing and storage could be offloaded to Internet Computer smart contracts. For example, the Internet Computer could be used to manage user profile information, and log all their trades — it would even be possible to use them to create a continuous double auction order book.
- Internet Identity could be leveraged. This is an anonymizing blockchain authentication framework the Internet Computer provides to allow end users to securely create sessions with Web3 services using special hardware, such as the fingerprint sensor on their laptop, or Face ID on their phone. For example, an Internet Computer front-end could map Internet Identity anchors to Ethereum public keys, then allowing end users to authenticate themselves to the DeFi service using their fingerprint sensor (read a friendly Internet Identity introduction).
Ethereum integration, and coming integrations with other blockchains, works slightly differently to Bitcoin, which involves UTXOs. Internet Computer smart contracts can create arbitrary Ethereum transactions, then query the results using HTTPS outcalls.
NOTE: At the time of writing, the full end-to-end framework for direct interaction with Ethereum is still in development, although individual Internet Computer technology features can be combined. Keep an eye on the Threshold ECDSA release stream for news.