Reader small image

You're reading from  Security Tokens and Stablecoins Quick Start Guide

Product typeBook
Published inApr 2019
Reading LevelBeginner
PublisherPackt
ISBN-139781838551063
Edition1st Edition
Languages
Concepts
Right arrow
Authors (3):
Weimin Sun
Weimin Sun
author image
Weimin Sun

Weimin Sun has 20 years' of experience working in the financial industry. He has worked for top-tier investment and commercial banks such as J.P. Morgan, Bank of America, Citibank, and Morgan Stanley, where he also managed large teams for developing IT applications. Weimin has also held corporate titles such as executive director and senior VP in some of these firms. Weimin has in-depth knowledge of the blockchain technology, data science, data architecture, data modeling, and big data platforms. He holds Ph.D, M.B.A and M.Sc degrees. He has co-authored Blockchain Quick Start Guide and published several statistical journal papers.
Read more about Weimin Sun

Xun (Brian) Wu
Xun (Brian) Wu
author image
Xun (Brian) Wu

Xun (Brian) Wu is a senior blockchain architect and consultant. With over 20 years of hands-on experience across various technologies, including Blockchain, big data, cloud, AI, systems, and infrastructure, Brian has worked on more than 50 projects in his career. He has authored nine books, which have been published by O'Reilly, Packt, and Apress, focusing on popular fields within the Blockchain industry. The titles of his books include: Learn Ethereum (First Edition), Learn Ethereum (Second Edition), Blockchain for Teens, Hands-On Smart Contract Development with Hyperledger Fabric V2, Hyperledger Cookbook, Blockchain Quick Start Guide, Security Tokens and Stablecoins Quick Start Guide, Blockchain by Example, and Seven NoSQL Databases in a Week.
Read more about Xun (Brian) Wu

Angela Kwok
Angela Kwok
author image
Angela Kwok

Angela Kwok, is a lawyer, specializing in high-tech and blockchain start-ups and venture capital financing. She also focuses on general corporate and commercial matters, fund formation, cross-border and domestic investments, mergers and acquisitions, and related tax matters in the TMT industry. She has represented clients in blockchain-related cases.
Read more about Angela Kwok

View More author details
Right arrow

Preface

During 2017 and 2018, the market values of the majority cryptocurrencies went through some eye-popping roller-coasters. In the span of three months, the price of Bitcoin went up from $6,336.94 (USD) on November 12, 2017, to its highest price of $19,758.2 on December 17, 2017, before dropping to $7,389.79 on February 5, 2018. As cryptocurrency prices moved up, funding for blockchain projects poured in. Most of them were in the form of initial coin offering (ICOs). One example is in May 2017, when a web browser called Brave completed an ICO. It raised $36 million in USD within the first 25 seconds of the ICO. The dramatic declining in cryptocurrency prices eventually led to the cooling down of the ICO madness. Per statistics from ICODATA.IO, during the first quarter of 2018, a total of $3,874 million USD were raised via ICOs. In contrast, during the first quarter of 2019, only $100 mm USD were raised through ICOs.

A fundamental reason for the high volatility in cryptocurrency prices and the ICO bubble bursting is the lack of control and regulations on ICOs. This led to a high failure rate of ICO-funded blockchain projects. Fewer than half of ICOs have survived over four months after their offerings, and nearly half (around 46%) of ICOs taking place in 2017 had failed by February 2018.

Facing the ICO issues, the blockchain community has started soul-searching for an alternative solution. The mainstream view of the blockchain community changed from focusing exclusively on the initial ICO model of raising funds, to funding models involving other parties (for example, governments, investment bankers, and lawyers). A leading solution is the security token offering (STO).

To help our audience gain an overview on the context of STOs quickly, in this book, we explain the basic concepts behind the blockchain technology, traditional funding approaches for startups, and the basics of STOs. We made comparisons between ICOs and STOs to explore the differences between them and the reasons that STOs can potentially provide a viable solution to resolve some of the ICO drawbacks. To help the reader understand the implications of STOs better, we dedicate one chapter (Chapter 3, Monetize Digital Tokens Under U.S. Securities Laws) to covering some of applicable laws on STOs. For IT practitioners, we show a way to implement an end-to-end Dapp for the issuance of a security token. In fairness, STOs are not necessarily perfect neither. At the end of Chapter 2, STO – Security Token Offering, we point out some challenges faced by STOs.

Stablecoin is a solution that the blockchain community came up with to address the high volatility issue in cryptocurrency prices. In this book, we first cover the basics on money. We then proceed to illustrations on different types of money. This lays the foundation for explaining the concepts on stablecoin. In Chapter 7, Stablecoin Smart Contracts, we give a working example on how to implement stablecoin issuance.

Who this book is for

This book is ideal for blockchain beginners and business user developers who want to quickly master popular Security Token Offerings and stablecoins. Readers will learn how to develop blockchain/digital cryptos, guided by U.S. securities laws and utilizing some real use cases. Prior exposure to an Object-Oriented Programming language such as JavaScript would be an advantage, but is not mandatory.

What this book covers

Chapter 1, Introduction to Blockchain, gives an overview of blockchain technology, along with the key concepts involved, including the distributed ledger, transactions, blocks, proof of work, mining, and consensus. It covers bitcoin, the mother of blockchain technology, and Ethereum, which developed out of bitcoin, in detail.

