<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aidan Pak on Medium]]></title>
        <description><![CDATA[Stories by Aidan Pak on Medium]]></description>
        <link>https://medium.com/@aidanpak?source=rss-1b049447fc9b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s64yFO7GRExW1cF_RhDYLw.jpeg</url>
            <title>Stories by Aidan Pak on Medium</title>
            <link>https://medium.com/@aidanpak?source=rss-1b049447fc9b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:43:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aidanpak/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The CUDA Advantage: How NVIDIA Came to Dominate AI And The Role of GPU Memory in Large-Scale Model…]]></title>
            <link>https://medium.com/@aidanpak/the-cuda-advantage-how-nvidia-came-to-dominate-ai-and-the-role-of-gpu-memory-in-large-scale-model-e0cdb98a14a0?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0cdb98a14a0</guid>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[cuda]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 19:36:29 GMT</pubDate>
            <atom:updated>2024-06-28T19:36:29.242Z</atom:updated>
            <content:encoded><![CDATA[<h3>The CUDA Advantage: How NVIDIA Came to Dominate AI And The Role of GPU Memory in Large-Scale Model Training</h3><p>With a commanding 85% share of the market and software-level gross margins, NVIDIA’s dominance in the AI chip industry is nothing short of remarkable. However, this success has not gone unnoticed. Last week, the Department of Justice and the Federal Trade Commission reached a deal to launch an <a href="https://www.nytimes.com/2024/06/05/technology/nvidia-microsoft-openai-antitrust-doj-ftc.html">antitrust investigation</a> into NVIDIA’s dominant role. As the company continues its impressive run, it begs the question: What differentiates NVIDIA’s chips from the competition, and can they maintain their competitive advantage in the future?</p><h3>Background on Neural Networks and The Role of GPUs in Training</h3><p>Neural networks are learned functions that model complex relationships between input and output data. They are trained by batch-feeding vast amounts of data through the network and iteratively tasking it with predicting the output. The prediction computed in each iteration is compared to the expected output to compute a loss, which measures the error in the model. This process of feeding data forward through the neural network to compute a loss is called the forward pass. Then, the loss obtained from the forward pass is propagated back through the network with the goal of minimizing the error by adjusting the model’s parameters. This is done through a process called the backward pass where gradients are computed with respect to each parameter, which measure how much the parameter contributes to the overall error, and applying an optimization algorithm (ie: gradient descent) to minimize the error by optimally updating each parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hrMwTP0F-5MAhXpD.png" /><figcaption><a href="https://medium.com/data-science-365/overview-of-a-neural-networks-learning-process-61690a502fa">Source: Medium</a></figcaption></figure><p>Training deep neural networks is a computationally demanding process due to the immense number of <a href="https://www.semianalysis.com/p/nvidiaopenaitritonpytorch">matrix operations</a> involved. Calculating activations and optimizing the model’s parameters require computing dense matrix multiples, which demand a significant number of independent operations due to the vast number of individual elements that need to be processed to achieve the final result. Moreover, the <a href="https://www.bvp.com/atlas/roadmap-ai-infrastructure">self-attention mechanism</a> introduced in the transformer architecture significantly increased the number of matrix operations involved in training. For reference, training GPT-4, a 1.8 trillion parameter transformer, required approximately <a href="https://www.semianalysis.com/p/100000-h100-clusters-power-network">2.15 x 10²⁵</a> floating point operations (FLOPS). However, the beauty in matrix multiplication is that the element-wise operations within the larger computation can be computed concurrently, making matrix multiplication highly parallelizable. This means that the process of training neural networks can be significantly accelerated by parallelizing the independent operations across many processors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kIoTyJs5fywBXvQh.png" /><figcaption><a href="https://towardsdatascience.com/a-complete-beginners-guide-to-matrix-multiplication-for-data-science-with-python-numpy-9274ecfc1dc6">Source: Medium</a></figcaption></figure><p>Unlike CPUs, GPUs are specialized chips equipped with thousands of cores, allowing them to execute millions of threads simultaneously. Using networking technology like NVLink and Infiniband, many GPUs can be “strung” together into clusters, increasing the number of available cores working on a given task. This allows clusters of GPUs to significantly accelerate the process of training deep neural networks. To train GPT-4, OpenAI deployed <a href="https://www.notion.so/How-AI-Works-Tech-Notes-on-AI-and-AI-History-6a19dd5523894911a7cdee844ec522e3?pvs=21">25,000</a> NVIDIA A100 GPUs, reducing the training time to about 90–100 days. Using a single A100 GPU, which can perform 19.5 trillion flops per second, it would take approximately 35,000 years to train the entire model assuming perfect compute utilization (which is infeasible).</p><h3>The Memory Wall</h3><p>Thanks to the remarkable advancements in peak GPU computational throughput driven by Moore’s Law, the efficiency of computing matrix multiples is no longer the primary bottleneck when training large-scale deep learning models. Instead, <a href="https://www.semianalysis.com/p/nvidiaopenaitritonpytorch">memory and networking constraints</a> introduced by the sheer size of today’s models and the necessity for frequent data transfers leave GPUs relatively inefficient during training. Even with heavy optimizations, <a href="https://ar5iv.labs.arxiv.org/html/2211.05102#:~:text=The%20model%20FLOPS%20utilization%20(MFU,no%20memory%20or%20communication%20overhead.">Model FLOPs Utilization</a> (MFU) of 35% is considered best-in-class for training trillion-parameter models.</p><p>For large transformers, the model weights and optimizer states alone can occupy tens of terabytes of memory, far exceeding the capacity of on-chip memory such as SRAM and registers. As a result, model weights are distributed across GPUs during training and stored in a specialized form of off-chip memory known as High Bandwidth Memory (HBM). While HBM offers significantly higher bandwidth than traditional off-chip storage (DRAM), the latency of data transfers between HBM and processors leaves GPU cores often idle, waiting for data to transfer in and out of memory. As a result, GPUs are constrained by low compute utilization with the potential to optimize performance by minimizing data movement and maximizing data reuse during key operations.</p><h3>The NVIDIA Advantage</h3><p>The root of NVIDIA’s GPU monopoly is derived from its parallel computing platform, CUDA, which allows NVIDIA GPUs to achieve higher compute utilization rates than competitive architectures. CUDA is a robust programming interface that includes a compiler, driver, runtime environment, and a full toolkit, enabling developers to program GPUs to accelerate applications. With CUDA, developers can define functions for parallel execution and manage the memory hierarchy to optimize application performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x_7Vw3LpK3U6mgDq.png" /><figcaption><a href="https://blogs.nvidia.com/blog/what-is-cuda-2/">Source: NVIDIA</a></figcaption></figure><h3>The Evolution of CUDA: How the Platform Became the Standard for Accelerated Computing</h3><p>In the decade following the release of CUDA in 2006, NVIDIA worked hard to meet the growing demands for accelerated computing in various fields outside of graphics. This led NVIDIA to develop specialized libraries for these applications, including cuDNN for deep learning and cuBLAS for basic linear algebra. These libraries, which are still prominent today, are collections of operator kernels (i.e., functions) for common operations, such as matrix multiplication and convolutions. Writing these low-level functions can be extremely difficult because it requires the programmer to have a deep understanding of the underlying chip architecture and memory hierarchy to ensure that the kernel is well-optimized for high utilization while maintaining low latency.</p><p>In 2015 and 2016, excitement around the application of neural networks led to the emergence of deep learning frameworks TensorFlow and PyTorch for defining, training, and deploying deep learning models. These frameworks introduced higher-level abstractions to operator kernels and allowed developers to focus on model architecture and training algorithms without needing to program the underlying operations to parallelize efficiently on hardware.</p><p>Recognizing the adoption within the AI community and the superior performance of NVIDIA GPUs for accelerating parallelizable workloads, PyTorch and TensorFlow provided extensive support for CUDA as the preferred backend for deploying deep neural networks. This meant that developers, in collaboration with NVIDIA, wrote optimized CUDA kernels so that each common deep learning operator could be efficiently mapped into a collection of highly efficient low-level functions that can be executed exclusively on NVIDIA GPUs.</p><p>As more model architectures and optimization techniques were introduced, these frameworks steadily implemented more operators, which translated to more refined CUDA kernels. This marked the start of a strong network effect: as more developers and organizations invested time and resources in writing laborious CUDA kernels, the platform’s capabilities grew exponentially. By the time deep learning was gaining widespread adoption in the later half of the 2010s, CUDA had firmly established itself as the standard for GPU acceleration, with each common operator mapped to a highly optimized set of kernels that could be compiled and executed on NVIDIA hardware. With the majority of the deep learning ecosystem explicitly optimized for CUDA, the proprietary nature of the software layer created a powerful form of vendor lock-in to NVIDIA GPUs.</p><p>Although deep learning frameworks offered support for competitive programming platforms, such as AMD’s ROCm, these platforms failed to gain significant adoption mainly due to a causality dilemma. Underperformance led to minimal incentive for frameworks to write more kernels to support them, which in turn hampered further development and optimization efforts. While open platforms like OpenCL promised cross-platform portability for various hardware, they too faced this dilemma and consistently underperformed CUDA in real-world applications.</p><h3>Beating NVIDIA?</h3><p>Today, the strength of NVIDIA’s moat lies in the difficulty in writing kernels and the proprietary nature of CUDA, which exclusively allows NVIDIA hardware to extract better performance than competitive architectures. Even if competitive chips can offer comparable peak FLOPS per second, optimized CUDA kernels for deep learning enables NVIDIA GPUs to achieve better FLOPS utilization rates which leads to overall greater performance. To beat NVIDIA, competitors must not only engineer superior hardware but also ensure compatibility with a more performant software ecosystem.</p><p>The analogy to beating NVIDIA is similar to trying to build a competitive video streaming platform to YouTube. Over decades, YouTube’s value proposition was strengthened as users posted terabytes of video content. To build a competitive service, a streaming platform must not only create a better user experience but also build out a comparable and ever-growing content library. For a competitor to beat NVIDIA, the task is even more daunting as the challenging part is not only to build a better chip but also to build out a similarly exhaustive and adopted software platform. Supporting a software ecosystem of this scale and flexibility is impossible for a single development team and requires community adoption and consistent effort to ensure that the software is well-optimized to support the wide-ranging and constantly evolving set of deep learning architectures.</p><h3>Competition on the Horizon</h3><p>In the current stage of the AI infrastructure build-out, GPUs have merely been a CAPEX line item for big tech companies, who are looking to massively scale their compute capabilities to over <a href="https://www.semianalysis.com/p/100000-h100-clusters-power-network">100,000 GPUS</a>. In 2024 alone, Amazon, Google, Microsoft, and Meta are expected to spend a combined <a href="https://www.notion.so/How-AI-Works-Tech-Notes-on-AI-and-AI-History-6a19dd5523894911a7cdee844ec522e3?pvs=21">$210 billion</a> on CAPEX, with a large portion designated to NVIDIA GPUs. Meta plans to purchase <a href="https://www.cnbc.com/2024/01/18/mark-zuckerberg-indicates-meta-is-spending-billions-on-nvidia-ai-chips.html">350,000</a> H100s while Microsoft plans to amass some <a href="https://www.businessinsider.com/microsoft-gpu-targets-1-8-million-ai-chips-this-year-2024-4">1.8 million</a> GPUs by the end of 2024 to train the next frontier model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IQu4H4PJYKG0BmKk.png" /><figcaption><a href="https://www.semianalysis.com/p/100000-h100-clusters-power-network">Source: Semi-Analysis</a></figcaption></figure><p>Despite the enormous projected spend on NVIDIA infrastructure, Big Tech has been actively exploring ways to reduce their dependency on NVIDIA as their sole supplier of AI hardware. One strategy the cloud hyperscalers have been exploring is designing their own custom ASICs (Application-Specific Integrated Circuits) for inference. These fixed-function hardware components are much cheaper than GPUs and offer additional performance by being specifically optimized for particular AI tasks. ASICs such as AWS Inferentia chips have shown incredible performance benchmarks when accelerating AI inference, which primarily consists of just one type of operation: matrix multiplication. However, ASICs have largely failed to gain adoption due to their lack of programmability. Training and reinforcement learning require performant computation of a more diverse and evolving set of operations, making the lack of programmability of ASICs detrimental to their adoption for AI more broadly.</p><p>Detailed in Semi-Analysis’s <a href="https://www.semianalysis.com/p/nvidiaopenaitritonpytorch">post</a>, the most promising approach to overcome the CUDA monopoly is innovation at the compiler level to democratize performance across various hardware vendors. At the forefront of these efforts is PyTorch 2.0, which has integrated compiler technologies that translate high-level code into formats compatible with a wide range of AI accelerators. Specifically, PyTorch 2.0 has integrated OpenAI Triton, a Python-based intermediate compiler that can convert models written in frameworks like PyTorch into an intermediate representation (IR) that can be optimized for various GPUs. Triton bypasses CUDA and makes GPU optimizations widely accessible by allowing developers to write GPU kernels in a Python-like syntax. While still in its early stages and lacking widespread adoption, OpenAI Triton and other open compiler technologies have the potential to democratize AI compute by making it possible for hardware vendors to write CUDA-level optimizations for popular deep learning frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*2BP_WO5AFhsH67OM.jpeg" /><figcaption><a href="https://pytorch.org/get-started/pytorch-2.0/">Source: PyTorch</a></figcaption></figure><h3>Summary</h3><p>Over the years, the deep learning ecosystem has become exclusively optimized for CUDA, allowing NVIDIA hardware to differentiate from competition through industry-leading optimizations. This competitive advantage has prohibited new hardware vendors from effectively penetrating the AI ecosystem and led to a reinforcing network effect. However, NVIDIA’s dominant position and incredible pricing power have spurred efforts within the AI community to disrupt NVIDIA and democratize AI compute.</p><p>The biggest threat to NVIDIA’s position going forward is open technologies capable of translating high-level framework code into portable representations across a diverse set of hardware. While matching NVIDIA’s performance will take years, tools such as AI compilers, graph optimizers, and model converters that can balance performance across hardware, has the potential to challenge NVIDIA’s pole position. The questions that remain, though, is when will these technologies be competitive, and how much of the AI infrastructure build-out will have already occurred by then?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0cdb98a14a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing LLMs with Vector Databases]]></title>
            <link>https://medium.com/@aidanpak/enhancing-llms-with-vector-databases-dc85288d1409?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc85288d1409</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Sat, 10 Feb 2024 22:03:40 GMT</pubDate>
            <atom:updated>2024-02-10T22:03:40.001Z</atom:updated>
            <content:encoded><![CDATA[<p><em>originally published on Substack on October 12, 2023</em></p><p>With the rise of LLMs, we are entering an era of non-deterministic computing. Large Language Models, like ChatGPT and Claude by Anthropic, operate on the principles of probabilistic generation and have demonstrated an astonishing capacity to add reason and logic on top of unstructured data. However, the adoption of LLMs within the enterprise has been severely stagnated by a significant set of hurdles. Primarily, model hallucinations, or outputs in which language models produce nonsensical or factually incorrect responses, have introduced instability and eroded trust in the generative capabilities of LLMs.</p><h4>Medley of Problems w/ LLMs:</h4><ol><li>LLMs are inherently static. They lack up-to-date information, and the process of updating them is expensive/time-consuming.</li><li>LLMs are trained for generalized tasks and lack domain-specific knowledge for the majority of enterprise use cases.</li><li>Training and deploying LLMs are technical challenges and resource-intensive. Few organizations possess the financial and human resources to do so at scale.</li><li>LLMs function as “black boxes” — it’s not easy to understand which sources an LLM was considering when they arrived at their conclusions.</li></ol><p>While still very early in the adoption cycle, companies today are exploring solutions that enable LLMs to work with real-time enterprise data while mitigating the downsides of probabilistic generation. Systems that enable these capabilities will be a significant catalyst for widespread adoption of Generative AI technologies.</p><h3>Background on LLMs</h3><p>In one sentence, autoregressive language models generate text by predicting the most likely response to a given input, word by word.</p><p>In a little more depth, LLMs are trained on terabytes of plaintext from the web to learn the nuances and structure of text. Then, when an LLM is prompted, the input text is split up and processed through the layers of the language model. Drawing on its knowledge from the training data, the model numerically scores the relationships between the words in the input and uses this information to generate a probability distribution for the most likely first word in the response. The language model then appends the most probable word to the output sequence, and the resulting phrase is iteratively fed back through the model until the desired output length is reached.</p><p>Compared to the computing architectures of the past, language models employ a fundamentally distinct approach to information retrieval. LLMs are not databases or search engines, and when prompted with a question requiring domain-specific knowledge, they do not refer to an external knowledge base. Instead, LLMs rely on ‘parametric knowledge,’ or the encoded numerical values of its parameters that serve as the basis for the model’s statistical predictions of the next word. In this way, the information generated by LLMs is purely based on the probability of each word’s occurrence, and therefore, LLMs lack an intrinsic understanding of the text they are generating.</p><p>To gain a much deeper understanding of how LLMs work, reference my previous blog post linked <a href="https://aidanpak.substack.com/p/the-emergence-of-the-transformer"><strong>here</strong></a><strong>.</strong> But in short, the main conclusion is that LLMs generate text probabilistically, and the statistical nature of their language generation capabilities is the root cause of model hallucinations.</p><h3>The Promise of Retrieval-augmented Generation (RAG)</h3><p>Retrieval-augmented generation is a promising solution for companies seeking to enrich LLMs with proprietary data without incurring the expenses associated with <a href="https://www.fiddler.ai/blog/four-ways-that-enterprises-deploy-llms?utm_medium=email&amp;utm_source=mkto&amp;utm_campaign=09-2023-newsletter&amp;mkt_tok=NTEzLVJQUS02OTkAAAGOD5C5A4MsFV4cdNsO0xuXCnYYjye587X7WncsDIPsdoa6Ib4-riopY_LyZZVkxSb5ecdNwDcKejWI-J_NQNqJ4jhLba8mqTDn6yLq5rUs">fine-tuning and training from scratch</a>. When implemented correctly, retrieval-augmented generation goes beyond conventional prompt engineering and can be used to ground an LLM with relevant context, diminish the likelihood of hallucinations, eliminate their inherent static behavior, and enhance traceability (addressing all four major flaws of LLMs).</p><p>Retrieval-augmented generation works by introducing an external information retrieval system to function alongside an LLM. Instead of directly prompting the language model and hoping its numerical representation of information will lead to an accurate response, the idea is to first query an external knowledge base to pull up relevant context. This information is then appended to the original prompt to form a comprehensive query, which is subsequently sent to the language model. The LLM then synthesizes all the information in the new prompt (essentially a question-and-answer pair) to formulate a coherent and context-aware response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IlLnCejPqtBf8-8i.png" /></figure><h4>Lexical Vs. Semantic Search</h4><p>The primary challenge in implementing retrieval-augmented generation is developing a retrieval mechanism capable of determining relevant context given a specific query. To overcome this hurdle, today’s implementations of RAG use vector databases, which are specialty databases designed to retrieve data based on semantics.</p><p>Unlike traditional databases, which rely on keyword-based search (lexical search), vector databases implement semantic search, a groundbreaking approach to information retrieval that distinguishes entries based on similarity. While lexical search determines the best results in a database by matching specific keywords between the query and entries, semantic search comprehends the underlying meaning of the query, identifying related concepts, synonyms, and even ambiguous terms within the search space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*yclG6iD2v-0juGK1.png" /></figure><h4>Semantic Search with Vectors and Embedding Models</h4><p>Semantic search over a dataset can be implemented by applying an embedding model, a learned transformation that maps an unstructured data type to high-dimensional vectors. Similar to generative AI models, embedding models are neural networks that are trained on large corpora of unstructured data that learn to encode the features and semantic relationships of a dataset into multi-dimensional vectors.</p><p>For example, an embedding model can map books to vectors that capture the similarity between the titles based on genre, themes, etc. The book <em>Alice’s Adventures in Wonderland</em> can be represented by the two-dimensional vector (-11,-41), while <em>Dracula</em> can be represented by (-4,-50). The distance between the vectors in this space reflects the closeness of meaning or intensity of the relationship between the books. In this way, the task of semantically searching a database of books can be simply achieved by performing a similarity search over the collection of book embeddings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*BvZrD0o7wLPmTAKS.png" /></figure><p>Going beyond books, vectors can be used to represent other forms of unstructured data, including images, videos, and text documents. In practice, embedding models use vectors of thousands of dimensions to represent unstructured data. For instance, OpenAI’s text embedding model maps words and sentences to 1536-dimensional vectors. Using higher dimensionality allows the embedding model to better capture the subtle nuances and intensity of relationships between the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*7KxKuTuO9bmF1iZY.png" /></figure><h4>Implementation of RAG w/ Vector Databases</h4><p>Getting back to retrieval-augmented generation, vector databases can be used to augment language models by retrieving relevant context at runtime. Company-specific unstructured data, such as product documentation, emails, slack messages, etc., can be run through a text embedding model to obtain their vector representations, which in turn could be stored in a vector database and used as an external knowledge base. Then, when a user prompts a language model, the query can first be sent to the vector database to identify the most relevant contextual vectors to append to the original prompt. This augmented prompt containing both the original question and relevant background information could then be fed into the LLM to generate a response grounded in real-world data.</p><p>To illustrate this, take the example of a B2B software company building a chatbot to assist customers in implementing their product.</p><ol><li><strong>Vectorize Data</strong>: Initially, the company takes its dataset of product documentation and splits it up. The chunks of text are then run through an embedding model, and the resulting vectors are stored in a dedicated vector database, where they are organized and indexed for efficient retrieval.</li><li><strong>User Query</strong>: When a user interacts with the LLM-assisted chatbot by posing a query (e.g., “How do I troubleshoot network connectivity issues?”), this query is first sent to the vector database and undergoes a similar transformation. The input text in the query is vectorized using the same embedding model, rendering it a numerical vector.</li><li><strong>Similarity Search</strong>: Using the vector representation of the input prompt as the query vector in a similarity search, the most nearby vectors within the database are retrieved. If done correctly, these vectors represent segments of text from the documentation that explains network connectivity or any other related topics.</li><li><strong>Contextualization</strong>: The retrieved vectors are then concatenated with the original prompt to form a comprehensive query, which is subsequently used to prompt the LLM.</li><li><strong>Natural Language Response:</strong> The language model can now synthesize this information to formulate a coherent and context-aware response.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RVvtZYQRAm9lZ4ZV.png" /></figure><h3>Final Thoughts</h3><p>Retrieval-augmented generation represents a significant step in bridging the gap between traditional computing and the probabilistic nature of LLMs. RAG can significantly improve the effectiveness of language models by allowing them to tap into vast amounts of real-time enterprise data while also concentrating their area of focus on only relevant context. This helps mitigate hallucinations, enhance accuracy, and introduce traceability to LLM responses.</p><p>In the future, generative models will be used throughout the enterprise to facilitate content generation, enhance enterprise search capabilities, and infuse a layer of intelligence and personalization into products. While challenges remain, RAG stands as a promising early solution that can instill trust and readability into the generative capabilities of LLMs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc85288d1409" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Emergence of the Transformer.]]></title>
            <link>https://medium.com/@aidanpak/the-emergence-of-the-transformer-23a4386d2749?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/23a4386d2749</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 18:07:21 GMT</pubDate>
            <atom:updated>2023-08-15T18:07:21.099Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Emergence of the Transformer. The Architectural Breakthrough, History, and the Future of The Model Behind ChatGPT</h3><p><em>Originally published on Substack on June 7, 2023</em></p><p>It is becoming increasingly clear that the complexities of human intelligence are not as insurmountable as once thought. Tasks once believed to be exclusive to human cognition, such as language generation and problem-solving, are now being replicated by machines with startling accuracy. With the advent of transformer models like GPT-3, the next technological renaissance in Silicon Valley is beginning to be unleashed. Since its launch in November 2022, ChatGPT has experienced parabolic growth, surpassing the <a href="https://www.reuters.com/technology/chatgpt-sets-record-fastest-growing-user-base-analyst-note-2023-02-01/">1 million</a> user mark in just five days. As of March 2023, ChatGPT reigns as the king of generative AI, attracting over 1 billion visits per month as of March 2023. But it’s not alone in this arena — other transformer models like Google Bard, Github Copilot (AI paired programmer), Jasper (content creator), and text-to-image generators such as DALL-E and Midjourney have skyrocketed in popularity as well. As these autoregressive models continue to transform the way we communicate, write, learn, and develop code, it’s clear that generative AI is here to stay and will create tremendous economic value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/0*iG8l6aa4vf2_get7.png" /></figure><h3>So What is ChatGPT Doing Exactly</h3><p>One look at the basic structure of a transformer, and it is hard to believe that the model behind ChatGPT is generating text with any sort of human-like capability. From a very high level, the fundamental task that ChatGPT is performing is given an input sequence, what is the next most probable next word. (Either next-token prediction or masked language modeling)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/0*xLsV3CZ9y_YpgH2L.png" /></figure><p>Specifically, ChatGPT takes in a sequence of textual input and is able to contextualize the information. It is able to understand how much each word relates to the others in the input, and from that knowledge and prior experience from training data, it creates a probability distribution over all possible words and adds the most probable next word to the sequence. The resulting phrase is then fed back through the model iteratively until the desired output length is reached.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/0*Lg7RO8BobK1tf94s.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*sCWndCtc_bbwUzXZ.png" /></figure><p>As a few <a href="https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-doing-and-why-does-it-work/">caveats</a>, instead of handling words, the model behind ChatGPT actually handles “tokens,” which could be just a part of a word, a letter, or a prefix/suffix, which is why it can sometimes make up new words. Additionally, the model doesn’t always pick the word with the highest probability. Rather, the model uses a ‘temperature’ parameter that determines how often lower-ranked words will be used, and for essay generation, it turns out that not always predicting the most probable word leads to better text results. This randomness is why if ChatGPT is given the same prompt, it does not always produce the same result.</p><h3>Part 1 — Predecessing NLP Models — The Era of CNNs and RNNs</h3><p>Natural Language Processing (NLP) has long been a challenging subfield of Artificial Intelligence that focuses on developing algorithms to understand, process, and generate human-like language. Before the release of the Transformer in 2017, NLP models that could understand and generate text with human-like capabilities appeared to be an insurmountable mathematical task. Human language is rich and nuanced, with many levels of meaning and context, and despite the advancements in CNNs and RNNs, it appeared the industry was still decades away from NLP-optimized models with advanced text generation and comprehension abilities.</p><p>Convolutional Neural Networks (CNNs) were initially designed and most commonly used today for image-processing tasks like recognizing objects in pictures and videos. CNNs analyze images by splitting them into smaller segments and extracting local patterns and structures from that area. These features are then combined to build a higher-level understanding of the image. When it comes to natural language processing, CNNs treat words like images and similarly split the textual inputs into smaller segments. Specifically, CNNs for NLP operate on a 1-dimensional sequence of words (i.e., the text) instead of the 2-dimensional matrix of pixels in an image and apply convolutional filters to each segment to extract local features such as specific word combinations or patterns. These local features are then synthesized to build a higher-level understanding of the entire textual input. Given their ability to divide textual inputs into independent segments, Convolutional Neural Networks offer a highly parallelizable computational approach. This parallelizability extends to both the training process and the post-training inference stage, enabling CNNs to distribute the computational tasks of processing input text across multiple GPUs. This enables CNNs to be highly scalable and efficient to train on large datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/0*8XziZsLEYn0HN9Ub.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*gyYoCXKSlY0KR2q7.png" /></figure><p>While Convolutional Neural Networks (CNNs) have shown impressive results in tasks such as sentiment analysis and text classification, they have severe limitations in comprehending and generating language. Text is sequential, and the meaning of sentences often depends on the context created by previous words. Since CNNs analyze the entire input sequence in parallel and completely ignore the sequential nature of the text, they struggle to capture the relationships between words. This makes CNNs a poor choice for large language modeling and specifically performing the task of “predicting the next word given an input”.</p><h4>Recurrent Neural Networks (RNNs)</h4><p>Recurrent Neural Networks (RNNs) were introduced to address this limitation by allowing information to flow from previous inputs to the current one. Recurrent Neural Networks process words individually and maintain a memory of previous inputs to improve subsequent predictions. At each time step, the RNN recurrently processes a word and considers the output from the previous time step. The resulting output is then fed to the next time step, and the model iteratively performs this process on the entire input sequence. By considering previous inputs when processing the current word, NLP-optimized RNNs build an understanding of the relationships between words, allowing them to contextualize information very well.</p><p>However, since RNNs process words sequentially, they have a limited ability to capture long-term dependencies and struggle in scenarios where the current word being analyzed depends on text far back in the input sequence. While LSTMs and GRUs are forms of RNNs that are capable of building longer-term dependencies, the inherent structure of recurrence in these networks makes them prone to the same problem as traditional RNNs but at a larger range. Furthermore, RNNs, LSTMs, and GRUs fail to model language accurately because they do not parallelize well and cannot be trained on large datasets efficiently. Due to the sequential nature of their processing, the computational task cannot be spread out across multiple GPUs creating an economic and time-capacity ceiling on the amount of data that can be used to train the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XMWRX4HrwK7VyxZU.png" /></figure><h3>Transformer-ing NLP, The Rise of GPT</h3><p>Enter the transformer, a neural network-based architecture that was originally introduced in a 2017 paper written by Google Researchers called “<a href="https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf">Attention is All You Need</a>”. Initially introduced for language translation, this model aimed to tackle the limitations of traditional RNNs and CNNs by processing all the words in inputs in parallel (like CNNs) while still accounting for word positioning (like RNNs). The proposed transformer was revolutionary because it could parallelize across multiple GPUs, making it possible to train larger language models on enormous training datasets while still having the ability to learn the complex relationships between words. Following the release of the paper, OpenAI and other corporations began to experiment with the scaling transformer both in the number of parameters and the size of the training dataset.</p><p>Specifically, OpenAI scaled the transformer from 117 million parameters in the original <a href="https://medium.com/walmartglobaltech/the-journey-of-open-ai-gpt-models-32d95b7b7fb2">GPT-1</a> to the groundbreaking GPT-3 model, which boasts a staggering 175 billion parameters. The training dataset for GPT-3 is <a href="https://balkaninnovation.com/how-large-is-gpt-3-dataset/">estimated</a> to have consisted of almost a trillion words, over 40 terabytes of text, and was so large that it required an <a href="https://www.fierceelectronics.com/sensors/chatgpt-runs-10k-nvidia-training-gpus-potential-thousands-more">estimated</a> 10,000 Nvidia A100 GPUs (each costing around $10,000–15,000) and still took several days to train.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*iVD0Mel8KT28B4sX.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yzHwHfw-b7iaujnB.png" /></figure><p>To get a sense of the scale of just how big these models are, the image below depicts a simple neural network called a multi-layer perceptron (MLP). Similar to the structure of the brain, which is composed of neurons interconnected by dendrites, neural networks structurally mimic the brain by replacing neurons with nodes (still often referred to as neurons) and dendrites with connections. Each of these connections has an associated numerical value (weight/parameter) representing the intensity of the relationship between the respective neurons. GPT-4 is <a href="https://the-decoder.com/gpt-4-has-a-trillion-parameters/">estimated</a> to have 1 trillion parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xV9IoFYceYte3zUt.png" /></figure><h3>Part 2 — Inside the Transformer: Unveiling The Inner Workings of ChatGPT’s Architecture</h3><p>To understand how the transformer works, let’s first explore one of its original applications: language translation. Consider the task of translating a sentence from English to Spanish. Simply translating each word individually would produce entirely nonsensical output. A more effective approach would be to understand the sentence contextually, taking into account word positions and their relationships with one another, then using this understanding to generate the Spanish phrase word by word. For all language modeling tasks, this is precisely what the transformer does. It takes in an input sequence, comprehends word positioning, and numerically scores the relationships between each word in the input. Armed with this higher-level understanding, the transformer decodes this information to predict the most probable next word.</p><p>From a high level, the transformer architecture can be divided into two key steps: the encoder and the decoder. The encoding layers take the input sequence (English text) and construct an abstract continuous representation of its features. This higher-dimensional encoded representation encapsulates the complex relationships between words, such as syntactic structure or co-occurrence. Then, the decoder attends to the encoded input and uses it to understand the relationships between each word in the input and the current word being generated. Based on this understanding and the previously generated words, the decoder produces a probability distribution over all the possible next words. The decoder then selects the most probable (or near-most probable) word and appends it to the input sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FSYBdrXOuF-XE6n9.png" /></figure><h4>The Idea of a Semantic Meaning Space</h4><p>The encoding layers model the relationships between words by turning words into vectors. To understand this concept, we can think of mapping words to points (2d vectors) on a coordinate plane. For instance, the word cat can be represented by the vector [2,8], while the word dog is represented by [1.8,7.9]. The distance between points reflects the closeness of meaning or intensity of the relationship between words. In this way, the task of numerically scoring the relationships between words is now simply achieved by measuring the distance between the vector representations within a semantic meaning space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/0*fNoEMeU-sWIMa55u.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bosrUCZZWU5g5gWZ.png" /></figure><h3>Encoding Layers in Depth (Technical)</h3><h4>Vector Embeddings</h4><p>Preceding the encoding layers and when processing an input, ChatGPT starts by converting the text sequence into numerical token representations. GPT-3 employs a vocabulary of 50,257 unique tokens; each assigned a specific numerical value. By mapping the input sequence to these numerical values, the text is transformed into a sequence of numbers. These tokens are then further encoded into higher-dimensional vectors. Specifically, in GPT-2, the vectors have a length of 768, while in ChatGPT’s GPT-3, the vectors have a length of 12,288. This transformation allows the model to work with numerical data as each word is now represented by a coordinate within a semantic meaning space of dimension 12,288 for GPT-3. The reason why the dimensionality of the vectors is set to be so high, rather than 2d or 3d vectors, is that higher dimensional vectors provide a rich and expressive space so that the model can learn complex linguistic features and relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/0*5H2jNks2cisWNLcF.png" /></figure><p>Alongside word embeddings, the model also generates positional vector encodings for each token. Positional encodings are a significant advancement over previous NLP models because they allow the model to account for the order of words without needing to sequentially process the input. Armed with these vectors representing the position of each token, the transformer then sums the two sets of vectors to create a single encoding vector for each token. The resulting sequence of encoding vectors now contains critical information on both the meaning and position of each token in the input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*R3yK6MyLW2rl-85r.png" /></figure><h4>Multi-Headed Self-Attention</h4><p>Following the transformation of words into vector embeddings, the transformer processes the input by feeding it through a sequence of encoding layers. Each encoding layer consists of two key components: a multi-headed self-attention mechanism and a position-wise fully connected feed-forward neural network. Self-Attention, the transformer’s most revolutionary component, is a mechanism designed to address the computational challenge associated with capturing contextual information. Rather than treating all words equally, self-attention allows the model to focus on the most relevant words for each prediction, considering their relationships and dependencies within the sequence. This allows the transformer to focus not only on nearby words but also on words that may appear in sentences far back in the input.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/0*28AbUBrq-8JhLP9s.png" /></figure><p>The multi-headed self-attention mechanism within each encoding layer is composed of 96 attention heads. The process starts by evenly distributing the inputted vector embeddings amongst the 96 attention heads. For the first encoding layer, the sequence of vector embeddings is the original set of embedding vectors following the transformation of words into vectors. For subsequent encoding layers, the input to the attention mechanism is the output from the previous encoding layer (still a sequence of embedding vectors, yet transformed).</p><p>After receiving a given portion of the input, each attention head then compares each of its embeddings to the embeddings of all other words in the sequence. This is achieved by generating query, key, and value vectors for each corresponding portion of the input. For instance, if we focus on the first attention head, it specifically attends to the first embedding (or a few adjacent embeddings depending on the length of the input). It then generates separate query, key, and value vectors for each embedding it attends to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YGBUpH_vqpmwGT56.png" /></figure><p>To evaluate the relationship between the current embedding being attended to and all other embeddings in the input, the attention head calculates the dot product between the query vector of the respective embedding and the key vectors of all the other embeddings in the input sequence. This dot-product operation, called dot-product attention, measures the similarity or relevance between the query and key vectors.</p><p>To ensure that the resulting scores are appropriately scaled, they are divided by the square root of the dimensionality of the key vectors. The scaled scores are then passed through a softmax function, which converts them into attention weights. These attention weights represent the relevance of each word in the context of the current word being attended to. Finally, the attention weights are multiplied by the value vectors to obtain the weighted sum of the value vectors, which captures the contextual information from the attended words. This process is repeated for each attention head, allowing the model to capture different types of relationships and dependencies within the input sequence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*PR6ThACnNhrggDDz.png" /></figure><p>Finally, the outputs of all the attention heads are concatenated to produce the terminal encoded representation of the input sequence. This representation is then fed through a feed-forward neural network that allows the model to capture the higher-level features and contextual information supplied by the self-attention layer. The output of the neural network is then passed as the input to the next encoding layer. This process continues iteratively through all the encoding layers of the transformer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*r3dx3wfl2FIp9EuW.png" /></figure><h3>The Decoding Stage and Generating the Target Sequence</h3><p>Following the encoding layers, the decoder is responsible for generating the target sequence, word by word, based on the encoded representation produced by the final encoding layer. In each decoding layer, the transformer similarly contains self-attention and neural network layers as in the encoding stage to compare and score the components of the decoder’s input sequence. However, the decoder also incorporates an additional attention mechanism called encoder-decoder attention. This attention mechanism allows the decoder to consider the encoded input representation while generating each word of the target sequence. It attends to the encoded input, understanding the relationships between each word in the input and the word currently being generated. This enables the decoder to make informed predictions based on the contextual information from both the input sequence and the previously generated words.</p><p>Once the attention mechanisms have captured the relevant contextual information, the decoder passes the output through a feed-forward neural network resulting in a probability distribution over the possible next words in the output sequence. This distribution represents the likelihood of each token in the vocabulary being the next token in the sequence. The decoder then selects the most probable (or near-most probable) token based on this distribution and appends it to the input sequence. This iterative process continues until the desired length of the output sequence is reached, or a special end-of-sequence token is generated.</p><h3>Part 3 — The Role of Neural Networks</h3><p>So, we’ve just explored the nitty-gritty details of the transformer architecture, with its encoder and decoder components and all the fancy math involved in scoring word relationships. But let’s take a step back and ask the big question: why does this whole thing actually work? How does the model learn word embeddings? And how does it use that higher-level understanding to predict what comes next? Well, the answers to these burning questions lie in the inner workings of neural nets.</p><h3>A Quick and Dirty Guide to Neural Nets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*zdKcDOgz3XU0zpr6.png" /></figure><p>Consider the data above. This arrangement of points visually suggests a linear model could be a good fit. We can derive a function of the form f(x) = ax + b to fit this dataset. With this function, we can predict the output of future data points, for example, f(100) = a(100) + b. Through a simple linear regression, one can find the constants (a,b) so that the function f(x) = ax+b is the best-fit line for the given data points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*iW6VCh2dDLGAzlHo.png" /></figure><p>This process of fitting a model to input-output pairs holds true for more complex relationships as well. For instance, we can use polynomials like f(x) = a2x2 +a1x + a0 to model more complicated relationships between numbers. Numerical analysis techniques, including polynomial interpolation, help derive the best-fit functions for these relationships.</p><p>The overarching concept with these models is that regardless of the set of data points, there’s always a method to fit an equation or, in other words, adjust a set of parameters {a0, a1, … , an}) so that the model best describes the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*A3fBW2Lq5PW-jhVx.png" /></figure><h4>Neural Networks Are Function Approximators Too!</h4><p>While traditional statistical modeling approaches use a predefined mathematical function to fit a model to input-output pairs, neural networks offer greater flexibility in modeling more complicated relationships. Neural networks consist of neurons and connections with learnable weights (parameters), enabling them to learn complex relationships between inputs and outputs by iteratively fine-tuning the parameters. This allows neural networks to be trained to model nonlinear relationships between variables without any pre-existing mathematical understanding of the association between input and output pairs.</p><h4>A Simple Neural Network For Image Recognition</h4><p>Let’s explore how neural networks learn with the example of a model designed for image recognition. Suppose we want the model to analyze images consisting of 256 pixels that depict hand-drawn digits from 0 to 9. Our objective is to train the model so that it can accurately predict the number represented by the input image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t6Ragun2-zuHjjqi.png" /></figure><p>Rather than trying to derive a complicated mathematical function, we can train a multilayer perceptron (MLP) to serve as our prediction function.</p><p>Our neural network to solve this problem is structured with multiple layers of interconnected neurons. It begins with an input layer of size 256, followed by two hidden layers with 16 neurons each, and ends with an output layer of size 10. When an image is fed into the network, it is represented as a vector of size 256, denoted as [x1, x2, …, x256], where each xi represents the grayscale value of a specific pixel in the image. The data flows through the network, starting from the input layer, passing through the connections to the hidden layers, and finally reaching the output layer. At the output layer, each node’s value represents the probability (ranging from 0 to 1), indicating how likely the input image corresponds to a specific digit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wCTyLU6VW_v-YSLt.png" /></figure><p>Each layer in the network is connected to the previous layer by an arbitrary number of connections with corresponding weights. In our neural network, each neuron is connected to every single neuron in the subsequent layer. The design choice of having two hidden layers, 16 neurons in each hidden layer, and having every neuron pair in subsequent layers connected is an arbitrary choice. Generally, the higher number of parameters and neurons within a model, the better performing the model is.</p><p>To be more specific on how input images turn into accurate predictions, the value of the neurons following the input layer are calculated via simple weighted sums. At a high level, disregarding bias and activation functions, the value of each neuron in the second layer is determined by taking a weighted sum of all the neurons connected from the input layer, multiplied by their respective weights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/0*Wmii3CJSCeD68fib.png" /></figure><p>Similarly, the value of each neuron in the third layer is computed by taking a weighted sum of all the connecting neurons from the second layer. This iterative process continues until reaching the output layer, where each neuron’s value represents a probability (ranging from 0 to 1) for each of the possible digits the image represents (0–9).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cxWVxRyhTeosaNO6.png" /></figure><p>As a quick caveat, the weighted sums for each neuron in both the hidden and output layers are run through a sigmoid function, which guarantees that the value of the neuron is between 0 and 1. This is important because the output layer represents a probability distribution, therefore, requiring a bound on the value of each output neuron to be between 0 and 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H1i8GJ0akYVNv403.png" /></figure><h4>So Why Does This Work?</h4><p>When a neural network is instantiated, the model produces entirely nonsensical probability distributions when fed input images. In the beginning, an untrained neural network randomly assigns the values of the weights, and thus the output layer’s probability distribution is entirely random. For example, consider feeding a freshly instantiated neural network an image depicting a 3. Recall that the values fed in the input layer, [a1(0), … ,a256(0)] are the grayscale values of the 256 pixels in the image. Thus, when taking weighted sums to get the values of the neurons in the first hidden layer [a1(1), … ,a16(1)], then the second hidden layer [a1(2), … ,a16(2)], and finally the output layer [p1, … , p10], the random choices of w’s leads to neurons in the subsequent layers have seemingly random values (contained between 0 and 1 due to the sigmoid functions). The final output layer might look something like [0.163, 0.239, 0.021, 0.054, 0.163, 0.067, 0.013, 0.121, 0.092, 0.067], representing the random probabilities the image is a number 0 to 9. This output vector of probabilities does not give us any guarantee of what number the image is representing. However, we can use this output vector to train the model by comparing its values to what the expected output should have been, [0,0,0,1,0,0,0,0,0,0] for the image of a 3, and accordingly adjusting the parameters (w’s) to minimize the error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kV6V9eNYregdATKC.png" /></figure><h4>Model Training</h4><p>During the training process of a neural network, images and their corresponding expected output vectors are repeatedly presented to the model. By comparing the produced output vector with the expected one, the model uses the resulting error to adjust its parameters.</p><p>Our image recognition neural network consists of 13,002 parameters ((284*16) + (16*16) + (16*10), plus additional 16 + 16 + 10 biases (ignore these parameters for now)). The objective of the training is to find the optimal set of w’s, denoted as [w1, …, w13,002], that minimizes the error between the actual and expected output vectors. This task is accomplished using a technique called backpropagation, which serves as an iterative implementation of gradient descent.</p><p><strong>Feed into Network</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4GSiBamzvORGkf0s.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0REG887uGW26HaHa.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T5SGS9dGAyyHYsiO.png" /></figure><p><strong>Minimizing the Error through Backpropagation and Gradient Descent</strong></p><p>Backpropagation starts by creating a cost function that maps inputs from a 13,002-dimensional vector space to a singular output space representing the network error. The cost function can be expressed as C(w1, …, w13,002) = Σ(error), where the inputs are the 13,002 current parameters of the network and the output is the sum of the mean squared errors (MSE) between the expected vectors and the predicted outputs in a training dataset. Rather than creating a singular cost function for each image, it is more efficient to calculate the MSE for a set of images, with the resulting errors summed to form a single cost function for the batch. Then, the process of optimizing the network, or finding the best set of parameters, involves finding a minimum for this cost function, C(w1, …, w13,002) = Σ(error). In other words, the objective is to select the best combination of w’s, [w1, …, w13,002], such that C(w1, …, w13,002) = 0 or is sufficiently close to 0.</p><p><strong>Minimizing Error</strong></p><p>To comprehend how backpropagation iteratively approaches a minimum for the cost function, let’s examine the process of finding a minimum for a single variable cost function. For instance, consider a cost function expressed as C(w) = Σ(error), where w represents the weight of a singular parameter in a neural network containing two nodes and one edge connecting the two. The summed error still represents the difference between the actual and expected output vectors from a labeled dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jjslZWJ-yPhnW3Dp.png" /></figure><p>To find the minimum of this cost function, we can use the second derivative test from calculus. First, we calculate the derivative of C(w), which tells us how the cost function changes as we adjust the value of w. Then, we calculate the second derivative, which indicates the curvature of the cost function. By evaluating the second derivative at a critical point (where the derivative equals zero), we can determine whether it corresponds to a local minimum or maximum. If the second derivative is positive, it means the cost function is “bowl-shaped,” and the critical point is a local minimum. With this local minimum value wmin, we can restructure our neural net using the value as the weight of the sole parameter to guarantee that the error of our model is minimized with respect to the training dataset.</p><p>Now, let’s extend this idea of single variable cost functions to the realm of multivariable functions. We can think of the gradient of the function, ∇C, as a generalization of the derivative to multivariable functions. Just as the derivative measures the rate of change of a function with respect to a single variable, the gradient provides us with a vector of partial derivatives that capture the rate of change with respect to each variable. Thus, the positive gradient of a function represents the direction of steepest ascent, indicating how the function increases with respect to each variable. In our case, by computing the negative gradient of the cost function, C(w1, …, w13,002), we can determine the direction of the greatest decrease in the cost function (minimizing the error). Thus, starting at the initial point [w1, …, w13,002], which was the random selection of parameters for our neural net, we can take a step in the direction of the negative gradient which leads to a new point (or new set of parameters) in which the cost function produces a smaller error output.</p><p>This specific process is iteratively implemented by a sequence of time steps until the error is sufficiently low. The final set of parameters, [w1, …, w13,002], can now be used as the weights of the network in our image recognition net, which has become a better predictor of images.</p><h3>So How Does This Work for Language?</h3><p>Extending the idea of neural networks to large language modeling, the training dataset for ChatGPT is sourced from snapshots of the entire internet captured between 2016 and 2019. This extensive dataset, extracted from a database known as Common Crawl, initially comprised a staggering 45 terabytes of data. To ensure high quality, a machine learning model filtered this dataset down to 570 gigabytes.</p><p>During the training process, the transformer’s neural networks allow the model to learn the complex structures of word embeddings, positional encodings, and value vectors. Through this iterative learning process, the final neural network outputs a probability distribution over the 50,257 possible tokens.</p><p>Transformers learn by a self-supervised method in which the model quizzes itself on a text dataset. It takes a segment of text, conceals certain words, and attempts to predict the missing words. Subsequently, the model unveils the actual answer and compares it with its own prediction. The resulting error is then used to accordingly adjust the weights, nudging them in a direction that minimizes the error. Since the model conceals certain parts of the text dataset on its own and the answers are inherently in the data, transformers do not require a manually labeled dataset (unlike image recognition datasets). This is critical to the success of the transformer as the self-supervised nature of the training allows these models to be trained on large text datasets from the open web.</p><h3>Final Thoughts</h3><p>Innovation in the Generative AI space seemingly compounds daily as the transformer model is specialized to new domains or improved at the infrastructure level every day. The remarkable success of the transformer can be attributed, in part, to the simplicity of its fundamental task: predicting the next word. Although simplistic, the transformer acquires intelligence by iteratively performing this task at extreme scale. In the process of learning to predict the next word with extreme accuracy, the model is learning our language, our culture, and our behavior at a really deep level and in ways we do not fully understand yet.</p><p>As these models continue to evolve, they will undoubtedly have a transformative impact across all sectors. These models will be fine-tuned to companies/industries and will be connected to scripts that automate their generation.</p><p>Generative AI will replace many current jobs, but the transformer will not replace workers. Rather, the transformer will enhance the skill set of workers across all industries as their capabilities will 10x (or more) the efficiency of humans. However, going forward, research and innovation must focus on understanding the complexity of neural nets and using their structures to maximize their positive impact. The future of generative AI will be driven by understanding these complexities and using the intelligence to maximize human efficiency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23a4386d2749" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Tokenization of Open-Source Software: A New Era of Innovation and Rewards]]></title>
            <link>https://medium.com/coinmonks/the-tokenization-of-open-source-software-a-new-era-of-innovation-and-rewards-324f2c3570fe?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/324f2c3570fe</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[tokenization]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 07:53:16 GMT</pubDate>
            <atom:updated>2023-04-17T12:47:34.083Z</atom:updated>
            <content:encoded><![CDATA[<h3>Early Technology Business Models and The Dawn of Open Source</h3><p>The business models of the early days of the Internet were primarily focused on hardware and infrastructure. In the 1960s, companies like IBM and Hewlett-Packard sold large mainframe computers and associated infrastructure B2B or B2G. Sales were primarily one-time, and the source code executed by the hardware devices was proprietary in nature. Software was yet to become a business model and the general public was closed off to the code governing their machines.</p><p>During the 1970s, software became a business model when AT&amp;T began to sell licenses of its operating system, UNIX, to corporations. Anyone could purchase the software from AT&amp;T, but users could not modify it, and licenses on the software were protected by copyrights and other legal restrictions. AT&amp;T sold <a href="https://en.wikipedia.org/wiki/Version_6_Unix">Version 6 of UNIX</a> for $20,000 (equivalent to $100,717 in 2021<strong>).</strong></p><p>In the early 1990s, tech business models changed forever with the developments of Linux and the GNU project. Wanting a version of UNIX for his personal computer, Linus Torvald, a student at the University of Helsinki, sought to develop an operating system that could be freely ported to his personal computer. In 1991, Torval finished developing Linux and published it on the internet, making it the first notable version of open-source software that was freely downloadable and openly modifiable.</p><p>After its initial release, Linux was quickly adopted by users worldwide, who began adapting and modifying the software. Copyright law required modifications to be published, leading to an increasingly sophisticated Linux as users built on top of each other’s previous iterations. The community-driven development process led to the popularity of Linux as corporations began to develop around free software and open-source copyright laws. Companies like <a href="https://www.ibm.com/ibm/history/ibm100/us/en/icons/linux/transform/">IBM and HP</a> began to contribute and new distributions of Linux, such as Redhat and Suse, were formed which made Linux more accessible to users and diversified the Linux application set to contain a wide range of software and hardware solutions.</p><p>Today, Linux is over <a href="https://truelist.co/blog/linux-statistics/">27.8 million</a> lines of code, powers over 85% of smartphones, and powers 96.3% of the world’s top one million servers. The small open-source project started by a Finnish student and anonymously contributed to by community members across the globe grew into one of the largest software development movements of all time that revolutionized computing and software business models forever.</p><h3>What is Open Source and the Second Order Effects of Free Software</h3><p>Open Source software is code that anyone can access, modify, and distribute. Open source is governed by licenses that often include “<a href="https://opensource.guide/legal/">copyleft</a>” or other legal restrictions requiring developers that modify the source code to publish their changes. This keeps open-source software available to all and fosters innovation as software becomes composable and community members collaborate and improve on other people’s work. Some of the largest open-source projects today include Linux (operating system), Python (programming language), Apache (Web server software), and Mozilla Firefox (web browser).</p><p>The rise of open source and the composability of software has led to a rapid pace of technological innovation. Open-source software projects has provided new startups with the necessary tools to build highly specialized software solutions with low effort and cost. Companies today no longer need to reinvent the entire software stack or maintain their own servers. Rather, companies can leverage existing open-source infrastructure to build out the majority of their applications and spend their r&amp;d budget on further specializing their software solutions. Today, over 80% of the code in modern applications is open-source. Free, open-source development libraries like Python (programming language), VS Code (development environment), front-end framework (React.js), database (MySQL), and web framework (Django) provide developers with the necessary tools to build web applications for free. This accessible infrastructure has inspired innovation by lowering the barriers to entry in technology and has enabled startups to quickly ​​bring new software products to market.</p><h3>The Current State of Open-Source</h3><p>What is currently missing from the open-source model is a framework in which contributors are economically rewarded for the value that they create. Monetizing open source has long been difficult as the core pillars of the movement are free information sharing and community building. Today, the majority of economic rewards from open-source projects are second-order and mainly funneled to corporations that sell products and services that benefit from the free development model. For example, the increasing sophistication of Linux software directly benefits Google as the software is the underlying technology behind Android and ChromeOS. While Google and other major corporations donate millions to fund open-source projects, only a small fraction of the 30 million<strong> </strong>open-source projects on Github receive the necessary funding and incentives to attract developers. Today, the open-source community and its software projects are responsible for creating immense value through technology, however, the majority of contributors remain excluded from the economic benefits of their creations.</p><h3>The Future of Software is Tokenized</h3><p>The promise of Web 3 is to reinvent the Web and the traditional information network by decentralizing and financializing applications. The unique value proposition of applications on Blockchains, as compared to traditional software platforms, is that the software is tokenized and equipped with a native economy that incentivizes participation and contribution. Through tokens, Web 3 applications create strong economic incentives for developers and early users to participate in and contribute to the network. By holding tokens, developers and early users have a vested interest in the success of the network, as the value of their tokens is directly tied to the success and adoption of the platform. This creates a powerful economic flywheel in which core contributors are economically rewarded for growing the network. As more developers and early adopters are incentivized to contribute, the network effects of the application become stronger, further driving up the value of the token and incentivizing more developers and early users to contribute.</p><h3>Tokenizing Open-Source Through Blockchain — Economically Aligning Core Contributors to Curate User Value</h3><h4>Blockchains, The First Examples of Tokenized Software</h4><p>The invention of Bitcoin in 2008 marked the first decentralized payment protocol that was embedded directly into the open-permissionless Web. The open-source nature of Bitcoin made the network accessible to developers worldwide, who could examine the code to validate its security, suggest improvements, or fork the software, leading to a community-driven development process much like other open-source projects. However, the presence of the Bitcoin network’s native token, BTC, was instrumental to the network’s growth as the token economically aligned and rewarded developers, early users, and network validators. Incentivized by the potential of future growth of the BTC token, network participants joined the Bitcoin network and added value through network activity. This combination of open-source code and a token-based economic framework unified the community and allowed Bitcoin to rapidly scale its developer and active user counts.</p><p>The vision of Web 3 and programmable Blockchains, such as Ethereum, is to make this economic and open framework general-purpose across the open-permissionless Web. Ethereum is a fully open-source distributed compute platform that enables developers to construct decentralized and publicly readable applications on top of a financialized compute infrastructure. Like centralized cloud computing platforms such as AWS or Google Cloud, Ethereum is a virtual machine where developers can build and deploy applications. However, Ethereum is decentralized and different from traditional cloud computing platforms because it is governed by the Ethereum token, ETH, and features fungible/non-fungible token standards (ERC-20 and ERC-721) that allow developers to equip their applications with their own token. With over 5,000 developers currently building applications on Ethereum, the general-purpose blockchain has spurred an entire era of innovation as developers have built highly-scalable software platforms equipped with tokens. The tokenized nature of the software has led to these platforms experiencing rapid user adoption and community-driven development efforts.</p><h3>A Tangible Solution to the Open-Source Dilemma, Tea.xyz</h3><p>Blockchain and token economic frameworks present an opportunity to solve the collaboration and monetization problems that currently restrains open-source communities. Puerto Rico-based corporation, Tea.xyz, is developing a first-of-its-kind decentralized system for fairly remunerating open-source developers based on their contributions to the entire ecosystem. The company’s mission is to empower open-source communities by introducing token incentives to package management.</p><p>The Tea blockchain, equipped with a reputation system and an immutable decentralized registry, will be the backbone of Tea. This system is designed to distribute value to developers based on their contribution to the ecosystem’s utility and health. Tea’s promise goes beyond being a simple package manager; it will be a “universal” package manager, a universal interpreter, and a virtual environment manager equipped with a registry and economic framework to track and reward open-source contributions.</p><p>In the future, contributors to open-source projects will benefit economically whenever software packages are imported to build new projects. Whenever a new web application is built with the majority of the software being open-source libraries, the core contributors to the underlying software can be economically rewarded for the value they are creating through the second-order products and services. Tea’s combination of tools, information, and rewards will incentivize developers to contribute to open-source and build the next generation of software.</p><h3>Final Thoughts</h3><p>While the open-source industry has greatly benefitted from big tech investment, the misalignment of economic incentives has stagnated the potential of open-source and software more broadly. Web 2 software platforms are extremely difficult to scale and extract economic value from in a way that is not harmful to end-users. Platforms like Uber, Reddit, Google, Twitter, and other information networks, lack an economic framework that scales proportionally to the networks value. In turn, these networks are extremely capital intensive and require large upfront investments to recruit users and develop the network. In the early days of these platforms, users have no incentive to join the network as the value of the platform is dependent upon the contributions of other users. For example, Uber has no value without drivers and drivers won’t drive without riders. However, as investments in the network allow it to scale, more and more users join the network and its value grows exponentially. At scale, these networks are monetizable through advertisements, small fees, or other methods of extracting value from user data. Shareholders profit immensely yet early users that helped scaled the network are left unrewarded. The early drivers on Uber and the initial content creators on Reddit did not benefit for the immense value they added to the platforms by being early adopters. By introducing economic frameworks into networks, core contributors are incentivized to join and add value. The future of networks and open-source projects will be governed by tokens that economically align contributors to maximize network value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=324f2c3570fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/the-tokenization-of-open-source-software-a-new-era-of-innovation-and-rewards-324f2c3570fe">The Tokenization of Open-Source Software: A New Era of Innovation and Rewards</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Mathematics Behind Crypto Transactions]]></title>
            <link>https://medium.com/@aidanpak/the-mathematics-behind-crypto-transactions-c028945bc09b?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c028945bc09b</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[public-private-key]]></category>
            <category><![CDATA[ethereum-blockchain]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Fri, 07 Apr 2023 15:51:49 GMT</pubDate>
            <atom:updated>2023-04-07T15:51:49.901Z</atom:updated>
            <content:encoded><![CDATA[<p>A quick warning, this article is fairly technical. It is best to have an elementary understanding of how the blockchain works before reading. This <a href="https://www.bloomberg.com/features/2022-the-crypto-story/?leadSource=uverify%20wall#keys-coins-drive-dump">Bloomberg</a> article is an excellent primer on blockchain technology. With that forewarning out of the way, let’s dive into how private keys allow individuals to be the sole possessors of their assets.</p><p><strong>Example Ethereum Transaction From Wallet A to Wallet B</strong></p><pre>address A = 3685cf9da3eb23c3c82c23cde008b30e6b822fb2ccfe5a27c1ac596bc99450fd:27<br>address B = 1FWQiwK27EnGXb6BiBMRLJvunJQZZPMcGd</pre><p>In the Ethereum transaction below, address A sent 0.14367159 BTC to address B. The large alphanumeric strings you see assigned to the variable address A and address B are blockchain addresses. These strings are completely unique and function as the ‘username’ of the wallet. The blockchain address is also ‘essentially’ a shortened version of the public key. The public key is a large alphanumeric string that is mathematically derived from the private key. More specifically, the public key is derived by inputting the private key into a specific, one-way, cryptographic function. The reason why a shortened-version of the public key (blockchain address) is used as the ‘username’ of the wallet rather than the public key itself is for readability. However, thinking of a blockchain address as essentially the public key is appropriate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mbMyH76Jyg-gePsH" /></figure><p><strong>Wallet Generation</strong></p><p>When blockchain address A was instantiated, the first step was to generate the private key. Using a random number generator, Ethereum software selects a number from the set [1, 2²⁵⁶]. 2²⁵⁶ is an incredibly large number, pronounced 115 <a href="https://keys.lol/">quattuorvigintillion</a>… The private key, call it k (k is an integer), is inserted into the equation, <strong>K = k * G</strong>, where G is a generator point of the form (x,y). The output is a unique K, of the form (x,y), in which just one of the coordinates in the (x,y) pair is then assigned to the public key, establishing the public-private key pairing.</p><p>The critical aspect of the equation, <strong>K = k * G </strong>is that it’s not typical multiplication. Rather, the operation ‘*’ is known as elliptic curve point multiplication. This one-way (irreversible) operation is done over the specific curve: <em>y </em>²<em> = ( x</em>³<em> + 7 ) over the field of prime numbers ( 𝔽 p ). </em>While the entire explanation of why elliptic curve multiplication is irreversible is out of scope for this article (full explanation: <a href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">here</a>), it is a critical aspect of cryptography and hence the secrecy of the public, private key pairing. Specifically, using an irreversible function to generate the public, private key pairing allows for the public key (output of the function) to be publicly available and confidently used as the public blockchain address without the fear of a private key (input) being mathematically computable with the exception of brute force.</p><p><em>Side Note on Irreversibility</em></p><p>If you want to better understand irreversibility, take a look at an example of another irreversible function, Modular arithmetic. It is defined: <strong>r = x mod n</strong>, where r = the remainder of x divided by n. (e.g: 10 mod 3 = the remainder of 10/3, which equals 1) or (e.g :14 mod 2 = the remainder of 14/2, which equals 0). Modular arithmetic is irreversible since given an output; there is no mathematical operation/algorithm to solve for the input besides guess and check. For example, take the function: <strong>r = x mod 3</strong>. If I were to tell you that “r=1”, then there would be no way to determine the exact value of x. The value of x could be 4, 7, 10, 13, and so on to infinity. (4 mod 3 = 1, 7 mod 3 = 1, 10 mod 3 = 1). This is significant because imagine if the equation was instead <strong>PubKey = PrivKey mod 3</strong>. The PubKey variable can be used as a ‘username’ of a wallet and thus exposed to anyone, and the PrivKey variable ‘secret key’ can be used to generate the public key, but the private key would not be inferrable via a reverse operation. While Elliptic curve cryptography is much more complex than modular arithmetic, the property of irreversibility similarly holds.</p><p><strong>Transactions</strong></p><p>So now that we have established wallet generation and the process of creating a public, private key pairing, the intuitive question is how this cryptographic encryption mechanism enables transactions without a central intermediary facilitating the transaction? The process is similar to going to a bank and transferring funds to another party. In order to do so, the bank would need to verify that you are, in fact, the owner of the account and are approving the transaction to send funds to the recipient account. In a crypto transaction, these same criteria are satisfied via mathematical proof. More specifically, the owner of a blockchain address can propose a new transaction by using the private key to cryptographically prove they are, in fact, the owner of the wallet and are therefore approving a new transaction.</p><p>When a new transaction is proposed to the network, the request must contain a transaction message (ie: ‘address 1 paid address 2 x amount’) and a digital signature. A digital signature for a specific public key is the given output when inputting the private key into a ECDSA, a one-way cryptographic function. The digital signature serves as a mathematical proof of ownership since it can only be created by using the private key. Thus, whenever a transaction is accompanied by a digital signature, it is possible to verify that the individual who proposed the new transaction does in fact know the private key and hence “owns” the wallet.</p><p>An overview of the process is shown in the top of the graphic below (ignore SHA-256 for now), but essentially, a transaction message (ie: Person A paid Person B 3 Bitcoin) is encrypted by using the private key in the ECDSA equation to generate a digital signature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r-8gyc0SqZB1oLRM.png" /></figure><p>This transaction is thus verifiable (bottom of graphic) since anyone can prove the transaction’s validity by calculating two results. 1. The result of running SHA-256 on the transaction message. 2. Decrypting the digital signature using the public key. If these two results match, then the verifier can mathematically prove the individual who created the digital signature owns the private key without the individual ever needing to expose the private key itself.</p><p>Let’s walk through the process in a little more detail through an example. First, we will generate an example public, private key pairing with elliptic curve multiplication (points along curve)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JUSAQS4W81plEkcs" /></figure><p>For simplicity, we will now refer to the public key as ‘Person A’. Now that we have the public, private key pairing for our blockchain address, the first step in the transaction process is to run the transaction message through SHA-256. SHA-256 is a hashing function, which is defined as a “mathematical process that takes input data of any size, performs an operation on it, and returns output data of a fixed size.” Hash functions are a peculiar mathematical phenomena in which the input is extremely hard to guess from the output. This is because the output is always of fixed length and is pseudorandom compared to the input.</p><p>Notice the difference between the two hashes below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*waL8GYfpM5_Rd2W6" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ih1pYAlosYBKxCgW" /></figure><p>Despite the messages only differing by the casing of ‘B’, the outputs are extremely different. This property is critical during the verification process as it ensures that the original message is not manipulated in any way. If the transaction was not hashed, an individual could simply change the transaction message to say something else after the digital signature is created, and the verification of the transaction would still hold.</p><p>Now that we have the public, private key pairing and the hashed message, the next step is to generate the digital signature. The hashed message and private key are plugged into the cryptographic function, ECDSA signing algorithm: <strong><em>signature </em>= k^(-1)∗ (hash+r∗privKey) (mod n)</strong></p><p>[ignore k and r, essentially random-generated numbers with a little more math involved]</p><p>Below is an example signature:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*81QBAY3yWmqdbqpx" /></figure><p>The ‘signature value’ was generated by taking the message, running SHA-256, then plugging the value of the hashed message, private key, k, and r, into the ECDSA signing algorithm.</p><p>Now the transaction is ready to be submitted to the network and the data will specifically include 1. the original transaction message and 2. the digital signature.</p><p>In order to verify the validity of the transaction and that person A is in fact the owner of the private key, a network validator could run the ECDSA verification algorithm. This process decrypts the digital signature using the public key and compares that result to the output of running the transaction message through SHA-256.</p><p>Result 1 — Hashed Message, ie: SHA-256 on ‘Person A paid Person B 3 Bitcoin’</p><pre>Result 1 = be188d100d77c431def6911727ea6f98336c0142bbddca7845af6cc76b40648d</pre><p>Result 2 — ECDSA Verification Algorithm (Process of decrypting digital signature using public key)</p><pre>Digital Signature = 304502200f12a3f9a82f4da2a78a55f22d3549262093a4b52897279ce94749d6f9f6d615022100ce2366ddc086d81f05b416c8ce2d1ecea73bb0fd8afe59dab2e3c10031e2a34d<br>s1 = digital signature-1 (mod 257)<br>R&#39; = (hash * s1) * G + (r * s1) * pubKey<br>Result 2 = x coordinate of R<br>Result 2 = be188d100d77c431def6911727ea6f98336c0142bbddca7845af6cc76b40648d</pre><p>Notice that Result 1 == Result 2, and from this information, one could mathematically verify that the initiator of the transaction does in fact know the private key and is thus the wallet owner. Using this method, a network validator can thus approve the transaction and submit the exchange to the Blockchain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c028945bc09b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Thoughts on the FTX Collapse and a Technical Explanation of Custodianship]]></title>
            <link>https://medium.com/coinmonks/my-thoughts-on-the-ftx-collapse-and-a-technical-explanation-of-custodianship-4b6c9b794ca1?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b6c9b794ca1</guid>
            <category><![CDATA[private-key]]></category>
            <category><![CDATA[crypto-exchange]]></category>
            <category><![CDATA[ftx]]></category>
            <category><![CDATA[ecdsa]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Tue, 15 Nov 2022 17:29:37 GMT</pubDate>
            <atom:updated>2022-11-16T05:19:45.306Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Sordid Details Behind the FTX Downfall</strong></p><p>Many deemed last week’s news regarding FTX to be the most shocking turn of events ever within the wild crypto industry. In just under a year, FTX International went from raising $400 million at a $32 billion valuation, to filing for bankruptcy. Sam Bankman-Fried is the founder of crypto exchange, FTX, and quantitative trading firm, Alameda Research. In just one <a href="https://cryptoslate.com/sam-bankman-frieds-net-worth-fell-93-in-1-day-loses-billionaire-status/">day</a>, Bankman-Fried’s net worth fell from $16 billion to $991 million. The supposed crypto golden-boy, dropped from the top of the industry to a soon-to-be-jailed-pariah.</p><p>The story of the unexpected collapse began in July 2022 with <a href="https://www.nytimes.com/2022/11/08/technology/binance-ftx-deal-crypto.html#:~:text=the%20industry&#39;s%20volatility.-,Binance%2C%20the%20world&#39;s%20largest%20cryptocurrency%20exchange%2C%20said%20it%20had%20reached,the%20edge%20of%20another%20meltdown.">Binance</a>, the world’s largest crypto exchange and early investor in FTX, selling its stake in the company. The $2.1 billion deal was done in cash and FTT token, the exchange token for FTX. The separation appeared to be a logical parting of ways for rival firms as FTX had quickly grown to a prominent competitor. In 2021 alone, privately-held, Bahamas-based, FTX <a href="https://www.businessofapps.com/data/ftx-statistics/#:~:text=FTX%20made%20%24388%20million%20net,than%20it%20made%20in%202020.">reported</a> $388 million in net income, up from $17 million the prior year.</p><p>The heat on FTX began to ramp up in early November when a leaked balance sheet of Bankman-Fried’s trading firm, Alameda Research, revealed that the FTT token “<a href="https://capital.com/alameda-ftt-holdings-sbf-trading-collateral">dominated</a>” the firm’s assets and the token was used as collateral in its high-risk crypto lending business. While there was nothing inherently illegal with Alameda’s possession of FTT, the situation included to an unusually close relationship between Bankman-Fried’s crypto exchange and trading firm. Appearing to have more information into the relationship, On November 6, Binance CEO Changpeng Zhao revealed his plans to liquidate the firm’s FTT holdings. Zhao <a href="https://twitter.com/cz_binance/status/1589283421704290306?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1589283421704290306%7Ctwgr%5E0f1d6141cbe3571e7638d6dbb2defc4548418ba7%7Ctwcon%5Es1_c10&amp;ref_url=https%3A%2F%2Fcointelegraph.com%2Fnews%2Fftx-and-binance-s-ongoing-saga-everything-that-s-happened-until-now">tweeted</a>, “due to recent revelations that have come to light, we have decided to liquidate any remaining FTT on our books.” In the following 72 hours, a firesale on FTT caused the value of the token to plummet <a href="https://coinmarketcap.com/currencies/ftx-token/">~80%</a>.</p><p>During this time, FTX was experiencing a major bank run of their exchange as users attempted to withdraw $5 billion of the total $16 billion of customer assets. For FTX, the run on customer withdrawals should not have been a major issue from a liquidity perspective. As quoted in a <a href="https://www.wsj.com/articles/ftx-tapped-into-customer-accounts-to-fund-risky-bets-setting-up-its-downfall-11668093732?mod=hp_lead_pos5">WSJ</a> article covering the story, “an exchange really shouldn’t have problems getting its customers their deposits,” said Frances Coppola, a U.K.-based economist. “It shouldn’t be doing anything with those assets. They should literally be sitting there so people can use them.” However on November 10, FTX paused customer withdrawals hinting at major liquidity concerns. Then in an investor meeting, Bankman-Fried <a href="https://www.wsj.com/articles/ftx-tapped-into-customer-accounts-to-fund-risky-bets-setting-up-its-downfall-11668093732?mod=hp_lead_pos5">revealed</a> that “FTX lent billions of dollars [$10 billion] worth of customer assets to fund risky bets” by Alameda Research. Lending customer assets without consent is highly illegal, according to U.S <a href="https://www.cnbc.com/2022/11/13/sam-bankman-frieds-alameda-quietly-used-ftx-customer-funds-without-raising-alarm-bells-say-sources.html">securities law</a>, and directly goes against FTX’s terms of service which state, “none of the Digital Assets in your Account are the property of, or shall or may be loaned to, FTX Trading; FTX Trading does not represent or treat Digital Assets in User’s Accounts as belonging to FTX Trading.”</p><p>On November 11, FTX and Alameda Research filed for Chapter 11 Bankruptcy. The story does not end here however, as just one day after, FTX <a href="https://www.cnn.com/2022/11/12/business/ftx-hack#:~:text=Elliptic%20said%20although%20the%20theft,Miller%20said%20in%20a%20tweet.">confirmed</a> a hacker stole roughly $473 million in assets. Bankman-Fried also stepped down as CEO and <a href="https://www.cnn.com/2022/11/13/business/ftx-bahamas-criminal-investigation#:~:text=Authorities%20in%20The%20Bahamas%20are,is%20headquartered%20in%20The%20Bahamas.">FTX</a> is now under criminal investigation.</p><p><strong>My Thoughts on the Collapse: What Does it All Mean for The Crypto Market</strong></p><p>Following the collapse of FTX, the crypto market tanked as Bitcoin (BTC) fell 22% over a 7 day period. The price of BTC hit a 2 year low at around $15,700 and the rest of the market followed suit as the entire crypto market cap fell about 10%.</p><p>The lack of visibility into centralized exchanges and the failure to protect investors calls directly to the SEC to regulate the crypto industry. In the past, the collapses of the ICO bubble, Voyager Digital, Celsius, 3 Arrows Capital, Blockfi, and now FTX, show similarities to the 2008 financial crisis. At the time, credit default swaps were largely unregulated and the negligent lending policies and lack of clear visibility into banks fueled the crash of the market. Similar to 2008, the lack of visibility into centralized companies calls for regulation and the necessity for the SEC to require audits of centralized exchanges and the necessity to show proof of reserves.</p><p>While blockchain is a revolutionary technology with <a href="https://www.linkedin.com/pulse/introduction-web-30-technology-can-revolutionize-internet-aidan-pak/?trackingId=6NPE%2FYEMRuihCr8e8rS5tA%3D%3D">similarities</a> to the invention of the internet, the collapse in investor confidence could have massive ramifications going forward. The upside of investing in cryptocurrency is that the largest pools of capital in the world are still unexposed to the market. The absence of clear policy and a spot crypto ETF leaves hundreds of trillions of dollars of institutional capital on the sidelines. (Total crypto market cap is currently around $800 billion). Clear policy and regulated securities present the opportunity for an allocation of institutional money along with the millions of retail investors waiting for properly regulated crypto securities.</p><p>However, I believe that the crypto collapse further postponed industry-wide institutional investment and a spot ETF for the exact reason why FTX was vulnerable. At its core, crypto was meant to be owned by the individual and time and time again, custodial, centralized crypto companies fail to properly protect investors’ assets. While a spot ETF would allow investors to expose themselves to cryptocurrency without needing to hold the asset themselves, the centralized entity offering the ETF would need to overcome the technologically-difficult challenge of storing cryptocurrency. The lack of clear visibility and security challenges presented by this new form of custodianship presents a strong argument for crypto skeptics against short-term recovery. In the long run however, regulation and proper security measures could present the opportunity for the next crypto bull run.</p><p><strong>The Problem With Cryptocurrency is the Same Reason It Has Value</strong></p><p>So you may be wondering: why was FTX able to manipulate customer funds, how were hundreds of millions of dollars stolen, and what does it mean to own crypto in the first place? Well the problem with cryptocurrency is the same reason it has value. Tokens are the first form of fully digital property in which users have sole possession over their assets. Owning a token on a blockchain network is extremely different from storing digital funds in a bank. When a user deposits funds in a bank, the user is beholden to the central intermediary that controls the system. Banks could refuse customer withdrawals or lend user funds to other parties. Cryptocurrency is valuable because on a blockchain network, ownership of tokens is controlled solely by the user and is not beholden to any central authority.</p><p>On a technical level, owning cryptocurrency is a revolutionary mathematical advancement that can be difficult to fully comprehend. At its core, a blockchain is a digital ledger that tracks transfers of tokens between blockchain addresses (wallets). The blockchain is maintained by a network of validators, independently owned computers that keep track of and update the state of the system. These independent actors each store a copy of the ledger and constantly communicate to synchronize the records they have stored. Blockchains utilize consensus protocols consisting of mathematical proofs to ensure the validity of the ledger and that the bad intentions of anonymous network participants do not affect the network. This allows blockchains to store public, verifiable, immutable information without relying upon a central authority to maintain/update the state of the network.</p><p>Although tokens are simply data, owning cryptocurrency is not the same as storing data on a traditional server. Crypto assets are not stored on your computer or some central location, in fact the data that is a token is not stored in any singular server. Rather, the data stored on each individual copy of the ledger is simply the history of token transfers between blockchain addresses. Ownership of cryptocurrency is simply when a token was last transacted to a particular blockchain address and an individual has the necessary ‘key’ to control that address. This implies that ownership is individualistic and directly tied to controlling this ‘key’.</p><p>This mechanism of ownership is dictated by a form of public, private key encryption known as Elliptic Curve Cryptography. Whenever a new blockchain address is instantiated, a cryptographically generated 256-bit number known as the private key is created in association with that address. This key functions similarly to a password and allows the owner to be the sole possessor of their blockchain address as the only way to transact tokens is to know the private key.</p><p>Further detail into the mathematics of how private keys prove ownership of blockchain addresses is explained in the addendum of this article, but for now, the important point of note is that this mechanism of owning digital property through a private key is an entirely foreign concept. Since tokens are not stored in any singular location and thus not beholden to the authority of a centralized entity, users can now indisputably own digital property (tokens). On social media networks, banking systems, and video game platforms, user data is not owned by the individual. Instead, the central authority that controls the network has the ability to manipulate the user’s property. Blockchains allows users to immutably own data without the chance of manipulation because there is no single owner of the network. However, the downsides of this system is that user’s are solely responsible for protecting their funds. Private keys need to be stored in secure, offline environments because exposure of this information will allow a malicious actor to falsely authenticate transactions and control one’s blockchain address.</p><p><strong>So How Was FTX Vulnerable</strong></p><p>Crypto exchanges like FTX, Coinbase, Binance, Kraken, Gemini, etc, essentially act like commercial banks. Although the main business of these centralized exchanges is to allow users to buy/sell assets, these platforms are similar to banks in that they store user’s funds. This presents an extremely difficult technological challenge to securely store customer’s private keys.</p><p>Unlike fraudulent banking transactions, blockchain transactions are irreversible. If your bank account was compromised and a malicious actor paid themselves thousands of dollars via a credit card, you could simply call your bank who could theoretically take steps to revert the transaction. Additionally, <a href="https://www.fdic.gov/resources/deposit-insurance/brochures/deposits-at-a-glance/#:~:text=The%20standard%20insurance%20amount%20is,in%20different%20account%20ownership%20categories.">FDIC</a> provides depositors up to $250,000 in insurance. In cryptocurrency transactions, there is no intermediary to revert fraudulent activity. If the private key of one’s blockchain address is compromised by a malicious actor, that malicious actor can now authenticate transactions on behalf of that address.</p><p>In the case of FTX, the exchange was storing private keys on behalf of customers. Having this information available, Bankman-Fried had the ability to do whatever he wanted with user’s assets. Furthermore, regarding the FTX hack, an individual must have infiltrated the company’s storage to gain access to customers’ private keys. With this sensitive information, the hacker would be able to generate transactions on behalf of those blockchain addresses and send themselves millions of dollars.</p><p><strong>So How Do Centralized Exchanges Store Your Private Keys</strong></p><p>Like storing any other form of sensitive data, the good crypto exchanges store your private keys in encrypted, offline storage. According to Coinbase, the company <a href="https://help.coinbase.com/en/coinbase/other-topics/legal-policies/what-does-coinbase-do-with-my-digital-assets">stores</a> over “98% of assets offline in secure, guarded cold storage facilities” (by assets, Coinbase is implying private keys). In theory, offline storage prevents web-based vulnerabilities since the storage is not exposed to the internet like traditional cloud data. However, the exchanges themselves are connected to the internet amongst other bridges to offline storage which presents opportunities for hackers.</p><p><strong>The Dilemma of Ownership and Safe Private Key Storage</strong></p><p>The original design of blockchain was intended so that individuals are the sole possessors of their assets. Private keys were not meant to be stored in a central server by a crypto exchange or government organization. The dilemma however is self-custodianship is a technological challenge and much like the early days of the internet, the new technology is difficult for users to work with. Exchanges like Coinbase are well-intentioned in that they aim to lower the technological barriers to entry by providing a Web 2 interface for Web 3. Signing up for a centralized exchange trades in the necessity to store your private key for a traditional username/password system.</p><p>In crypto, secure forms of ownership are individualistic and many products on the market offer this freedom. The two must-haves in any crypto wallet are the following.</p><p>1. The wallet must be “non-custodial”</p><p>Non-custodial implies that the creator of the wallet does not store the private keys for you. Instead, storing the private key in a secure manner is up to the individual.</p><p>2. The wallet must be “cold”.</p><p>A cold wallet, as opposed to a hot wallet, implies that the private key is stored in an offline environment. This prevents the key from being exposed to web-based vulnerabilities. Cold-storage wallets are capable of sending transactions to the blockchain without the private key ever needing to leave the safety of the cold storage.</p><p>The majority of wallets today that meet these two criteria are known as hardware wallets. These devices are essentially super-USBs and store the private key in an encrypted, offline environment. They allow users to ensure the security of their private key while still being able to engage in the Web 3 ecosystem. Prominent examples of hardware wallets are Ledger, Trezor, and NGrave.</p><p><strong>Addendum — The Mathematics Behind Crypto Transactions</strong></p><p>A quick warning, this section gets extremely technical. It is best to have an elementary understanding of how the blockchain works before reading. This <a href="https://www.bloomberg.com/features/2022-the-crypto-story/?leadSource=uverify%20wall#keys-coins-drive-dump">Bloomberg</a> article is an excellent primer on blockchain technology. With that forewarning out of the way, let’s dive into how private keys allow individuals to be the sole possessors of their assets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VYqzmwD_gnnrAEdJ" /></figure><p>Arbitrary variables for ‘from’ and ‘to’ address:</p><pre>address A = 3685cf9da3eb23c3c82c23cde008b30e6b822fb2ccfe5a27c1ac596bc99450fd:27<br>address B = 1FWQiwK27EnGXb6BiBMRLJvunJQZZPMcGd</pre><p>In the Ethereum transaction above, address A sent 0.14367159 BTC to address B. The large alphanumeric strings you see assigned to the variable address A and address B are blockchain addresses. These strings are completely unique and function as the ‘username’ of the wallet. The blockchain address is also ‘essentially’ a shortened version of what is known as a public key. The public key is a large alphanumeric string that is mathematically derived from the private key. More specifically, the public key is derived by inputting the private key into a specific, one-way, cryptographic function. The reason why a shortened-version of the public key (blockchain address) is used as the ‘username’ of the wallet is to make the tag easier to read. However, it is appropriate to think of a blockchain address as essentially the public key.</p><p><strong>Wallet Generation</strong></p><p>When blockchain address A was instantiated, the first step was to generate the private key. Using a random number generator, Ethereum software selects a number from the set [1, 2^256]. 2^256 is an incredibly large number with the beginning of its pronunciation being 115 <a href="https://keys.lol/">quattuorvigintillion</a>. The private key, call it k (integer), is inserted into the equation, <strong>K = k * G</strong>, where G is a generator point of the form (x,y). The output is a unique K, of the form (x,y), in which just one of the coordinates in the (x,y) pair is then assigned to the public key establishing the public, private key pairing.</p><p>The critical aspect of the equation, <strong>K = k * G</strong>, however, is that it’s __not__ typical multiplication. Rather, the operation ‘*’ is known as elliptic curve point multiplication. This one-way (irreversible) operation is done over the specific curve: <em>y </em>²<em> = ( x</em>³<em> + 7 ) over the field of prime numbers ( 𝔽 p ). </em>While the entire explanation of why elliptic curve multiplication is irreversible, is out of scope for this article (full explanation: <a href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">here</a>), it is a critical aspect of cryptography. The significance of using an irreversible function to generate the public, private key pairing is that this allows for the public key (output of the function) to be confidently used as the public blockchain address without the fear of a private key (input) being easily inferrable.</p><p><em>Side Note on Irreversibility</em></p><p>If you want to better understand irreversibility, take a look at another irreversible function, Modular arithmetic. It is defined: <strong>r = x mod n</strong>, where r = the remainder of x divided by n. (e.g: 10 mod 3 = the remainder of 10/3, which equals 1) or (e.g — 14 mod 2 = the remainder of 14/2, which equals 0). Modular arithmetic is irreversible since given an output, there is no mathematical operation/algorithm to solve for the input besides guess and check. For example, take the function: <strong>r = x mod 3</strong>. If I were to tell you that “r=1”, then there would be no way to determine the exact value of x. The value of x could be 4, 7, 10, 13, and so on to infinity. (4 mod 3 = 1, 7 mod 3 = 1, 10 mod 3 = 1). This is significant because imagine if the equation was instead <strong>PubKey = PrivKey mod 3</strong>. The PubKey variable can be used as a ‘username’ of a wallet and thus exposed to anyone, and the PrivKey variable ‘secret key’ would not be inferrable. While Elliptic curve cryptography is much more complex than modular arithmetic, the property of irreversibility similarly holds.</p><p><strong>Transactions</strong></p><p>So now that we have established wallet generation and the process of creating a public, private key pairing, the intuitive question is how does this cryptographic encryption mechanism enable transactions without a central intermediary managing the transfer? The process is similar to going to a bank and transferring funds to another party. In order to do so, the bank would need to verify that you are in fact the owner of the sending account and are approving the transaction to send funds to the recipient account. In a crypto transaction, these same criteria are satisfied by a mathematical proof. More specifically, the owner of a blockchain address (public key) can propose a new transaction by using the private key to cryptographically prove they are in fact the owner of the wallet.</p><p>When a new transaction is proposed to the network, the request must contain a transaction message (ie: ‘address 1 paid address 2 x amount’) and a digital signature. A digital signature for a specific public key is the given output when inputting the private key into a ECDSA, a specific cryptographic function. The digital signature serves as a mathematical proof since it can only be created by using the private key. Thus, whenever a transaction is accompanied by a digital signature, it is possible to verify that the individual who proposed the new transaction does in fact know the private key and has approved the new transfer of funds.</p><p>An overview of the process is shown in the graphic below (ignore SHA-256 for now), but essentially, a transaction message (ie: Person A paid Person B 3 Bitcoin) is encrypted by using the private key in the ECDSA equation to generate a digital signature.</p><p>This transaction is thus verifiable since anyone can prove the transaction’s validity by calculating two results. 1. The result of running SHA-256 on the transaction message. 2. Decrypting the digital signature using the public key. If these two results match, then the verifier can mathematically prove the individual who created the digital signature owns the private key without the individual ever needing to expose the private key itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZrsG0q-g13HqBuSdW1cs5w.png" /></figure><p>Let’s walk through the process in a little more detail through an example. First, we will generate an example public, private key pairing with elliptic curve multiplication (points along curve)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LdkcEzW5TGy6rQ2i" /></figure><p>For simplicity, we will now refer to the public key as ‘Person A’. Now that we have the public, private key pairing for our blockchain address, the first step in the transaction process is to run the transaction message through SHA-256. SHA-256 is a hashing function, which is defined as a “mathematical process that takes input data of any size, performs an operation on it, and returns output data of a fixed size.” Hash functions are a peculiar mathematical phenomena in which the input is extremely hard to guess from the output. This is because the output is always of fixed length and is pseudorandom compared to the input.</p><p>Notice the difference between the two hashes below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WeLqlvALrdhi5H_5" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nUwCjX9IoKZI-3e4" /></figure><p>Despite the messages only differing by the casing of ‘B’, the outputs are extremely different. This property is critical during the verification process as it ensures that the original message is not manipulated in any way. If the transaction was not hashed, an individual could simply change the transaction message to say something else after the digital signature is created, and the verification of the transaction would still hold.</p><p>Now that we have the public, private key pairing and the hashed message, the next step is to generate the digital signature. The hashed message and private key are plugged into the cryptographic function, ECDSA signing algorithm: <strong><em>signature </em>= k^(-1)∗ (hash+r∗privKey) (mod n)</strong></p><p>[ignore k and r, essentially random-generated numbers with a little more math involved]</p><p>Below is an example signature:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WY_BykvTbX82QRbx" /></figure><p>The ‘signature value’ was generated by taking the message, running SHA-256, then plugging the value of the hashed message, private key, k, and r, into the ECDSA signing algorithm.</p><p>Now the transaction is ready to be submitted to the network and the data will specifically include 1. the original transaction message and 2. the digital signature.</p><p>In order to verify the validity of the transaction and that person A is in fact the owner of the private key, one could run the ECDSA verification algorithm. This process decrypts the digital signature using the public key and compares that result to the output of running the transaction message through SHA-256.</p><p>Result 1 — Hashed Message, ie: SHA-256 on ‘Person A paid Person B 3 Bitcoin’</p><pre>Result 1 = be188d100d77c431def6911727ea6f98336c0142bbddca7845af6cc76b40648d</pre><p>Result 2 — ECDSA Verification Algorithm (Process of decrypting digital signature using public key)</p><pre>Digital Signature = 304502200f12a3f9a82f4da2a78a55f22d3549262093a4b52897279ce94749d6f9f6d615022100ce2366ddc086d81f05b416c8ce2d1ecea73bb0fd8afe59dab2e3c10031e2a34d<br>s1 = digital signature-1 (mod 257)<br>R&#39; = (hash * s1) * G + (r * s1) * pubKey<br>Result 2 = x coordinate of R<br>Result 2 = be188d100d77c431def6911727ea6f98336c0142bbddca7845af6cc76b40648d</pre><p>Notice that Result 1 == Result 2, and from this information, one could mathematically verify that the initiator of the transaction does in fact know the private key and is thus the wallet owner.</p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b6c9b794ca1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/my-thoughts-on-the-ftx-collapse-and-a-technical-explanation-of-custodianship-4b6c9b794ca1">My Thoughts on the FTX Collapse and a Technical Explanation of Custodianship</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Democratizing Big Data. An Introduction to Ocean Protocol and Decentralized Data Sharing]]></title>
            <link>https://medium.com/coinmonks/democratizing-big-data-an-introduction-to-ocean-protocol-and-decentralized-data-sharing-8a2c5adc1af3?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a2c5adc1af3</guid>
            <category><![CDATA[ocean-protocol]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Mon, 18 Jul 2022 13:39:40 GMT</pubDate>
            <atom:updated>2022-07-21T14:51:24.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VViuLZ-ZhkqV9vmRcr6XaA.png" /></figure><p>Artificial Intelligence is a transformative technology set to disrupt the majority of industries. AI is a field of Computer Science centered on the design of machines capable of solving problems that typically require human intelligence. AI-driven technologies automate laborious tasks, enhance human decision making, minimize errors, and identify key trends in complex data. In 2021, AI augmentation created over <a href="https://www.forbes.com/sites/sap/2020/03/09/the-power-of-artificial-intelligence-vs-the-power-of-human-intelligence/?sh=56c06922346c">$2.7 trillion</a> of business value and it is expected to replace <a href="https://builtin.com/artificial-intelligence/ai-replacing-jobs-creating-jobs">85 million</a> jobs by 2025.</p><p>However, the future of AI is constrained by a misalignment between innovators and those with the necessary resources to engage in big data initiatives. The Artificial Intelligence industry is severely privatized and it is dominated by cloud service providers and social media giants. The necessity for Big Data and scalable compute infrastructure create large barriers to entry that prevent the majority of innovators from engaging in bootstrapped development. While cloud services have supplied the masses with scalable compute resources, AI innovation is hampered by a lack of access to large, relevant, potentially sensitive datasets. What is currently missing is an economic framework in which data could become openly accessible to innovators and exchanged in a secure, ethical, and liquid environment.</p><p>According to a <a href="https://www.theguardian.com/news/datablog/2012/dec/19/big-data-study-digital-universe-global-volume">Digital Universe Study</a>, less than 1% of the world’s data is ever analyzed. Legal barriers, moral predicaments, and improper monetization channels discourage data giants from sharing/selling their data. Thus, today’s AI market leaders are AWS, IBM, and Google, or those with the necessary data to develop groundbreaking, deep learning models. While compute and algorithmic innovation have diversified Artificial Intelligence applications, the AI industry is underperforming its potential given Big Data constraints.</p><p><strong>Ocean Protocol</strong></p><p>Enter Ocean Protocol, a token-based decentralized network that aims to spread the benefits of Artificial Intelligence by democratizing Big Data. The goal of Ocean is to stimulate data sharing by offering proper incentive, control, and security structures on data services. At its core, Ocean Protocol is a blockchain-based data economy that connects providers (those with data) with consumers (AI innovators). Through tokenizing data services, the network opens monetization opportunities for Data Providers while preserving full control and privacy mechanisms. As a result, Ocean’s data economy offers AI innovators access to distributed, potentially sensitive datasets that would otherwise never be made available. Ocean leverages crypto tokens, decentralized service agreements, and access control infrastructure to assetize data services and curate a functional data economy.</p><p>Ocean Protocol’s core innovation is its Compute-to-Data feature, which allows AI innovators to run compute jobs without ever needing access to or visibility of raw data. More specifically, Compute-to-Data, a complementary technology to federated learning, allows innovators to train their models from private data without the raw information ever needing to leave the on-prem facilities of the data owner. The idea is to enable edge devices, such as smartphones, IOT devices, servers, etc. to work collaboratively on a shared machine learning model. Each device downloads the current state of the model, learns from it, and updates it without the raw data ever needing to leave the owner’s premises. This form of decentralized model training revolutionizes AI by bypassing the need to congregate sensitive data into one centralized source. Instead of navigating legal and privacy headaches, Compute-to-Data offers the necessary ownership and privacy structures to stimulate mass data sharing. This unprecedented access to raw data opens the possibility for AI Innovators to ethically construct revolutionary models from highly sensitive information such as genetics data, personal financial information, medical reports, and much more.</p><p>Ocean leverages the programmability and tokenization features of the Ethereum Blockchain to construct the backend of the data economy. Ownership of datasets is represented by non-fungible ‘Data NFTs’ and represent immutable copyright of a data asset. Providers then mint ‘Datatokens’ which represent the “right to access” a data service. Datatokens are fungible and are programmed to grant consumers perpetual, one-time, or Compute-to-Data access on a dataset. Since Ocean’s Datatokens are constructed with Ethereum’s fungible token standard, ERC-20, innovators can purchase Datatokens with cryptocurrencies and store them in traditional Web-3 Wallets. The minting, discovery, and sale of Datatokens is facilitated by a decentralized application (dApp) called Ocean Market which allows anyone with a Web-3 wallet to engage in the data economy.</p><p><strong>The Power of Compute-to-Data — Genetics Data Model Training</strong></p><p>As an example of how Ocean Protocol revolutionizes AI, imagine a medical research team has just developed a Deep Learning model specifically designed for genetics data. The traditional approach of congregating raw data to a single, centralized source would be impossible. Legal barriers regarding data privacy and transfer as well as the obvious economic barriers of purchasing highly sensitive data would prevent the research team from accessing the desired information. With Ocean Protocol, this form of data sharing is made possible through proper economic incentives and security features.</p><p>The process would start with genetics labs or other Data Providers minting their datasets on-chain as Data NFTs. These NFTs do not include the dataset itself but rather store metadata and are accompanied by a DID (a unique decentralized identifier). The Data Providers would then mint Datatokens (right to access tokens) and the research team would navigate the Ocean Market to purchase these Datatokens using a Web-3 wallet.</p><p>Once purchased, the research team would send the Datatoken to the Provider’s wallet and also send a request to engage in the given compute service. The Data Provider then performs a series of authentication steps on the research team’s Web-3 Wallet and Datatoken. These steps could include confirmation of payment to a smart contract address, signing of a service agreement, and verification of other credentials such as oracalized identity information. Once approved, the research team would then publish their algorithm as a DID and the consume process would begin.</p><p>The Data Provider would run the compute job completely on-prem utilizing the research team’s algorithm. The Provider would then upload the model output and execution logs onto an AWS S3 bucket. The URL to the S3 Bucket would then be shared with the research team and the smart contract would release payment to the Data Provider. The research team could then repeat this process with other Data Providers to fully train their model with the necessary sensitive genetics data.</p><p>At its core, Ocean’s decentralized token model is built to grow AI by incentivizing data sharing. Bruce Pon, founder of Ocean Protocol writes “data has immense value, but no one shares it because everyone’s scared to lose control. By creating a decentralized network where anyone can share safely, while keeping control and privacy, a new Data Economy can emerge.”</p><p>For the past decade, Artificial Intelligence has been changing the landscape of computing, both from a capability perspective and also in terms of infrastructure. These machines have become increasingly powerful and the demand for highly-scalable compute resources, Big Data, and powerful algorithms has never been greater. With effective data sharing technologies, the future of AI is limitless. With Ocean Protocol, data could become a liquid asset that allows both providers and consumers to benefit. For businesses, data centers can transform from a major expense item to a revenue stream while innovators can purchase data as a service. In the years to come, decentralized data sharing can contribute to new AI technologies that reduce energy emissions, identify genetic predispositions to cancer, and produce effective autonomous vehicles, amongst many more exciting innovations.</p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a2c5adc1af3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/democratizing-big-data-an-introduction-to-ocean-protocol-and-decentralized-data-sharing-8a2c5adc1af3">Democratizing Big Data. An Introduction to Ocean Protocol and Decentralized Data Sharing</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of NFTs is Much More Than $300,000 JPGs.]]></title>
            <link>https://medium.com/@aidanpak/the-future-of-nfts-is-much-more-than-300-000-jpgs-76920edeb696?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/76920edeb696</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[digital-currency]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[nft]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 17:52:33 GMT</pubDate>
            <atom:updated>2022-07-17T17:56:26.161Z</atom:updated>
            <content:encoded><![CDATA[<p>Originally published: March 28, 2022</p><p>Information has never been more accessible. The evolution of technology that is Web 2.0 has enabled users to effortlessly access and publish data to the internet. Centralized platforms have enabled the masses to become digital content creators by removing many of Web 1.0’s impediments to publication. Search engines have simplified the process of accessing information and social media has allowed for more expressive content and virality. However, Web 2.0 has failed to offer effective digital property rights to protect online content.</p><p>Watermarks, trademarks, and other forms of intellectual property have proven to be inadequate in the digital space as it is still extremely difficult for creators to properly monetize their work. Non-fungible tokens (NFTs) are a cornerstone technology of <a href="https://www.linkedin.com/pulse/introduction-web-30-technology-can-revolutionize-internet-aidan-pak/?trackingId=aqpikKJ3Qt6r3tvq1JfvSg%3D%3D">Web 3.0</a> that offer an entirely new mechanism of accessing, transferring, and owning data on the internet. In the next phase of the Web, NFTs will represent everything from video-game skins to medical records to Louis Vuitton bags.</p><p><strong>So What Are Non-Fungible Tokens?</strong></p><p>Twitter handles, Fortnite characters, and even this article belong to the centralized platforms on which they reside. At any moment, Twitter can revoke a username, Fortnite can take away hard-earned skins, and LinkedIn can delete online content. <strong>Non-fungible tokens</strong> (NFTs) are unique, programmable, certificates of digital ownership that reside on a Blockchain. Any digital file can be turned into an NFT: images, videos, text files, songs, tickets, or even digital deeds to physical objects like a car, a handbag, a pair of sneakers, or diamond jewelry. NFTs are essentially representations of an asset on the internet, but due to these assets residing on decentralized virtual machines (blockchains), these digital assets can be verifiably owned, uniquely identified, and a transactable unit of exchange. In 2021 alone, the NFT market generated over <a href="https://markets.businessinsider.com/news/currencies/nft-market-41-billion-nearing-fine-art-market-size-2022-1">$41 billion</a> in trading volume.</p><p>The most well-known and integrated use case of NFTs is digital artwork. Beeple, a widely renown digital artist, has made a career selling his artwork via NFTs. His biggest sales include <a href="https://www.one37pm.com/nft/art/beeple-everydays-the-first-5000-days-auction-nft#:~:text=Mike%20Winkelmann%2C%20aka%20the%20digital,history%20of%20Christie&#39;s%20Auction%20House.">Everydays: The First 5000 Days</a> which sold for $69 million and <a href="https://www.christies.com/features/Beeple-gets-real-with-human-one-11940-7.aspx">Human One</a>, a physical piece accompanied by an NFT, which sold for $28 million. <a href="https://www.forbes.com/sites/nicolesilver/2021/11/02/the-history-and-future-of-nfts/?sh=20d326716a16">Michael John Peters</a>, who has been working in fine arts for over a decade, explains that it is “easy to fake certificates of authenticity or replicate art. […] NFTs provide an iron clad indestructible proof of ownership along with provenance that will last for eternity. In the future every painting, both digital and physical, will have a NFT attached to it.”</p><p><strong>How Do NFTs Work? And What Does the Blockchain Have to Do with NFTs?</strong></p><p>Blockchainsare entirely-public, decentralized virtual machines that track the movement and ownership of tokens. They are essentially virtual computers that store and update information regarding the digital history and transfer of tokens between public addresses (wallets). Unlike traditional servers, Blockchains are inherently <a href="https://onezero.medium.com/why-decentralization-matters-5e3f79f7638e">decentralized</a> which is a critical aspect to the security and trust of a digital ownership system. A centralized platform can crash at any moment and a central authority can manipulate the state of the data. A Blockchain, however, does not have a single point of failure and instead utilizes <a href="https://www.calebandbrown.com/blog/the-game-theory-of-cryptocurrency#:~:text=Game%20theory%20is%20a%20fundamental,the%20reliability%20of%20distributed%20databases.">game-theoretic</a> economic incentives to allow for a network of participants to maintain the integrity of the data. Blockchains employ mathematical proofs in the form of <a href="https://www.coinbase.com/learn/crypto-basics/what-is-cryptography">cryptography</a> that ensure the validity of new information provided by network participants as well as the immutability of historical data. If a traditional server was used to maintain a ledger for a digital currency or NFT platform, the central authority would have ultimate power and the ability to control and manipulate user assets. A cryptographic, decentralized network provides users with trust in the long-term security of their assets as well as the ability to verifiably claim and transact digital property all within a public, peer-2-peer network.</p><p>Blockchains maintain and update token ownership by bundling transactions into cryptographically immutable blocks. Blockchain tokens are divided into two main groups: <a href="https://cointelegraph.com/nonfungible-tokens-for-beginners/fungible-vs-nonfungible-tokens-what-is-the-difference">fungible</a> and non-fungible tokens (NFTs). The key difference is that every NFT is uniquely identified and valued, whereas fungible tokens, like Bitcoin for example, are interchangeable and are of equal value. All tokens are owned by a particular public address (wallet), provide a complete digital history, and can be exchanged between network participants.</p><p>NFTs have value due to the cryptographic mechanisms of the Blockchain that allow users to indisputably claim digital property. Through <a href="https://www.preveil.com/blog/public-and-private-key/">public, private key encryption</a>, owners of an asset can cryptographically prove they are the rightful owner of a wallet and thus have the right to transact any digital asset owned by that public address. Without getting overly technical, when a wallet is instantiated on a Blockchain network, owners of the wallet are provided a cryptographically-generated private key which is used to create <a href="https://www.coinbase.com/cloud/discover/dev-foundations/digital-signatures#:~:text=Digital%20signatures%20are%20a%20fundamental,other%20users%20from%20spending%20them.">digital signatures</a>. These cryptographic signatures allow the owner of a wallet to dictate new transactions while specifically allowing the rest of the network to validate the user as the rightful wallet owner. Since digital signatures are completely unique and can only be generated with the private key, network validators can mathematically verify the user without ever having to see the private key. The significance of public, private key encryption in the case of NFTs is that this mechanism does not rely upon a central authority to maintain a book-entry model but still allows individuals to own and transact digital property.</p><p>Lastly, NFTs present an entirely new form of intellectual property through the programmability of the Blockchain. On a <a href="https://www.forbes.com/sites/matthougan/2020/07/13/why-ethereum-has-valuethe--opportunity-in-programmable-money--defi/?sh=61c3a4124818">programmable</a> Blockchain, token transactions are dictated through smart contracts, which are essentially self-executing software programs that function similarly to “if-else” statements. Smart contracts are dictated completely by code and are guaranteed to run when a predefined set of conditions are met. These software programs are essentially wallets in that they can send and receive tokens and allow tokens to contain certain agreements and perform certain functions. For example, many NFTs pay a 5–10% royalty to the original creator on all secondary sales. The token itself is wrapped in a smart contract whose logic dictates the automatic payment of a portion of each secondary sale to the initial public address that minted the asset. The decentralized verification process of the Blockchain ensures that these contracts are immutable and were properly agreed upon by all involved parties. In other instances, smart contracts allow NFTs to be collateralized in a loan, lent out to another Blockchain address and pay interest, or even to be used as a method of identification on a Web 3.0 app.</p><p><strong>Disruption Opportunities Across All Industries</strong> <strong>The Metaverse</strong></p><p>The Metaverse is not a new idea. In fact, the term dates back to the 1990’s science-fiction novel, <a href="https://www.cnbc.com/2021/11/03/how-the-1992-sci-fi-novel-snow-crash-predicted-facebooks-metaverse.html">Snow Crash</a>. Why are companies today like Facebook (now Meta), Apple, Microsoft, Disney, and Nike going all-in on the Metaverse? The reason is new technologies, and not just the advancement in VR/AR, but specifically due to the innovation of effective digital property rights. NFTs and decentralized technology allows for the digital world to be tokenized and presents the opportunity for an alternative reality in which users can engage in an entirely digital economy. While we do not have a clear picture of what the Metaverse will actually look like, NFTs allow for digital objects to no longer be limited by platforms. Users can physically own content, like a house, username, or avatar, and transact these unique items in a digital economy. Markets require a fungible unit of exchange, for example the dollar, along with uniquely valued assets. The token model of the Blockchain presents the opportunity for a full-fledged digital economy with both fungible and non-fungible units of exchange.</p><p>Ark Investment’s <a href="https://markets.businessinsider.com/news/stocks/cathie-wood-metaverse-property-sales-ark-invest-outlook-crypto-gaming-2021-12">Cathie Wood</a> stated that the Metaverse is “a big idea that will probably infiltrate… every section in ways that we cannot even imagine right now.” <a href="https://links.coinbase.com/u/click?_t=3aca56371967418192255878e9689713&amp;_m=ca526dcef30142caab51f27f31fc9f68&amp;_e=4nvn2MgK6hO6-ZK4tPQ8lbv1M_AROSZexa0qECAmVGNyTIBtR8tBG7mApcAQ37uvWB7ST_KFPmEgQHlQdRaeVW1brKOSU6AW7xznFbkUljcSLx12StcNhpVazgPpWcSuyMgyAltgWqp4ySCuzsONw-chwjs21SRJSZbql0wRuKgOSoDOq1ixoDRG4jZbXceq14I5hHhnTEqaIMvhJwEsOCN_1V0eGChpL3hCR0_U9NXwOg0JFa4qCTSc0ehNIKH9YylDXSZ8FCLtyyEUh592GLlhvpCxyC2m2Vv6ODmRbVgVkqeJsuYbNUB3x9FPgoLqUVnp-83zzMVw9ByurNjZ8-QdNi95adHBACz1lVmk0q_ubKn4BAl-fcibVhwfYRM-b2cFlAwNQt47_ZCA3orC9BwwZQeKOlOdtWWbUtNzv96Wy_s1YLfn_CyNYbrpJz162mNrKgAutomz4iIiGWTmaw%3D%3D">Goldman Sachs</a> believes the Metaverse is a $8 trillion opportunity. While the use-case and framework for the Metaverse is still far from fully-developed, the building blocks exist and corporations like Meta, Apple, and Microsoft are investing billions in the idea of a digital reality.</p><p>According to Nonfungible.com, $692 million worth of metaverse real estate was bought and sold in 2021. Decentraland and Sandbox are two of the top metaverse platforms and are built upon the <a href="https://ethereum.org/en/whitepaper/">Ethereum Blockchain</a>. These games utilize tokens to allow users to fully immerse themselves in a digital reality in which they can purchase land, exchange goods, go shopping, hang out with friends, and attend a work meeting. Both platforms utilize a fungible token to build out an economic framework along with non-fungible tokens to represent digital objects. Decentraland and Sandbox use a non-fungible token standard ( <a href="https://ethereum.org/en/developers/docs/standards/tokens/erc-721/">ERC-721</a>) to represent all land and digital objects. Users have the ability to transact these items through an <a href="https://ethereum.org/en/developers/docs/standards/tokens/erc-20/">ERC-20</a> token, a fungible token. The MANA token is the ERC-20 for <a href="https://coinmarketcap.com/currencies/decentraland/">Decentraland</a> and currently has a market cap of $5 billion while the SAND token for <a href="https://coinmarketcap.com/currencies/the-sandbox/">Sandbox</a> has a market cap around $4 billion.</p><p><strong>Tokenizing Physical Assets</strong></p><p>Louis Vuitton, Burberry, Ferrari, and diamond specialist, De Beers, are all experimenting with ways to integrate NFTs into their business models. While none of the companies have released plans to tokenize their physical products, there are many reasons they should. NFTs would dramatically reduce the impact of counterfeit goods. The global volume of counterfeit products is expected to reach <a href="https://iccwbo.org/media-wall/news-speeches/global-impacts-counterfeiting-piracy-reach-us4-2-trillion-2022/">$4.2 trillion</a> in 2022. Non-fungible tokens provide an effective mechanism to authenticate physical items in online marketplaces and allow buyers and sellers to agree upon a universal standard of digital ownership.</p><p>A Louis Vuitton bag could be serialized and accompanied with a matching NFT. The NFT would serve as a certificate of ownership and provide assurance to all secondary buyers of the item’s authenticity. Software could query the Blockchain to determine if the serial number of that bag has in fact been minted and require the seller to cryptographically verify their possession of the asset. Louis Vuitton could collect fees on all secondary transactions and participate in the highly profitable resale business. The luxury resale market was estimated to be $38 <a href="https://www.forbes.com/sites/pamdanziger/2022/02/05/luxury-resale-is-on-fire-and--therealreal-lit-the-fuse/?sh=4b5fdac913c1">billion</a> in 2021, growing at a <a href="https://www.mckinsey.com/industries/retail/our-insights/welcome-to-luxury-fashion-resale-discerning-customers-beckon-to-brands">10–15%</a> annual rate. Market leader, The <a href="https://investor.therealreal.com/news-releases/news-release-details/realreal-sets-record-straight-its-authentication-process#:~:text=on%20our%20site.-,The%20RealReal%20has%20the%20most%20rigorous%20authentication%20process%20in%20the,put%20counterfeiters%20out%20of%20business.">RealReal</a> states that they are “the only resale company in the world that authenticates every single item [they] sell.” That cumbersome problem disappears with NFTs.</p><p>The Blockchain also presents companies with a self-updating certificate model that allows them to easily track the movement of their products in real time. Companies can offer special incentives to product owners such as discounts, access to early releases, and invitations to in-person events. The valuable marketing opportunities inherent in this model have been best exemplified by the Bored Ape Yacht Club collections. Bored Apes are the third-most valuable collection of NFTs with $1.5 billion in all-time sales. Owners of these assets have been constantly sent gifts to their wallet address on the Ethereum Blockchain. An example was a collection of NFT mutant serums with varying rarity. Bored Ape owners had the option to apply the mutant serum to their ape to obtain an entirely new, mutated Ape NFT or sell their serum on the open market. In early January, one of eight “mega mutant serums” sold for $5.8 million. Most recently, Bored Ape holders were given 10,000 of the newly released ApeCoin. Following the launch of the token on popular exchanges, the value of ApeCoin appreciated to nearly $18.00 leaving each NFT holder with nearly $180,000 if sold. Bored Ape NFTs also function as a ticket to a social club that throws live/physical parties, including one on a mega yacht.</p><p>Ferrari and other software-based luxury items have the potential to take physical NFTs to an entirely different level. Companies like Ferrari, Mclaren, and Mercedes are increasingly becoming software companies. Cars are transitioning into IoT devices and they are opening the possibility for mass data collection. In the future, cars could connect to the Blockchain like other IoT devices and collect data in a verifiable, secure environment. For example, a 2021 Ferrari being sold on the secondary market could have its mileage and GPS data available on the Blockchain. An NFT could represent the car in a token economy and allow buyers to see the entire digital history of the vehicle before purchase. This would dramatically reduce the potential for odometer fraud and it allows for real-time analysis and security of vehicles across the world. Although some may believe privacy is a concern with the model, the crypto industry offers a unique solution through zero-knowledge proofs. This cryptographic protocol lets users keep sensitive data private, but it still allows for network validity of information through mathematical proofs.</p><p><strong>NFTs are Fueling the Creator Economy — The Music Industry</strong></p><p>In Web 2.0, it pays to be a middleman. Streaming is the dominant mode of consumption in the music industry today, and streaming services such as Apple and Spotify accounted for over two-thirds of recorded music revenues in the first half of 2021. Major record labels, which own most of the music content have been posting huge profits, but musicians have not been participating in the bounty as they generally receive fractions of pennies per stream. In fact, 0.2% of artists on Spotify generate even <a href="https://www.musicbusinessworldwide.com/artists-have-a-0-2-chance-of-generating-50k-a-year-on-spotify-lets-kick-this-stat-around/#:~:text=MBW&#39;S%20STAT%20OF%20THE%20WEEK%3A%20An%20estimated%200.2%25%20of%20artists,paid%20something%20as%20a%20professional.">$50,000</a> a year.</p><p>NFTs provide artists with a superior economic model in which they can obtain a greater share of profits as well as creative freedom. Daniel Allan, an up and coming pop artist sells digital copies of his songs that come with special incentives for fans. Allan utilizes the programmability of tokens to auction off a share of future master royalties in order to crowdfund his albums. For his 2021 EP, <em>Overstimulated</em>, Allan <a href="https://time.com/6124814/music-industry-nft/">raised 50 ETH</a> ($140,000) on the first day of trading alone. Allan was able to generate more than enough to produce his music while simultaneously securing a greater share of future royalties than he would have generated by working with a record label. NFTs provide artists with ultimate flexibility and control over their content as intermediaries are no longer responsible for providing monetization channels for artists. Allan currently makes 85% of his living off NFTs.</p><p>Music NFTs present an entirely new investment class for fans to benefit from the success of their favorite artists. By purchasing tokens, fans obtain ownership in songs, royalty fees, and other digital collectibles that can grow exponentially in value if the artist becomes mainstream. NFTs open up a historically privatized asset class to retail investors which will bring greater rights and liquidity to creators. The Music industry can be democratized as up and coming artists can escape the constraint of intermediaries and directly leverage the people in order to effectively monetize their work.</p><p><strong>The New Internet Built Upon Effective Digital Property Rights</strong></p><p>Web 2.0 brought us the advent of web applications and an entire industry built around designing, developing, and securing this new technology. The centralized web brought dynamic web pages, social networks, mobile devices, and much more. However, this innovative software also brought centralization to the web in which a few services dictate user access, communication, and publication. Applications collect data like never before and employ powerful algorithms for interpretation and monetization. What the internet is currently missing is a framework that allows these two pieces — data and algorithms — to come together in an ethical manner. NFTs are an entirely new form of intellectual property that allows users to own digital content while maintaining the visibility and usability of the centralized web. The next phase of the internet, Web 3.0, will be built upon token economies that allows users to have ownership of their data without compromising the efficiency and technology present in today’s applications.</p><p>In this article, I explored the potential opportunity for NFTs in gaming, physical goods, and the entertainment industry. In the next phase of the internet, NFTs are set to disrupt many more industries such as real estate, sports, ticketing, healthcare, pharmaceuticals, and memorabilia.NFTs present an opportunity to tokenize the internet in which digital objects can have precedence over platforms.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/future-nfts-much-more-than-300000-jpgs-aidan-pak/?trackingId=HELa4xO%2BQFaSjEeAiETl3Q%3D%3D"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76920edeb696" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to Web 3.0, The Technology That Can Revolutionize the Internet and Cloud Computing]]></title>
            <link>https://medium.com/coinmonks/an-introduction-to-web-3-0-the-technology-that-can-revolutionize-the-internet-and-cloud-computing-832dd9952079?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/832dd9952079</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 17:51:39 GMT</pubDate>
            <atom:updated>2022-07-21T14:51:13.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Originally published: January 10, 2022</p><p>“The truth is no online database will replace your daily newspaper, no CD-ROM can take the place of a competent teacher and no computer network will change the way the government works… Nicholas Negroponte, director of the MIT Media Lab, predicts that we’ll soon buy books and newspapers straight over the Internet. Uh, sure.” — <a href="https://www.newsweek.com/clifford-stoll-why-web-wont-be-nirvana-185306">Clifford Stoll for Newsweek</a> on February 26, 1995.</p><p>In 1995, only <a href="http://america.aljazeera.com/articles/2014/2/27/pew-internet-adoption2014.html">14%</a> of US adults were connected to the internet. There was no central authority, communication was <a href="http://peer-to-peer/">peer-to-peer</a>, and users had control over the content they published. However over the past two decades, the internet has undergone a mass centralization led by internet giants Google, Amazon, Facebook, and Microsoft. With the emergence of Artificial Intelligence, IoT, social media, and cloud computing, the internet has exploded and the tech giants have become the sole possessors of the platforms on which the internet resides. The centralized internet has contributed to major data privacy concerns, the use of algorithmic biases, censorship of users, and the establishment of a single point of failure for the network.</p><p>One of the greatest misconceptions about crypto networks is that they are solely focused on the establishment of digital currencies to compete with the dollar. Much of this confusion stems from the first-ever crypto network, <a href="https://bitcoin.org/bitcoin.pdf">Bitcoin</a>, whose blockchain was designed specifically for this purpose. However, the implications of blockchain are in fact much broader, and the advent of Bitcoin has created an entirely new infrastructure for maintaining and storing data. Much like how AWS provides a framework for web applications, blockchains are the backend infrastructure for crypto applications. Specifically, blockchains provide the structure to support decentralized applications ( <a href="https://www.gemini.com/cryptopedia/decentralized-applications-defi-dapps">dApps</a>) and a decentralized internet, or what many are calling Web 3.0.</p><p><strong>The History of the Internet, Web 1.0</strong></p><p>While very related, the internet and the web are not the same. The internet is the physical servers, wiring, and connectivity protocols that govern how computers communicate with one another. The internet is simply a network of independent computers that follow Internet Protocol (IP) and Transport Control Protocol (TCP). At its core, the internet was decentralized and was created in the 1960s primarily for academic and military use. It wasn’t until <a href="https://home.cern/science/computing/birth-web/short-history-web#:~:text=Tim%20Berners%2DLee%2C%20a%20British,and%20institutes%20around%20the%20world.">Tim Berners-Lee</a> invented the Web in 1989 that the internet became commercialized. The web is essentially a system of online content that is linked together via hyperlinks and it dramatically simplifies the process of accessing information via the internet. To access a web page, users must provide the exact server location for the content they are requesting, and the web allows for users to quickly access web resources using hyperlinks as opposed to remembering a physical server location. With the creation of the web and web browsers, users got access to applications, such as <a href="https://time.com/3857628/aol-1985-history/">AOL</a>. These web pages were strictly static/read-only. The internet was not yet interactive. Today, this period in time (~1990s) is now referred to as <a href="https://medium.com/@vivekmadurai/web-evolution-from-1-0-to-3-0-e84f2c06739">Web 1.0</a> in which the network was decentralized and users directly requested content from servers in a peer-to-peer fashion.</p><p><strong>Web 2.0 — The Centralized Web and Cloud Computing</strong></p><p>Throughout the 1990s, businesses began to develop new software that outpaced the capabilities of open protocols and provided efficient, scalable infrastructure to support the internet. Microsoft released Internet Explorer as a free add-on to its operating system, Google and Yahoo developed search engines, and <a href="https://observer.com/2020/06/ecommerce-expert-stephan-schambach-discuss-retail-innovation-coronavirus-pandemic/">Stephan Schambach</a> invented the “online shopping cart” which led to mass commercialization of the web. Much to the dislike of internet critics, the number of internet users exploded and by the year 2000, <a href="https://www.pewresearch.org/internet/2015/06/26/americans-internet-access-2000-2015/">52%</a> of Americans were online. Software dramatically simplified the process of accessing and navigating the internet, and communication and publication began to flow through a few services that were able to outperform all others. These innovative services were so great that companies like Google, Amazon, and Facebook were able to quickly scale and construct high barriers to entry. The strategy was to gather as many users as possible and worry about monetization another day.</p><p>This led to the centralized web, known as Web 2.0 (2000s-present), the period defined by user participation and read, write capabilities. The centralized web brought dynamic web pages, social networks, mobile devices, and much more. However, this innovative software also brought centralization to the web in which a few services dictate user access, communication, and publication. Web 2.0 is best described as services in exchange for user data. Today, the tech giants are under regulatory and public scrutiny for exploiting user data, censoring users, employing algorithmic biases, and building a moat around the cloud computing industry.</p><p><strong>Cloud Computing — The Hallmark of Web 2.0</strong></p><p>In the late 1990s, Amazon.com began to build data centers across the globe to meet online traffic demands. After years of trial and error and server outages around Christmas time, Amazon perfected extremely efficient cloud infrastructure services. So efficient in fact that Jeff Bezos and Andy Jassy realized they could provide computing services for other companies. This little side business became known as AWS and gave rise to the <a href="https://www.grandviewresearch.com/industry-analysis/cloud-computing-industry">$275 billion</a> cloud computing industry. AWS currently makes up <a href="https://www.statista.com/statistics/967365/worldwide-cloud-infrastructure-services-market-share-vendor/">32%</a> of the cloud infrastructure market and combined with Microsoft Azure, totals over 53% of the market. Although cloud computing has boosted the efficiency of the internet and allowed for users to scale applications effortlessly, the cloud is ultimately the greatest contributor to the centralized nature of the Web.</p><p>Through AWS, Amazon found a way to monetize the original, decentralized internet and effectively built a platform to support the entire network. Jassy himself <a href="https://techcrunch.com/2016/07/02/andy-jassys-brief-history-of-the-genesis-of-aws/">stated</a>, “if you believe companies will build applications from scratch on top of the infrastructure services if the right selection [of services] existed, and we believed they would if the right selection existed, then the operating system becomes the internet, which is really different from what had been the case for the [previous] 30 years,” In other words, AWS was able to leverage the efficiency of their servers to shift the underlying architecture of the internet to a centralized platform.</p><p>On <a href="https://www.washingtonpost.com/business/2021/12/22/amazon-web-services-experiences-another-big-outage/">December 7, 2021</a>, Amazon Web Services experienced a major five hour outage. Millions of users and businesses were affected as websites like Netflix, Disney+, Venmo, Delta, and more went down. AWS hosts over <a href="https://kinsta.com/aws-market-share/">9 million websites</a> and a small bug in its cloud infrastructure can be catastrophic. Furthermore, with Artificial Intelligence and IoT growing at rapid rates, more and more devices are connecting to the internet (Alexa, Sonos, Ring, and even your smart toilets) are now collecting data in your own homes. The security of the cloud is imperative and user data has become an increasingly valuable asset. It is estimated that the cloud computing industry will grow at a 20% CAGR between 2021 and 2028 and will reach a valuation close to <a href="https://www.grandviewresearch.com/industry-analysis/cloud-computing-industry">$800 billion</a>.</p><p><strong>Web 3.0 Poses A Solution to Monopolies and Privacy Concerns</strong></p><p>Decentralized, cryptographic networks provide the backend and necessary tools to support a decentralized internet. Blockchains are public, distributed virtual machines that are maintained by a network of validators (independently owned computers that keep track of and update the state of the system). A blockchain is similar to AWS in that it is a virtual computer, but rather than constructed by a network of physical servers owned by Amazon, a blockchain is constructed by a group of independent, anonymous computers. These independent actors (often called validators) constantly communicate to validate and synchronize the records they have stored. Blockchains utilize consensus protocols comprised of cryptographic mechanisms and game theoretic economic incentives to ensure that the bad intentions of anonymous network participants cannot affect the validity of the network. This allows blockchains to run applications and store public, verifiable, immutable information without relying upon a central authority to maintain/update the state of the network.</p><p>The beauty in blockchain is that applications that run on these decentralized virtual machines can contain immutable software commitments that users can trust. Take Bitcoin for example, which is a decentralized application that runs on a blockchain and contains software commitments such as how many coins a respective account holds, as well as other facts such as the 21M bitcoin limit. Since the Bitcoin blockchain is decentralized (maintained by a network of independent actors), the software that runs on this network contains these commitments that cannot change without majority network consensus. A centralized virtual machine, such as AWS for example, could never effectively run a digital currency application because users will not trust that the centralized authority. At any moment, AWS could manipulate the software and change the amount of coins in circulation, eliminate users from participating in the network, or a mass server outage could temporarily disable or delete transactions. This idea of decentralization is what makes blockchains the next phase of computing.</p><p><strong>The Future of the Web and Cloud Computing</strong></p><p>Similar to a database or centralized server, blockchains can run other applications and store other forms of data beyond transaction records. Blockchains, such as the <a href="https://ethereum.org/en/whitepaper/">Ethereum Blockchain</a>, store and maintain smart contracts, which are immutable, self-executing software agreements. Smart contracts are similar to “if, else” statements that will self-execute when a set of conditions are met. Like tokens, smart contracts are verified and updated in a decentralized manner which enables anonymous parties to engage in verified agreements without the need for an intermediary. This makes smart contracts entirely different from typical contracts since they cannot be influenced by a higher authority. It is these autonomous, immutable lines of code that provide the building blocks for decentralized applications (dApps). dApps are very similar to software we see today (Netflix, Uber, Chrome, etc.) but instead of relying upon a centralized server, dApps run on blockchain networks. These apps allow users to have complete transparency into the application’s behavior because the data on the blockchain is completely public and users can simply read the contract logic to understand exactly how the application will behave. This allows for users to establish trust with the server and ensure the security of their data.</p><p>The idea of Web 3.0 is to leverage blockchain technology to establish a decentralized, peer-to-peer infrastructure in which decentralized applications can interoperate. Web 3.0 is the next reconstruction of the backend of the internet. In the same way that AWS centralized the backend of Web 2.0 by essentially building an OS for the internet to reside upon, Web 3.0 developers are attempting to build a network of blockchain-based protocols to re-establish decentralization but still maintain the efficiency and technologies of Web 2.0. Gavin Wood, co-Founder of Ethereum and creator of Polkadot, described Web 3.0 as “an inclusive set of protocols to provide building blocks for application makers. These building blocks […] present a whole new way of creating applications. These technologies give the user strong and verifiable guarantees about the information they are receiving, what information they are giving away, and what they are paying and what they are receiving in return.”</p><p>The goal of Web 3.0 is to maintain the technologies and advancements of Web 2.0 but preserve the openness and decentralized nature of Web 1.0. The decentralized web will be a safer platform for users to transact and communicate without the need for intermediaries. No central party will own the network, nor the data, users will have permissionless entry, there will be no single point of failure (in case of server outage), and through asymmetric encryption, security will be in the hands of users.</p><p>The architecture of Web 3.0 is far from complete as the decentralized internet is still under construction. The invention of Ethereum in 2015 paved the way for decentralized applications to emerge. Ethereum envisions an ecosystem in which users can navigate through interoperable decentralized applications which rely upon a token economy and network verifiability of the underlying architecture of web applications. The Ethereum network has its own object-oriented programming language, Solidity, that lets developers utilize smart contract logic to build applications within the Ethereum ecosystem. Other Web 3.0 projects, such as Polkadot and Cosmos, envision a different Web 3.0 and are building towards an internet of blockchains. The idea of these projects is to build a network, or OS, with protocols that allow for distinct blockchains to interoperate. Just as Web 2.0 applications have different compute, storage, and data requirements, the same is true for decentralized applications. A social network, web browser, and a music streaming service all may require a backend with different compute, storage, and data specs. Thus, it is implied that Web 3.0 will be more efficient if applications can be built upon specialized blockchains tailored to their respective needs. The goal of Polkadot and Cosmos is to allow for specialization and efficiency but allow for these blockchains to interact with one another.</p><p><strong>Polkadot Ecosystem of Parachains</strong></p><p><strong>Cosmos Network — Connecting Blockchains</strong></p><p><strong>The Future of The Internet</strong></p><p>Between the years 1995 and 2000, the Nasdaq Index rose 400%. Thanks to the decentralized nature of the web, innovation was at an all time high as internet companies, such as Microsoft, Google, Amazon, and Apple were able to develop value-driven software. Over the past 22 years, these companies have become so dominant that the internet is no longer community-owned. Web 3.0 aims to resolve the issues of central authority and reintroduce innovation to the internet. By preserving decentralization and introducing token economics, applications and services in Web 3.0 can be focused on driving value rather than finding ways to monetize and exploit user data. As more of the world goes online, trust in the network has never been more vital. Through blockchain, users can gain data privacy, autonomy, and security.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/introduction-web-30-technology-can-revolutionize-internet-aidan-pak/?trackingId=9tVvnlKmSTiM96M%2BJsui%2Bg%3D%3D"><em>https://www.linkedin.com</em></a><em>.</em></p><blockquote>New to trading? Try <a href="https://medium.com/coinmonks/crypto-trading-bot-c2ffce8acb2a">crypto trading bots</a> or <a href="https://medium.com/coinmonks/top-10-crypto-copy-trading-platforms-for-beginners-d0c37c7d698c">copy trading</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=832dd9952079" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/an-introduction-to-web-3-0-the-technology-that-can-revolutionize-the-internet-and-cloud-computing-832dd9952079">An Introduction to Web 3.0, The Technology That Can Revolutionize the Internet and Cloud Computing</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of the E-Yuan and the Double-Edged Sword of CBDC’s]]></title>
            <link>https://medium.com/@aidanpak/the-rise-of-the-e-yuan-and-the-double-edged-sword-of-cbdcs-55873204c2b2?source=rss-1b049447fc9b------2</link>
            <guid isPermaLink="false">https://medium.com/p/55873204c2b2</guid>
            <category><![CDATA[digital-currency]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Aidan Pak]]></dc:creator>
            <pubDate>Sun, 17 Jul 2022 17:49:49 GMT</pubDate>
            <atom:updated>2022-07-17T17:55:36.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VZ_w_kjXkalfVrYb" /></figure><p>Originally published: November 15, 2021</p><p>In just under three months, Beijing will capture the world’s attention as the city hosts the 2022 Winter Olympic Games. China is leaning upon the talented 17-year-old skiing sensation, Eileen Gu, to win Gold following her stunning success at last year’s Winter X Games. The People’s Republic of China will simultaneously capture the world’s attention with the global debut of their Central Bank Digital Currency (CBDC), the e-yuan. The Central Bank of China plans to expand the technology to an international scale and will supply tourists with access to digital wallets.</p><p>While China did not begin public trials of the e-yuan until May 2020, digital payment is far from new to China. Private platforms, such as Alipay and WeChat Pay have been widely popular since the early 2010’s. In 2020, <a href="https://www.statista.com/statistics/278487/number-of-mobile-payment-users-in-china/">852 million</a> Chinese citizens, or approximately 60% of the population, exchanged currency on a private digital platform. Adoption of the e-yuan has grown exponentially as the government incentivized public adoption through lotteries and 0% transaction fees, compared to the 0.6% service fees on platforms like Alipay. To date, <a href="https://technode.com/2021/07/19/china-has-spent-34-5-billion-digital-yuan-says-the-countrys-first-digital-yuan-white-paper/">34.5 billion</a> e-yuan has been spent and over <a href="https://www.theblockcrypto.com/linked/123122/china-digital-yuan-e-cny-150-million?utm_source=Iterable&amp;utm_medium=email&amp;utm_campaign=campaign_3175269">140 million</a> Chinese citizens have opened digital wallets.</p><p>The success of the e-yuan has caught the attention of central banks across the world, including the Federal Reserve System. According to the Bank for International Settlements, the <a href="https://www.bis.org/statistics/rpfx19_fx.htm">dollar accounts for 88%</a> of all forex transactions. The digital yuan poses a threat to the dollar’s leading role in global trade due to the lower transaction fees, the reduced dependency on cash, and the faster transaction times inherent in digital currency. A transition to the e-yuan, or to other forms of digital currency, would lead to an erosion in demand for U.S dollar-backed assets and thus a devaluation of the U.S dollar. In response, Fed Chair Jerome Powell <a href="https://www.cnbc.com/2021/09/22/the-fed-is-evaluating-whether-to-launch-a-digital-currency-and-in-what-form-powell-says.html">said</a> the US Federal Reserve is “working proactively to evaluate whether to issue a CBDC, and if so in what form.”</p><p>The positive case for a US CBDC is straightforward: it would allow the government to more easily enact financial policy, it would streamline inefficiencies in our current payment system, and it would preserve the value of the U.S dollar. Rather than the traditional model of private banks, credit card companies, and payment processors, a digital dollar would rely on a single ledger that will record all transactions. In theory, American citizens would have Federal accounts in which currency is distributed all within a centralized system. A digital dollar could dramatically reduce the delays and fees that come with our current payment system and cut down on the barriers that leave <a href="https://qz.com/2031646/what-is-a-digital-dollar-and-how-does-it-work/">7.1 million Americans</a> unbanked today. Furthermore, a digital dollar would allow the Fed to instantaneously enact financial policy, such as distributing stimulus directly to accounts.</p><p>It is precisely this centralized structure that makes CBDCs so dangerous both in exposure to cybersecurity threats and in their potential use to create a dystopian society. Unlike cryptocurrencies which rely on blockchains to develop the integrity of a decentralized protocol, CBDCs are hosted within a single database which exposes them to cyberthreats. The blockchain exists synchronously in multiple locations called nodes, which are individual computers that track, synchronize, and constantly update the network with new transactions. Additions and manipulations to the blockchain require that the majority of the nodes in the network reach a level of consensus and verify a change before it is valid. This implies that a malicious actor can only manipulate the ledger if they control the majority of the mining power, a mathematically and economically infeasible event. This is critical because it makes attacking the blockchain extremely difficult if not impossible.</p><p>The centralized structure of CBDCs would require the highest levels of cybersecurity to protect extremely sensitive data that connects citizens to their financials. The tremendous incentive to attack would likely result in an eventual data breach. To date, the government has struggled to secure sensitive data and according to <a href="https://www.cnn.com/2021/08/03/politics/cybersecurity-failures-federal-agencies-senate-report/index.html">CNN,</a> “key agencies across the federal government continue to fail to meet basic cybersecurity standards” and an August 2021 <a href="https://www.hsgac.senate.gov/media/minority-media/new-bipartisan-portman-peters-report-shows-federal-agencies-cybersecurity-failures-leaving-americans-personal-information-at-risk">Senate report,</a> “found systematic failures to safeguard data.”</p><p>Furthermore, centralized currencies provide governments with complete visibility into their citizens’ financial activity and the ability to directly control the economy. Not only could central banks impose negative interest rates, but since digital tokens will be minted directly onto a centralized platform, central banks would be able to directly control the flow of money. A frightening hypothesis is that a centralized ledger will lead to “financial snooping” similar to the misuse of personal data witnessed within big tech firms, only worse. China could implement financial data into its <a href="https://www.scmp.com/economy/china-economy/article/3096090/what-chinas-social-credit-system-and-why-it-controversial">social credit system</a>. Currently, the People’s Republic of China “monitors and assesses” the behavior of citizens to establish a system of rewarding/punishing certain behaviors. According to a <a href="https://coingeek.com/are-central-bank-digital-currencies-a-bad-idea/">2019 report</a>, China denied “26 million air tickets and 6 million high-speed rail tickets to people with ‘unacceptable ratings.” The digital yuan supplies the data for the inclusion of factors such as timing on tax payments and contributions to political/charitable institutions into its social ranking system. With the implementation of the digital yuan, Xi Jinping appears to have one clear goal: more control over the people. Moreover, the centralization of CBDCs implies that governments will have the ability to completely blacklist an account from receiving/sending payments. In contrast, blockchains are entirely open, public, and censorship resistant. This means that all transaction history is public information. Anyone on the network can visualize each other’s transaction activity; however, through pseudonyms, blockchains are able to support individual anonymity.</p><p>The irony in all of this is that the exact problems that motivated developers to create Bitcoin, Ethereum, Cardano, and other forms of cryptocurrency are intensified with Central Bank Digital Currencies. Cryptocurrencies offer user autonomy, data security, and protection against inflation. The inherent flaws of CBDCs pose a major threat to the global power hierarchy, individual autonomy, and personal security. I believe that if central banks across the world continue to pursue CBDC implementation, we will see mass adoption and further legitimization of cryptocurrencies. As more people become aware of the pitfalls of both traditional and digital centralized currencies, the value proposition of decentralized currencies will become increasingly clear. Cryptocurrencies, such as Bitcoin, offer an effective alternative to the dollar in global trade. Analysts at <a href="https://markets.businessinsider.com/news/currencies/bitcoin-btc-could-become-currency-global-trade-citi-2021-3#:~:text=to%20BI%20Prime-,Citi%20says%20bitcoin%20could%20become%20the%20currency%20of%20global%20trade,transformation&#39;%20%2D%20or%20it%20could%20implode&amp;text=Bitcoin%20could%20be%20at%20the,if%20innovation%20and%20adoption%20continues.">Citibank</a> suggest that “bitcoin may be optimally positioned to become the preferred currency for global trade,” specifically citing that Bitcoin is “immune from both fiscal and monetary policy, avoids the need for cross-border foreign exchange (FX) transactions, enables near instantaneous payments, and eliminates concerns about defaults or cancellations.” Lastly, the emergence of DeFi lending platforms is supplying increased competition to traditional banking systems. The industry grew 14x in 2020 alone and is <a href="https://www.prnewswire.com/news-releases/defi-locked-value-surpasses-80b-and-expert-believe-it-could-grow-10x-301365595.html#:~:text=Now%2C%20DeFi%20is%20a%20billion,growth%20in%20the%20coming%20year.">valued at roughly $81.85B</a>.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/rise-e-yuan-double-edged-sword-cbdcs-aidan-pak/?trackingId=QDhwuj4%2FTh6GNz0jXhL3Dw%3D%3D"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55873204c2b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>