Counterparty is a platform for user-created assets on Bitcoin. It’s a protocol, set of specifications, and an API. Taken together, it allows users to create and trade assets on top of Bitcoin’s blockchain. In this way, Counterparty is similar to platforms like Waves or Ethereum. Of course, the difference is Counterparty integrates directly with Bitcoin. Therefore, it comes will all the security and reliability (and issues) that are part of the Bitcoin blockchain. This is a fairly old project. In fact, it pre-dates Ethereum with its launch in 2014. It was the original asset creation mechanism. As you’re probably aware, Counterparty has faded from prominence over the years. This is largely due to the rise of the ERC-20 token standard on Ethereum. While we’ve become used to calling blockchain assets, tokens, it doesn’t necessarily have to be the case. An asset can represent anything that has value or is rare. As a result, Counterparty steers clear of the word “token” in their marketing and documentation. They’re much more interested in digital assets of all kinds, not just currencies, securities, and utility tokens. Digital assets can be a digital marker of a physical object, an easy way to manage shares in your company, or reputation karma for a website. These are all types of assets you could create on Counterparty (or Ethereum or Waves, for that matter). Counterparty creates the set of rules, requirements, integrations, etc that are necessary for assets on the Bitcoin blockchain. It’s the infrastructure behind user-created assets in much the same way that the ERC-20 protocol sets up guidelines and standards for asset creation on Ethereum. One useful function of digital assets is as a marker of ownership or voting rights. Imagine a scenario where you issued a digital asset to each of your company’s board members in proportion to the amount of voting power held. Or if you gave your stockholders a digital asset as a marker of the amount of stock they owned. If you issued your stock asset, you could then use Counterparty’s distribution function to pay out dividends in BTC based on the amount of digital stock asset each person owned. Counterparty addresses many of the same issues as Ethereum or Waves, but on the Bitcoin blockchain. While that does come with some advantages, ultimately it is not as strong a platform for development as its competitors. It’s best suited for applications that need to interface with Bitcoin or assets that have a specific connection to the Bitcoin ecosystem.
Dai is a stablecoin. It is an Ethereum ERC20 token that is pegged to $1 USD — every Dai is worth $1, and will always be worth $1, regardless of how much Dai is in existence. There is no centralized authority like Tether that backs its value, and no traditional bank that backs each Dai with a real US dollar. There is nothing that can be shut down, and no centralized authority that needs to be trusted. Dai lives entirely within the Ethereum blockchain using smart contracts. *Features of Dai: 1. Dai is always worth $1 USD each 2. It can be freely traded like any other ERC20 token 3. Anyone with an Ethereum wallet can own, accept, and transfer it 4. It can be exchanged without any middleman 5. No individual person or company has control over it 6. No government or authority can shut it down *How Dai Works? Dai is a masterpiece of game theory that carefully balances economic incentives in the pursuit of one goal — a token that is continuously approaching the value of $1 USD. When Dai is worth above $1, mechanisms work to decrease the price. When Dai is worth below $1, mechanisms work to increase the price. The rational actors that take part in these mechanisms do so because they earn money anytime Dai is not perfectly worth $1. This is why Dai is always floating slightly above or below $1 — it is an endless wave function bouncing infinitely close to $1, but never quite achieving it. The farther Dai goes from $1, the more incentive there is to fix it. This is the magic of Dai. *How is Dai Created? Dai is simply a loan against Ethereum. By using the MakerDAO dApp, advanced users can take loans out in Dai against their ETH holdings. First, ETH is turned into “wrapped ETH” (WETH), which is simply an ERC20 wrapping around ETH. This “tokenizes” ETH so it can be used like any other ERC20 token. Next, WETH is turned into “pooled ETH” (PETH), which means it joins a large pool of Ethereum that is the collateral for all Dai created. Once you have PETH, you can create a “collateralized debt position” (CDP), which locks up your PETH and allows you to draw Dai against your collateral, which is PETH. As you draw out Dai, the ratio of debt in the CDP increases. There is a debt limit that sets a maximum amount of Dai you can draw against your CDP. Once you have Dai, you can spend or trade it freely like any other ERC20 token. *There are several important reasons why you would create Dai, despite the hassle: 1. You need a loan, and have an asset (ETH) to use as collateral for your loan 2. You believe ETH is going up in value. You can use your CDP to buy ETH on margin — you lock up your ETH in a CDP, draw Dai against it, use the Dai to buy more ETH on an exchange, and then use that ETH to further increase the size of your CDP. This can be accomplished without any third-party or centralized authority allowing you to do so — margin trading can be accomplished entirely on the blockchain. 3. The demand for Dai has driven the price above $1 USD. When this occurs, you can create Dai then immediately sell it on an exchange for greater than $1 USD. This is essentially free money, and is one of the mechanisms the Maker system uses to keep Dai pegged to $1 USD. Dai being worth over $1 USD encourages more Dai to be created. These three reasons are enough to ensure that Dai is continually created.