first draft of chapter 1
This commit is contained in:
parent
260ddb3358
commit
e51fc5a4a8
|
@ -6,13 +6,13 @@
|
|||
|
||||
# Overview
|
||||
|
||||
- [xDapps](./dapps/xdappOverview.md)
|
||||
- [xDapps](./dapps/0_xdappOverview.md)
|
||||
|
||||
- [De-fi Ecosystem Basics](./dapps/defiBasics.md)
|
||||
- [Cross-Chain Interoperability](./dapps/crossChainInteroperability.md)
|
||||
- [xData & xAssets](./dapps/xdataxassets.md)
|
||||
- [What is an xDapp?](./dapps/whatIsanXdapp.md)
|
||||
- [Advantages](./dapps/advantages.ms)
|
||||
- [Dapp Ecosystem Basics](./dapps/1_defiBasics.md)
|
||||
- [Cross-Chain Interoperability](./dapps/2_crossChainInteroperability.md)
|
||||
- [xData & xAssets](./dapps/3_xdataxassets.md)
|
||||
- [What is an xDapp?](./dapps/4_whatIsanXdapp.md)
|
||||
- [Advantages of xDapps](./dapps/5_advantages.md)
|
||||
|
||||
- [Wormhole](./wormhole/wormholeOverview.md)
|
||||
- [What is Wormhole?](./wormhole/whatIsWormhole.md)
|
||||
|
@ -21,7 +21,7 @@
|
|||
- [Core Layer Contracts](./wormhole/coreLayerContracts.md)
|
||||
- [VAA: Verifiable Action Approval](./wormhole/vaa.md)
|
||||
- [Relayers](./wormhole/relayers.md)
|
||||
- [Portal Token Bridge & xAssets](./wormhole/portalTokenBridge.md)
|
||||
- [Portal xAsset Bridge](./wormhole/portalTokenBridge.md)
|
||||
- [Wormchain](./wormhole/wormchain.md)
|
||||
|
||||
---
|
||||
|
|
|
@ -4,7 +4,7 @@ The fundamental starting point for any decentralized computing discussion is, of
|
|||
|
||||
Since the launch of Bitcoin in 2009, the cryptocurrency and decentralized computing ecosystem has evolved and expanded year-over-year, to the point where it now includes hundreds of blockchains, often also referred to as **Layer 1s**.
|
||||
|
||||
Somewhat newer, however, is the concept of a **Decentralized Application** or **Dapp**, which only came into being in 2015 with the launch of Ethereum and 'smart contracts'. Prior to the introduction of smart contracts, blockchain transactions were limited in their capacities, and could more-or-less only transfer funds from point A to B. Smart contracts allow developers to perform arbitrary on-chain computation as part of a blockchain transaction. This feature opened the door for blockchain technology to become a global general-purpose computing platform, rather than just a simple ledger of money transfers.
|
||||
Somewhat newer, however, is the concept of a **Decentralized Application** or **Dapp**, which only came into being in 2015 with the launch of Ethereum and 'smart contracts'. Prior to the introduction of smart contracts, blockchain transactions were limited in their capacities, and could more-or-less only transfer funds from point A to B. Smart contracts allow developers to perform arbitrary on-chain computation as part of a blockchain transaction. This feature opened the door for blockchain technology to become a global general-purpose computing platform, rather than just a simple history of token transfers.
|
||||
|
||||
In the introvening years, a rich ecosystem of Dapps has cropped up across the myriad of smart-contract-enabled blockchains. These Dapps provide a wide array of services, and in some cases have created entirely new products. Dapps fall into categories such as:
|
||||
|
||||
|
@ -13,6 +13,7 @@ In the introvening years, a rich ecosystem of Dapps has cropped up across the my
|
|||
- Borrow-Lend Platforms
|
||||
- Decentralized Games
|
||||
- NFT Protocols
|
||||
- Metaverse Platforms
|
||||
- and more
|
||||
|
||||
However, today's Dapps are not without their limitations, and many of these limitations are tied to the underlying blockchains themselves.
|
||||
|
@ -21,4 +22,4 @@ Two key limitations of baseline blockchain technology is that it has no access t
|
|||
|
||||
This is obviously not a desireable state of the world, and blockchain developers are now aiming to solve these interoperability problems in order to create a better, more unified ecosystem where the gory details of each blockchain are abstracted away. In this new cross-chain ecosystem, people stop being "Ethereum" or "Solana" users, and simply become Web3 users.
|
||||
|
||||
In the next section, we'll discuss the challenges associated with cross-chain interoperability, and introduce a few key concepts from Wormhole which act as data primitives for this new and growing cross-chain ecosystem.
|
||||
In the next section, we'll discuss the history and challenges of cross-chain interoperability, as well as introduce the role Wormhole plays in the future of this space.
|
|
@ -1,6 +1,6 @@
|
|||
# Cross-Chain Interoperability
|
||||
|
||||
The fact that each cryptocurrency is locked to its own chain has been a limitation of blockchain technology since day one. It's not 'real' Bitcoin unless it's on the Bitcoin ledger, and it's not 'your' Bitcoin unless you have the private keys to the wallet.
|
||||
The fact that each cryptocurrency is locked to its own chain has been a limitation of blockchains since day one. It's not 'real' Bitcoin unless it's on the Bitcoin ledger, and it's not 'your' Bitcoin unless you have the private keys to the wallet.
|
||||
|
||||
This restriction is fine if you're content with just sending Bitcoin around, but it becomes a major obstacle as soon you want to exchange Bitcoin for any other currency.
|
||||
|
||||
|
@ -11,21 +11,21 @@ Centralized Exchanges play an important role in the cryptocurrency space, but th
|
|||
1. They're centralized, which directly defeats the purpose of creating a decentralized platform in the first place.
|
||||
2. They deal only with tokens. As blockchains move away from being a simple history of token transfers, and towards being general purpose computing platforms, interoperability will involve much more complex data structures than 'tokens', and much more sophisticated operations than 'transfers'.
|
||||
|
||||
To solve the centralization problems associated with CEXs, the DEX was born. A DEX operates inside a smart contract runtime, and therefore can be as decentralized as the blockchain it runs on. Unfortunately, a DEX is only able to utilize the tokens which exist on its native blockchain, so is order to obtain a token which is not native to the blockchain, the DEX must be used in combination with a **bridge**.
|
||||
To solve the centralization problems associated with CEXs, the DEX was born. A DEX operates inside a smart contract runtime, and therefore can be as decentralized as the blockchain it runs on. Unfortunately, a DEX is only able to utilize the tokens which exist on its native blockchain, so in order to obtain a token which is not native to the blockchain, the DEX must be used in combination with a **bridge**.
|
||||
|
||||
**Bridges** are a complex beast which will be discussed in depth later. For now, we can simply categorize bridges as applications which 'lock' assets on one chain in exchange for **wrapped assets** on another chain. The wrapped assets can, in turn, be exchanged for the original 'backing' asset.
|
||||
|
||||
Here are some other key things to understand about bridges:
|
||||
|
||||
- Bridges are currently the only way to custody a token on a chain other than its 'native' chain. If you're holding ETH on some chain other than Ethereum, it is, _by definition_, a bridge's wrapped token.
|
||||
- Bridges are currently the only way to custody a token on a chain other than its 'native' chain. If you're holding ETH on some chain other than Ethereum, it is, _by definition_, a wrapped token.
|
||||
- Generally, wrapped tokens become 'double wrap' when they traverse multiple bridges or blockchains. This creates a lengthy unwrapping process to get back to the original token.
|
||||
- Bridges are all mutually incompatible with eachother.
|
||||
- Bridges are capable of being decentralized in theory, but are often quite centralized in practice.
|
||||
|
||||
This brief history explains how we arrived at where we are today. CEXs are a simple solution to siloed blockchains, DEXs are a simple response to CEXs, and then bridges become necessary infrastructure. Each solution is an ad-hoc patch to the previous problem, and the current landscape of fractured liquidity, double-wrapped tokens, isolated userbases, and wallet incompatibilities is a result of this.
|
||||
This brief history explains how we arrived at where we are today. CEXs are a simple solution to siloed blockchains, DEXs are a simple response to CEXs, and once you have DEXs, bridges become necessary infrastructure. Each solution in this timeline is an ad-hoc patch to the previous problem, and the current landscape of fractured liquidity, double-wrapped tokens, isolated userbases, and wallet incompatibilities is a result of this.
|
||||
|
||||
The way to address these issues is not to slap another bandage on top, but rather to go back to the drawing board, and design new primatives and core infrastructure which will allow the next generation of decentralized applications to never suffer from these problems in the first place.
|
||||
|
||||
Wormhole is an attempt to do just this. It looks at the budding decentralized computing ecosystem and proposes a new way of developing applications which leverages the strengths of each blockchain while mitigating the problems which have thusfar plagued the ecosystem.
|
||||
|
||||
The first step in this endeavor is to dethrone the 'token' as the fundamental atomic unit of blockchains, and instead to think of these platforms as global computers which operate on data. This new atomic unit can be labeled as **xData**.
|
||||
The first step in this endeavor is to dethrone the 'token' as the fundamental atomic unit of blockchains, and instead to think of these platforms as global computers which operate on data. This new atomic unit is called **xData**, and we'll talk more about it in the next section.
|
|
@ -0,0 +1,13 @@
|
|||
# xData and xAssets
|
||||
|
||||
One of the biggest items on the wishlist of features for blockchains is the ability to detach tokens from their native chains. It is a tremendous limitation that ETH only exists on Ethereum, MATIC only exists on Polygon, and SOL only exists on Solana. It would be much more convenient if those assets existed independently of their blockchains, and were able to move freely.
|
||||
|
||||
This is the concept of an **xAsset**, and it should be thought of as the next-generation _wrapped token_. The key feature of an xAsset is that it is chain and path agnostic, and thus retains fungibility regardless of where it travels. xAssets can move fluidly around the blockchain ecosystem without ever becoming double-wrapped. In a sense, xAssets are abstracted to a layer _outside_ of the blockchain ecosystem, and are then able to transact on whatever blockchain is most sensible.
|
||||
|
||||
Once you've envisioned this next-generation asset, you might think it's an excellent atomic unit for solving interoperability. However, this idea is just one step short of the real solution. Blockchains process arbitrary data nowadays, and some of that data just happens to represent assets. The full solution then - is to invent **xData**.
|
||||
|
||||
**xData** is akin to an xAsset, in that it exists in its own layer independent of any blockchain, which is then accessible by _all_ blockchains. The only difference is that it represents arbitrary data, rather than token information.
|
||||
|
||||
Cross-chain interoperability then reduces to the problem of creating and consuming xData. Once blockchains are able to read and write into this xData layer, xAssets are simply a use-case, and come as almost a natural consequence. If you have the ability to read and write data into a shared, global reservior, you can design any application you can imagine.
|
||||
|
||||
In chapter 2 we'll delve deeper into how Wormhole implements this xData layer (also referred to as the 'Core' layer of Wormhole), but for now let's move on to how xDapps can be created on top of it.
|
|
@ -0,0 +1,18 @@
|
|||
cross chain applications, but more crucially, applications which are built for a cross-chain world. Leverage the strengths of each blockchain.
|
||||
Utilize xData to design powerful decentralized protocols which view individual blockchains as implementation details. xAssets are divorcible from the app and can move tokens across the ecosystem and custody on any chain.
|
||||
|
||||
# What is an xDapp
|
||||
|
||||
The term **xDapp** is short for "Cross-Chain Decentralized Application". At first glance, this might give the impression that xDapps are simply Dapps which meddle a bit in doing cross-chain things. However, once you get into the business of building decentralized products which are designed to operate across a variety of blockchains and runtimes, you begin to see that these applications are architected in a fundamentally different fashion than traditional Dapps.
|
||||
|
||||
The Wormhole Core Layer implements xData, which acts as a shared repository of data across the entire Wormhole Ecosystem. xDapps have the capacity to perform all the operations of traditional Dapps, but they also utilize this xData. This xData allows xDapp developers to build from a top-down, message-passing approach, rather than the bottom-up world of Dapp developers.
|
||||
|
||||
Something we'll dive deeper into during the xDapp Architecture chapter is the philosophy of **Protocol-First Design**. Protocol First Design is an approach to building decentralized applications whereby the first order of business is to lay out your application into a series of data structures, APIs, and message payloads. Once you've laid out your application into a high-level protocol, the protocol acts as an agreement to which all of your components must adhere. From there, the smart contracts underlying this protocol can be considered an implementation detail.
|
||||
|
||||
If you're familiar at all with web2 development, you'll immediately notice that this philosophy is quite analogous to microservice architecture. This is no coincidence, as similar problems should expect to be solved by similar solutions, and the Wormhole Core Layer is quite analogous to the OSI Network Model in many ways.
|
||||
|
||||
Thus, a more fitting depiction of xDapps might be to see them as **Distributed Decentralized Applications**, which have multiple, specialized components working in unison to implement a protocol which delivers a smooth, unified user experience across a variety of layer 1 ecosystems.
|
||||
|
||||
---
|
||||
|
||||
So far we've taken a really high-level and abstract approach to explaining what xDapps are. In the next section we'll get back to real world, and summarize the concrete advantages which xDapps built on Wormhole have over traditional apps today.
|
|
@ -0,0 +1,17 @@
|
|||
Let's wrap up our discussion of xDapps by highlighting the features they enable, and how they move the ball forward in blockchain technologies.
|
||||
|
||||
- **Expanded User Base** - rather than being limited to the users of one blockchain, any user on any blockchain in the supported ecosystem can interact with an xDapp.
|
||||
|
||||
- **Unified Liquidity** - Liquidity fragmentation is a major problem in the current ecosystem. xAssets, unlike traditional tokens, can be pooled and moved anywhere necessary.
|
||||
|
||||
- **Decentralization** - Cross-chain solutions today usually involve highly centralized exchanges or bridges. Wormhole has been designed to be decentralized from day one, and eventually totally trustless.
|
||||
|
||||
- **Increased Performance** - xDapps are able to utilize the strengths of each blockchain. Expensive computations can be offloaded onto high-performance platforms. Final settlement can be on the preferred chain of the user. Data can be stored wherever is cheapest.
|
||||
|
||||
- **Broader Market Reach** - Because xAssets move freely through the ecosystem, they can be listed on a variety of exchanges, and custodied on any blockchain.
|
||||
|
||||
- **Increased Extensibility and Composeability** - xDapps expand upon the composeability and openness of smart contracts. xDapps can utilize anything across the ecosystem, including other xDapps.
|
||||
|
||||
- **Future Proofing** - As new environments and protocols join the decentralized ecosystem, the connected nature of the Wormhole ecosystem allows existing protocols to expand and support them.
|
||||
|
||||
Now that you have an understanding of what xDapps are and the advantages they offer, let's move on to the next chapter, where we will delve into the nitty gritty of how Wormhole works, and how it enables the creation of these next-generation protocols.
|
|
@ -1,6 +0,0 @@
|
|||
unified liquidity
|
||||
larger user base
|
||||
increased performance
|
||||
lower transaction fees
|
||||
future proofing
|
||||
retains decentralization
|
|
@ -1 +0,0 @@
|
|||
# Advantages
|
|
@ -1,9 +0,0 @@
|
|||
# What is an xDapp
|
||||
|
||||
xDapps are _cross chain decentralized applications_. In short, unlike traditional blockchain programs which are tied to a specific chain, xDapps take advantage of _bridges_ like Wormhole to be able to interact with applications from other networks.
|
||||
|
||||
extension of Dapps.
|
||||
Key component is that they support multiple chains.
|
||||
Usually means deploying contracts to each chain,
|
||||
Can provide unique user experiences which aren't accomplishable via traditional dapps
|
||||
Oracles, gaming, de-fi, etc leverage the strengths of blockchains
|
|
@ -1,3 +0,0 @@
|
|||
xData is characterized by its ability to be accessed across the entire ecosystem
|
||||
Assets are a special form of data
|
||||
Key aspects of xData and thus xAssets are that they are accessible across the entire ecosystem. xAssets are meant to be fungible and path-independent. Abstracting away what chain is custodying or processing these assets.
|
Loading…
Reference in New Issue