Chapter 2, STO – Security Token Offering, talks about traditional fundraising methods such as angel funds, venture capital (VC) funds, private equity funds, and initial public offerings (IPOs). It then covers the blockchain project's specific funding method, ICO. Drawbacks of ICOs have been discussed as well. STO has been introduced as a promising alternative to ICO. The chapter compares STOs and ICOs. It ends by pointing out some of the challenges related to STOs.

Chapter 3, Monetizing Digital Tokens Under U.S. Security Laws, answers the question, "What is an STO under U.S. securities law?" It gives an overview of applicable U.S. securities laws, talking about the developments in U.S. securities laws related to blockchain and cryptocurrency. It then explains the process of STO launches, along with some legal considerations. The chapter mainly focus on U.S. securities laws.

Chapter 4, Stablecoin, talks about the definition of money, along with its basics. It then proceeds to a discussion on the concepts of cryptocurrency and stablecoins. It explains the rationale behind the implementation of stablecoins and discusses the types of stablecoins on offer. At the end, the chapter covers the challenges faced by stablecoins.

Chapter 5, Security Token Smart Contracts, covers popular security token standards such as ERC-1400/ERC-1410, R-Token, DS-Token, SRC-20, ST-20, S3, ERC-884, ERC-1450, and ERC-1404. The chapter helps to enrich the reader's knowledge of security token protocols. In addition, it talks about solidity programming fundamentals and explains how to write a smart contract.

Chapter 6, Building a Security Token Dapp, demonstrates how to develop an end-to-end product, from smart contracts to Dapp, to issuing an ERC-1404 security token. The chapter covers some basic concepts only. In a real application, the security token will be far more complex. Many security tokens run on an elaborate ecosystem and need to comply with the SEC's regulation on securities trading. For example, the security token smart contract needs to incorporate real-world legal contracts.

Chapter 7, Stablecoin Smart Contracts, reviews the basic features of popular stablecoins and covers three types of stablecoins, including fiat-collateralized stablecoins, crypto-collateralized stablecoins, and non-collateralized stablecoins. Then, it looks into USDT, DAI, TUSD, USDC, GUSD, and PAX stablecoin smart contract design, exploring the functions defined in these contracts. The chapter explains how each stablecoin type maintains the 1:1 price pegging through mint, burn, and other controllable functions.

To get the most out of this book

We've focused on organizing the book to fit business and IT beginners in blockchain technology. The chapters are arranged to ensure that they can be followed easily and flow naturally.

Business users can skip the chapters with detailed descriptions on how to develop STO and stablecoin applications and, instead, focus on the chapters with general descriptions of the STO and stablecoin concepts.

IT professionals should read all chapters to gain insights on the business and regulation context for STO and stablecoins, from which a reader will gain basic knowledge on how to build STO and stablecoin applications. It is recommended that IT users download the code and make modifications to adopt the code to their own use cases or exercises.

Chapter 3, Monetize Digital Tokens Under U.S. Security Laws, and other chapters of the book are for general knowledge of the U.S. securities laws and other laws, and shall not be considered as providing legal advice, opinions, or recommendations. For any legal issues concerning the STOs, please consult an attorney specialized in this area.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packt.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packt.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Security-Tokens-and-Stablecoins-Quick-Start-Guide. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Update the truffle.js file configuration."

A block of code is set as follows:

module.exports = { 
  networks: { 
    development: { 
      host: "127.0.0.1", 
      port: 8545, 

Any command-line input or output is written as follows:

truffle compile

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Copy the second account from the account list, and click the Copy button."

Warnings or important notes appear like this.
Tips and tricks appear like this.

Get in touch

Feedback from our readers is always welcome.

General feedback: If you have questions about any aspect of this book, mention the book title in the subject of your message and email us at customercare@packtpub.com.

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packt.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at copyright@packt.com with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packt.com.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Security Tokens and Stablecoins Quick Start Guide
Published in: Apr 2019Publisher: PacktISBN-13: 9781838551063
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (3)

author image
Weimin Sun

Weimin Sun has 20 years' of experience working in the financial industry. He has worked for top-tier investment and commercial banks such as J.P. Morgan, Bank of America, Citibank, and Morgan Stanley, where he also managed large teams for developing IT applications. Weimin has also held corporate titles such as executive director and senior VP in some of these firms. Weimin has in-depth knowledge of the blockchain technology, data science, data architecture, data modeling, and big data platforms. He holds Ph.D, M.B.A and M.Sc degrees. He has co-authored Blockchain Quick Start Guide and published several statistical journal papers.
Read more about Weimin Sun

author image
Xun (Brian) Wu

Xun (Brian) Wu is a senior blockchain architect and consultant. With over 20 years of hands-on experience across various technologies, including Blockchain, big data, cloud, AI, systems, and infrastructure, Brian has worked on more than 50 projects in his career. He has authored nine books, which have been published by O'Reilly, Packt, and Apress, focusing on popular fields within the Blockchain industry. The titles of his books include: Learn Ethereum (First Edition), Learn Ethereum (Second Edition), Blockchain for Teens, Hands-On Smart Contract Development with Hyperledger Fabric V2, Hyperledger Cookbook, Blockchain Quick Start Guide, Security Tokens and Stablecoins Quick Start Guide, Blockchain by Example, and Seven NoSQL Databases in a Week.
Read more about Xun (Brian) Wu

author image
Angela Kwok

Angela Kwok, is a lawyer, specializing in high-tech and blockchain start-ups and venture capital financing. She also focuses on general corporate and commercial matters, fund formation, cross-border and domestic investments, mergers and acquisitions, and related tax matters in the TMT industry. She has represented clients in blockchain-related cases.
Read more about Angela Kwok