<?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 Antons Tesluks on Medium]]></title>
        <description><![CDATA[Stories by Antons Tesluks on Medium]]></description>
        <link>https://medium.com/@antons-tesluks?source=rss-d036e0280cd0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o90gzaLoxdqpHmDWUcNzzA.png</url>
            <title>Stories by Antons Tesluks on Medium</title>
            <link>https://medium.com/@antons-tesluks?source=rss-d036e0280cd0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:54:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@antons-tesluks/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[Building GPT-2 LLM from Scratch]]></title>
            <link>https://antons-tesluks.medium.com/building-gpt-2-llm-from-scratch-0a4eecd5b8b5?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a4eecd5b8b5</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 21:01:11 GMT</pubDate>
            <atom:updated>2024-12-20T21:15:57.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eVpT_lzXYEPP_YHQ5JfK4Q.png" /><figcaption>Training Progress in Action: As the model trains, its output evolves from random gibberish to increasingly coherent and meaningful text</figcaption></figure><blockquote>“What I cannot create, I do not understand” © Richard Feynman.</blockquote><p>Large Language Models — particularly GPT-style architectures — have become extremely influential in our lives over the past two years. As someone who has been in the Machine Learning field for a while and works with these technologies, I decided to build a GPT-2 equivalent model from scratch to fully understand how it works. While the model structure is relatively straightforward, it still has many moving parts and nuances. With enough training data, such models can be very powerful.</p><p>Fortunately, there’s plenty of public information about GPT-2’s structure, training methods, and training data. Additionally, the original code is available on <a href="https://github.com/openai/gpt-2?tab=readme-ov-file">OpenAI’s GitHub page</a> along with documentation. This helps a lot to understand how to build the model from the ground up. Although the original model used TensorFlow, I chose to use another popular machine learning framework — PyTorch. You can find the project’s GitHub page here: <a href="https://github.com/atesluks/llm-from-scratch/tree/main">https://github.com/atesluks/llm-from-scratch/tree/main</a>.</p><h3>Data preparation</h3><p>For my implementation, I used two types of data:</p><ul><li>A simple text dataset from “Alice in Wonderland” (about 40k tokens) from Project Gutenberg, which is small and good for local experiments.</li><li>An English Wikipedia dump from Hugging Face, containing around 3.5B tokens and ~11GB of data.</li></ul><p>The data is tokenized and split into batches, which can be processed in parallel. Larger batch sizes (like 32 or 64) are suitable for GPUs, while smaller batches (like 8) are better for local runs. The data is also split into training, validation, and testing sets.</p><p>Here are recommended model and data sizes for different use cases:</p><ul><li><strong>Proof of Concept (Minimal Coherence): </strong>~1 million to 10 million tokens, 50 million to 100 million parameters (similar to GPT-1)</li><li><strong>Somewhat Coherent Model (Basic Usability)</strong>: ~100 million to 1 billion tokens, 300 million to 1 billion parameters (comparable to GPT-2)</li><li><strong>Usable Model (General Purpose): </strong>~10 billion to 100 billion tokens, 1 billion to 6 billion parameters (similar to GPT-3 Small versions)</li><li><strong>Production-Ready LLM (Advanced):</strong> ~300 billion to 500 billion tokens, 50 billion to 300 billion parameters (GPT-3 scale)</li><li><strong>State-of-the-Art LLM (GPT-4 Level):</strong> ~1 trillion to 10 trillion tokens, 300 billion to 1 trillion+ parameters</li></ul><p>In this project we are building something between the first and second categories.</p><h3><strong>Architecture of a GPT Model</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EHtf_GwjqrCQji-vu2BxwQ.png" /><figcaption>Source: <a href="https://github.com/rasbt/LLMs-from-scratch">https://github.com/rasbt/LLMs-from-scratch</a></figcaption></figure><p>The model follows a standard GPT-like architecture: an embedding layer, multiple Transformer blocks (each with a self-attention mechanism and a feed-forward network), and a final output layer. Throughout the model, residual connections and layer normalization stabilize training and improve performance.</p><p><strong>1. Input Embeddings:</strong></p><ul><li><strong>Token Embeddings (tok_emb):</strong> Each input token is mapped to a dense vector. We use the same byte-pair encoding (BPE) tokenizer as GPT-2, which has a vocabulary of 50,257 tokens. Thus, each embedding vector is of size 50,257. If you’re curious about how the tokenizer is constructed, check out this <a href="https://huggingface.co/learn/nlp-course/en/chapter6/5">HuggingFace article</a>. The embedding layer is implemented as a lookup table for efficiency.</li><li><strong>Positional Embeddings (pos_emb):</strong> Since this model isn’t a recurrent one (not an RNN, like older versions of language models used to be), it uses positional embeddings to understand the order of tokens in a sequence. We use absolute positional embeddings, like the original GPT-2, though some models use relative positional embeddings instead.</li></ul><p>These embeddings are summed to produce the initial input representation.</p><p>2. <strong>Transformer Blocks (repeated n_layers times):</strong></p><p>Stacking multiple Transformer blocks is key to GPT’s power. Larger models have more layers, and it’s believed that early layers learn more fundamental aspects (like grammar), while later layers capture higher-level semantics. Each block includes:</p><p>2.1. <strong>Layer Normalization (norm1)</strong> before attention.</p><p>2.2. <strong>Multi-Head Self-Attention (att):</strong></p><ul><li>The input is projected into query, key, and value tensors. Queries represent what a token is “looking for” in other tokens. Keys represent what queries can “match” against. Values hold the information that gets passed along.</li><li>Attention is calculated by scaling the dot products of queries and keys. A causal mask makes sure that the model cannot attend to future tokens.</li><li>Multiple attention heads run in parallel, and their outputs are concatenated and projected back into the model dimension. Each head can learn different linguistic or semantic patterns. For example, one attention head might learn to track verb tense consistency across a sentence, while another might specialize in identifying named entities like people or locations. By combining the insights from all heads, the model forms a richer, more comprehensive representation of the input text.</li><li>A residual connection adds the original input back, helping to mitigate issues like vanishing gradients. The vanishing gradient problem occurs in deep neural networks when the gradient signals start out at reasonable levels near the output layer, but become smaller as they are backpropagated through earlier layers. Eventually, these gradients become so tiny that the early layers barely learn anything. By using residual connections, the gradients have a more direct pathway through the network, ensuring they remain strong enough to update all layers effectively and thereby improve overall learning stability.</li></ul><p>2.3. <strong>Layer Normalization (norm2)</strong> before the feed-forward network, stabilizing the learning process.</p><p>2.4. <strong>Feed-Forward Network (ff):</strong></p><ul><li>A two-layer fully connected network with a non-linear activation (GELU) in between.</li><li>Another residual connection is applied after the feed-forward step.</li></ul><p>3. <strong>Final Normalization and Output Layer:</strong></p><ul><li>After all Transformer blocks, a final layer normalization (final_norm) is applied.</li><li>A linear output projection (<strong>out_head</strong>) takes the model’s final hidden representations and turns them into raw scores (logits) for every token in the vocabulary. If we run these logits through a softmax function, they become probabilities that sum up to 1. In simpler terms, for each predicted token, the model gives us a confidence score for every possible choice. Converting those scores into probabilities lets us pick the most likely next token or even sample one randomly if we want more variety.</li></ul><p>4. <strong>Additional Details:</strong></p><ul><li><strong>Dropout (drop_emb, drop_shortcut):</strong> Used in various places to prevent overfitting, typically with a value of 0.1.</li><li><strong>Causal Masking:</strong> Ensures the model only attends to previous and current tokens, not future ones. In other words, when predicting the next token, the model can’t “peek” at what comes after — it only sees what came before. This way, it learns to generate text step-by-step, using only past context to guess what token should come next.</li><li><strong>Parameterization:</strong> Model configurations (embedding dimension, number of heads, vocabulary size, context length, layers) are defined in cfg.</li></ul><p>This layered approach — building up from attention and feed-forward parts — is at the heart of GPT-like models. Each layer polishes the token embeddings, one step at a time, until you end up with a strong, context-aware representation that’s ready to generate or classify text.</p><p>Interesting fact: People often think these models predict only a single next token. In reality, GPT models take in a sequence of tokens and output the same length sequence, but shifted by one, plus the new predicted token. For instance, if you feed in [My, name, is], the model might return [name, is, Antons]. Training it to recreate the whole sequence shifted by one token, instead of just guessing the next token, helps the model learn deeper connections between words and improves its overall performance.</p><h3><strong>Parameters</strong></h3><p>Typical Parameters of GPT-type Large Language Models:</p><ul><li><strong>Vocabulary Size (vocab_size):</strong> Defines how many different tokens the model knows and can output.</li><li><strong>Context Length (context_length):</strong> Controls how many tokens the model can take as an input.</li><li><strong>Embedding Dimension (emb_dim):</strong> The size of the vector representing each token.</li><li><strong>Number of Attention Heads (n_heads):</strong> How many attention heads there are in each transformer block. More attention heads increases model’s capacity to focus on different parts of the input simultaneously.</li><li><strong>Number of Layers (n_layers):</strong> How many transformer blocks there are. Stacking more layers deepens model complexity and understanding.</li><li><strong>Dropout Rate (drop_rate):</strong> Helps prevent overfitting by randomly “dropping out” parts of the network.</li><li><strong>Query-Key-Value Bias (qkv_bias):</strong> Determines if linear projections for Q/K/V have learnable biases. GPT models typically do not use these biases, since they were discovered to be not useful.</li></ul><p>Vocabulary size and dropout rate usually remain the same across various model sizes, while context length, embedding dimension, number of attention heads and number of layers increase for larger models.</p><p><strong>Example (GPT-2 Small, 124M parameters):</strong></p><blockquote>• vocab_size: 50,257</blockquote><blockquote>• context_length: 256</blockquote><blockquote>• emb_dim: 768</blockquote><blockquote>• n_heads: 12</blockquote><blockquote>• n_layers: 12</blockquote><blockquote>• drop_rate: 0.1</blockquote><blockquote>• qkv_bias: False</blockquote><p><strong>Example (GPT-2 Medium, 355M parameters):</strong></p><blockquote>• vocab_size: 50,257</blockquote><blockquote>• context_length: 1,024</blockquote><blockquote>• emb_dim: 1,024</blockquote><blockquote>• n_heads: 16</blockquote><blockquote>• n_layers: 24</blockquote><blockquote>• drop_rate: 0.1</blockquote><blockquote>• qkv_bias: False</blockquote><h3>Training</h3><p>The training process involves fitting the model on the training set, regularly evaluating the training and validation loss, and periodically generating text samples to visually check improvements. After training, the code plots the loss curves over time and saves the trained model. The saved 124M-parameter model is about 1.82 GB in size.</p><p>I trained the model locally on a MacBook Pro M2 with 32GB RAM, as well as on a server with a single A100 GPU. Locally, I could train the 124M-parameter model on a batch size of 8, and a 355M-parameter model on a batch size of 2. On the GPU, I managed to use batch sizes of 64 for the 124M model and 8 for the 355M model.</p><p>I also implemented advanced techniques like gradient clipping, learning rate warmup, and cosine decay to improve the training stability.</p><h3>Results</h3><p>I managed to train smaller models on smaller datasets locally. But for larger models, a GPU is a must — it’s much faster and can handle larger amounts of data by processing more batches in parallel. Here are the results comparing training speeds on different datasets and devices:</p><h4>“Alice in Wonderland” (124m model, 40k tokens):</h4><ul><li>CPU: ~3.96 min</li><li>MPS (Apple Silicon): ~1.68 min</li><li>GPU: ~0.27 min (batch=8), ~0.22 min (batch=32)</li></ul><h4>English Wikipedia (124m model, 0.01% subset or ~350K tokens):</h4><ul><li>CPU: ~6.94 min</li><li>MPS: ~2.41 min</li><li>GPU: ~0.46 min (batch=8), ~0.4 min (batch=32)</li></ul><p>As you can see, a GPU is much faster. The MPS backend also helps accelerate training on MacBook M series chips.</p><p>Although the models improved during training, they only started generating somewhat coherent text after being trained on a larger dataset of 30 million tokens (about 1% of the English Wikipedia dataset). On a GPU, this training took roughly 37 minutes.</p><h3>Conclusion &amp; Tips</h3><p>This is a great exercise for testing models with different parameters, datasets, and devices. From these experiments, I found that in this case, it’s better to train a smaller model on a larger dataset than a larger model on a smaller dataset. Of course, this might not apply to every situation, but it works here. Plus, it’s super useful (and fun!) to tweak the parameters yourself, run the models, and see how the performance changes.</p><p>If you want to learn more there are amazing materials here: <a href="https://github.com/rasbt/LLMs-from-scratch">https://github.com/rasbt/LLMs-from-scratch</a></p><p><a href="https://medium.com/@antons-tesluks/understanding-fine-tuning-how-ai-models-get-tailored-for-precision-21c7feaf44ab">https://medium.com/@antons-tesluks/understanding-fine-tuning-how-ai-models-get-tailored-for-precision-21c7feaf44ab</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a4eecd5b8b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Retrieval Augmented Generation (RAG) Makes AI Smarter and More Up-to-Date]]></title>
            <link>https://antons-tesluks.medium.com/how-retrieval-augmented-generation-rag-makes-ai-smarter-and-more-up-to-date-74e735f0505a?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/74e735f0505a</guid>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Sun, 03 Nov 2024 15:57:19 GMT</pubDate>
            <atom:updated>2024-11-03T15:57:19.955Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_U0_VBL5QCxmvbHKezIvgA.png" /><figcaption>Source: <a href="https://arxiv.org/abs/2406.10149">https://arxiv.org/abs/2406.10149</a></figcaption></figure><blockquote>Popular LLMs effectively use only 10–20% of the context, and their performance declines sharply with increased reasoning complexity. © Kuratov et al.</blockquote><p>Big language models are amazing at processing information, but they hit limits. Loading tons of text directly into a prompt can be costly, slow, and not very effective. More data doesn’t always mean better answers, and this approach often creates more issues than it solves.</p><p>Take Google’s Gemini 1.5 Pro model, for example. It can process up to 1 million tokens in a single prompt. That’s about nine Harry Potter books! But, if you’re trying to get insights about a specific chapter, pouring all those books into the prompt is overkill. Instead, you’d want a way to pull up only what’s relevant to your question. That’s exactly what Retrieval Augmented Generation (RAG) does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fMUOHcKuWHci4pgA.png" /></figure><h3>What is Retrieval Augmented Generation?</h3><p>RAG is a simple but powerful solution that helps AI models find the right information when they need it. Think of it like a librarian who doesn’t memorize every book but knows where to look for the right answers. RAG makes language models faster, more accurate, and always up-to-date without needing to retrain them constantly.</p><h3>How Retrieval Augmented Generation Works</h3><p>Here’s a quick look at how RAG pulls up only the useful info:</p><ol><li>Chunking: First, RAG breaks down documents into small, manageable “chunks.” These can be sentences or paragraphs, depending on what’s useful.</li><li>Embedding Chunks: Next, each chunk is turned into a unique code or vector using a model like OpenAI’s Ada or Snowflake’s open-source options. This makes it easy to find similar ideas later.</li><li>Storing in a Vector Database: These vectors are stored in a searchable database (like Pinecone, Qdrant, PGVector (for Postgres), Chroma, Weaviate, etc.) that can quickly pull up related info when needed.</li></ol><p>Then, when a user asks a question:</p><ol><li>Query Embedding: The query itself gets embedded as well, so it “speaks the same language” as the stored data.</li><li>Vector Similarity Search: The model checks the query against stored vectors and finds the chunks that match best. For example, if the query is about “tires,” the search might bring up relevant information about “cars” instead of unrelated stuff like “birds.”</li><li>Response Generation with Relevant Context: Finally, the chosen chunks go to the language model along with the query, so it has relevant info right there, resulting in a smarter, more focused answer.</li></ol><h3>Why Businesses Need RAG</h3><p>RAG isn’t just clever — it’s also practical for businesses. Here’s why:</p><ul><li>Keeps Info Up-to-Date: RAG can access data that’s refreshed as often as needed, so there’s no waiting around for a model retrain when things change.</li><li>Efficient Memory: By grabbing only relevant pieces, RAG uses less computing power and answers faster.</li><li>Clear and Reliable Outputs: Since RAG is pulling specific information, you can easily see why it generated an answer, cutting down on random hallucinations.</li></ul><h3>Fine-Tuning RAG for Your Needs</h3><p>To get the most out of RAG, there are a few settings to adjust:</p><ul><li>Chunk Size: Choosing the right size is key — too small, and the context breaks up; too big, and you might lose focus.</li><li>Vector Database Choice: Picking the right database impacts speed, accuracy, and cost.</li><li>How Many Chunks to Pass: Too many can be overwhelming; too few might miss important context.</li><li>Vector Size: The size of the vectors (or embeddings). Larger vectors capture more nuance and detail but need more storage and processing power. Smaller vectors are more lightweight but may miss some finer points in complex queries.</li><li>Embedding Metadata: Adding metadata (e.g. document type, creation date, author, etc.) can improve searches even further.</li><li>Adding Keyword Search: Combining vector searches with keyword searches can help narrow down results more effectively, especially when you are looking for specific terms.</li><li>And many other techniques.</li></ul><p>Also, it is worth mentioning that RAG is flexible enough to work with more than just text. It can work with structured data from SQL tables, semi-structured data like MongoDB databases, and many other data types.</p><h3>Wrapping Up</h3><p>RAG is an essential tool for getting the most out of LLMs. By blending language capabilities with quick, current data from a vector database, RAG gives businesses sharper, more dependable answers while avoiding the expense of frequent retraining. It’s a smart solution to keep AI accurate, efficient, and always up-to-date.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74e735f0505a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Fine-Tuning: How AI Models Get Tailored for Precision]]></title>
            <link>https://antons-tesluks.medium.com/understanding-fine-tuning-how-ai-models-get-tailored-for-precision-21c7feaf44ab?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/21c7feaf44ab</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Sat, 02 Nov 2024 14:03:46 GMT</pubDate>
            <atom:updated>2024-11-02T14:03:46.960Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_VlAPHZXjTQXSD2FD16F8w.png" /><figcaption>Source: <a href="https://kumo.ai/learning-center/understanding-what-is-fine-tuning-in-ai-a-beginners-guide/">https://kumo.ai/learning-center/understanding-what-is-fine-tuning-in-ai-a-beginners-guide/</a></figcaption></figure><p>Most companies integrating AI into their business rely on general purpose models like GPT-4 and Claude Sonnet. However, this is like using a Swiss Army knife instead of a surgical scalpel — it can get the job done, but not as precisely or effectively as a specialized tool. This is where fine-tuning excels.</p><h3>What is fine-tuning</h3><p>Fine-tuning is a process of taking an existing AI model, and training it further for a specific task or purpose, using new data not included in the original training set. At the same time, you are not building a model from scratch (which can be extremely costly). Think of it as training a new employee (which already has some set of skills) to follow your company’s unique protocols and preferred ways of working.</p><p>For example, hospitals and clinics can fine-tune models on patient symptom data, common diagnostic protocols, and standard medical jargon to generate tailored diagnostic suggestions. Another example — a real estate agency can fine-tune a model to recognize real estate-specific terms and details, such as property types, square footage, and local market insights to answer client questions more accurately, or even predict what types of listings might appeal to specific buyer segments.</p><p>To be clear, fine-tuning can be done not just on LLMs (large language models), but pretty much on any AI models (e.g. you can fine-tune an image generation model to make new images in Van Gogh style).</p><h3>Why you should fine-tune your models</h3><p>There are in fact multiple benefits of using a fine-tuned AI model over a generic one:</p><ul><li>Better accuracy — a fine-tuned model generates outputs tailored specifically to your use case, delivering more relevant results.</li><li>Faster and cheaper — a smaller fine-tuned model can perform as well (or even better than) as a larger general-purpose model. Plus, smaller models are faster and cheaper to run. Besides, less clarification is needed in the prompt, hence less tokens in the input, which decreases time and costs even further.</li><li>Domain-specific knowledge — generic models may lack detailed knowledge in certain fields. Fine-tuning with domain-specific data makes sure the model understands relevant terminology and concepts, hence reducing the risk of hallucinations (which occur when the model encounters unfamiliar topics).</li><li>Better personalization — fine-tuning allows the model to adopt a specific style, tone, and format that align with your brand or requirements.</li><li>Leverage your unique data — today data is a new gold, and utilizing your unique data in a model can be very valuable, which is what generic models cannot offer.</li></ul><h3>Types of fine-tuning</h3><p>There are different types of fine-tuning:</p><ul><li>Task-Specific — fine-tuning a model for a specific task (e.g. question answering, summarization, entity recognition, sentiment analysis, etc.).</li><li>Domain-specific — adapting a model to perform better within a particular field or industry, like real estate, legal, or medical.</li><li>Language-specific — fine-tuning a model to improve its performance with a particular language or dialect.</li><li>Style or tone — adjusting a model to reflect a specific voice or style, such as formal vs. informal or technical vs. conversational.</li></ul><h3>How to fine-tune a model (high-level)</h3><ol><li>The first step is to select a pre-trained model as a base. Some of the popular large language models for fine-tuning are BERT, RoBERTa, GPT-3, Llama3 and Mistral models.</li><li>Then you need to prepare a dataset that is relevant to your specific task or domain. Usually it is just a list of input-output pairs. Size of the fine-tuning dataset depends on the complexity of the task. For example, for a simple task like a sentiment analysis you need at least 1,000 data points for the fine-tuning, while some more complex use-cases such as customer service often require over 100,000 data points for the fine-tuning.</li><li>Define training parameters, such as batch size, learning rate, number of epochs, weight decay, evaluation metrics, and others.</li><li>Additionally, you can tweak some parts of the architecture, e.g. add or modify some of the model layers.</li><li>Finally, run the training!</li></ol><h3>Conclusion</h3><p>As businesses begin to integrate AI into their workflows, many start by simply adopting popular models like GPT-4 and Claude Sonnet. However, as they become more experienced with AI, they’ll recognize that using general-purpose models often falls short in terms of accuracy, efficiency, cost, and effective use of unique data. Fine-tuning can efficiently solve those issues by optimizing models to perform specific tasks with precision, speed, and relevance. By tailoring AI systems to their unique needs, businesses can get the most out of their AI models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21c7feaf44ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Before you buy a cryptocurrency: How to evaluate blockchain projects]]></title>
            <link>https://antons-tesluks.medium.com/before-you-buy-a-cryptocurrency-how-to-evaluate-blockchain-projects-dbef73575870?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbef73575870</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[investing]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Sat, 04 Jun 2022 13:04:35 GMT</pubDate>
            <atom:updated>2022-06-04T13:04:35.811Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C0rawRaCGfOOo0E-7ZzYsg.jpeg" /><figcaption><a href="https://twitter.com/CryptoDiffer/status/1532668126667624450/photo/1"><em>Source</em></a></figcaption></figure><p>If you go and search on <a href="http://coinmarketcap.com/">CoinMarketCap</a>, you’ll find more than 10,000 blockchain projects in the ecosystem. But is every project worth it?</p><p>The answer is NO. One of the metrics we use is ‘Tokenomics’ to describe the math and incentives governing crypto assets. Tokenomics include the fundamentals about the working of assets and factors that could affect the token value. It is essential to know that tokenomics play a vital role in incentivizing buying and holding their token.</p><p>Similarly, blockchain projects with poor tokenomics are doomed to failure, as people rapidly sell the tokens at the first sign of trouble. Let’s understand some of the key metrics we will use to determine the value of a project.</p><h3>Key Takeaways</h3><ol><li>Supply doesn’t mean the number of tokens; it is based on several factors that will help us understand the project’s essential characteristics.</li><li>Emission schedules are present in the project documents and would not be available on surface-level websites.</li><li>Return on Investment is essentially the income or cash flow the token can generate for you when you while holding the same.</li><li>Counterparty risk is the probability that one of the parties involved in a transaction might default on its contractual obligation.</li></ol><h3>Supply: Distribution, Token Supply, Vesting, and Emissions</h3><p>Supply doesn’t mean the number of tokens; it is based on several factors that will help us understand the project’s essential characteristics.</p><h4>Market Cap and Fully Diluted Valuation</h4><p>Market cap is the circulating supply multiplied by the token’s price, and FDV is the current price of the token multiplied by the max supply. If a project has a big difference between FDV and market cap, it becomes essential to investigate how tokens will enter the market in upcoming years.</p><p>In short, you need to check the Market Cap vs. FDV ratio to get some hints about the token’s supply. After that, we will move forward to circulating supply and max supply.</p><h4>Circulating Supply and Max Supply</h4><p>Max supply is the total supply of the token and circulating supply is the number of tokens being circulated in the market. Let’s understand this with the example of the <a href="https://curve.fi/">Curve</a> project.</p><p>The curve has an FDV of about 9x their market cap. In simpler terms, they have only 11% of circulating tokens. However, when you dig deep, you will get to know that tokens are locked in various contracts. It means that tokens will go out on set schedules in the market.</p><h4>Emissions Schedules</h4><p>The emissions schedule will help us to figure out the present and future supply and how the supply will reach there. You can find the emissions schedule after deep-diving into a project’s whitepaper and other docs. If you want to go heavy on the project, check the emission schedules to gain answers.</p><h4>Initial Distribution and Unlock Schedule</h4><p>If you plan to provide liquidity to a protocol, you can stake that liquidity to earn a steady stream of tokens. In some projects, in the initial phases, the early adopters use it to increase the share of their tokens dramatically.</p><p>Unlock schedule is vital to check for the projects that have locking mechanisms. For example, many users lock their CVX tokens in <a href="https://www.convexfinance.com/">Convex</a>, which the protocol released after 17 weeks. It resulted in a significant market movement that makes it critical to understand when there will be a large unlock of the circulating supply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oW0qhX5bMlEK4rx0WNBE6w.png" /><figcaption><a href="https://yieldfarmer.substack.com/p/the-bullish-case-for-governance-tokens?s=r"><em>Source</em></a></figcaption></figure><h3>Demand: Value of Project, ROI, Memes, and Game Theory</h3><p>Demand has a lot of factors that shall affect the value of a project. It includes the token utility, project utility, return on investment, memes, and game theory.</p><h4>Project’s Value</h4><p>Not all projects are solving a real-life use case. Some of the projects cater to issues present in the ecosystem, while some are present to merely generate some money. A classic example is the <a href="https://twitter.com/__tricck/status/1455083308702834690">squid game token</a> built on no use case, yet the founders duped millions of people.</p><p>Similarly, it is essential to understand the purpose of the token. Nowadays, some projects run two tokens (utility and governance) for easy access. However, you need to check the projects with a single token to determine whether it is a utility or cash flow token. Also, check for any additional perks that the token promises.</p><h4>Return on Investment</h4><p>ROI is essentially the income or cash flow that the token can generate for you while you are holding it. For example, in centralized exchanges like <a href="https://www.binance.com/en">Binance</a>, you can stake your tokens to earn extra income.</p><p>Rebasing is also a form of ROI where you get more of the particular token as the protocol inflates its supply. <a href="https://www.olympusdao.finance/">Olympus</a> works on similar lines as their heavy inflation rate provides you with extra tokens.</p><h4>Memes</h4><p>If a token doesn’t have a real value and still people want the token, it could be because of memes or bullish beliefs in the future. In short, you need to make sure how the project’s community is operating. It can involve visiting their Discord, activity on Twitter, and other specific activities.</p><p>A classic example is Dogecoin. It has no cash flow or rewards. Still, people want to accumulate DOGE. Another example is <a href="https://shibatoken.com/">Shiba INU</a> which doesn’t have any real value, yet it has a lot of popularity.</p><p>Let’s understand the following element: Game Theory.</p><h4>Game Theory</h4><p>Even if a project has the most talented team, the best marketing strategy, and perfectly solves an existing issue, there is still no 100% guarantee that the project will succeed. The reason for that is that often success of a project to some extend depends on the actions of other market participants, which is impossible to predict. For example, a project’s success may depend on which blockchain it is deployed to, or how other projects within the same ecosystem will evolve. Thus, there is a factor of randomness that determines the project’s market share and how the market share will get distributed.</p><p>One standard example of game theory is lockups which creates incentives for locking your tokens in a contract. For example, you can lock your CRV tokens to earn a share of the protocol revenue. The longer you plan to lock your tokens (for up to 4 years), the greater you will reap the rewards. However, it is impossible to predict the lockup period that other participants will choose.</p><h3>Team Members</h3><p>A successful project needs to establish a team that not only has the required skills, but also puts complete faith in the product. Essentially, to deliver the product and burn the midnight oil, a team should be bullish on what they are precisely building.</p><p>Similarly, the founding team should also comprise management with a clear-cut understanding of market needs. It will help solve the current pain points so that the product can rapidly flourish in the market. In short, you need to check the team members who are building the product while evaluating the project.</p><p>It is crucial to understand one more metric before getting a true essence of a blockchain project. Let’s learn more about counterparty risk.</p><h3>Counterparty Risk</h3><p>Counterparty risk is the probability that one of the parties involved in a transaction might default on its contractual obligation which can lead to a failure of the whole project. Generally, it shows how one project relies on another project/party for their work.</p><p>It is very similar to how one bank relies on the solvency of the another bank. A recent example is <a href="https://www.terra.money/">LUNA</a>, as it crashed badly because of reliance on UST stablecoin. Also, some other sable coin suffered after the USDT crash, since they have used USDT as a collateral. In short, you need to examine all parties involved in the project’s operations and its future development, how well those counterparties are doing their job, as well as what is the chance of those parties to fail and what can be the consequences of that.</p><h3>Conclusion</h3><p>It is essential to perform your own research and search for projects that fulfill the above criteria. Do not blindly follow or take advice from anyone; simply DYOR. Even if people invest in specific projects, you need to stick to the fundamentals, as not all tokens need to be appreciated, even if they are great products.</p><h3>Other posts</h3><ol><li><a href="https://medium.com/@antons-tesluks/what-are-blockchain-bridges-or-how-to-connect-different-blockchains-f6044ad46fa">What are Blockchain Bridges or How to Connect Different Blockchains</a></li><li><a href="https://antons-tesluks.medium.com/what-is-defi-and-why-is-there-so-much-hype-around-it-ac856fae01d1">What is DeFi, and why is there so much hype around it?</a></li><li><a href="https://antons-tesluks.medium.com/nfts-what-it-is-where-to-buy-and-whats-it-s-potential-c8e8a65148e2">NFTs: What it is, Where to buy, and What’s it’s potential</a></li><li><a href="https://antons-tesluks.medium.com/how-layer-2-solutions-solve-the-blockchain-main-problem-6eaa2bfdc09e">How Layer 2 Solutions Solve The Main Blockchain Problem</a></li><li><a href="https://antons-tesluks.medium.com/cryptocurrency-vs-token-vs-nft-vs-stablecoin-everything-you-need-to-know-db9160ef33b8">Cryptocurrency vs. Token vs. NFT vs. Stablecoin — Everything You Need to Know</a></li><li><a href="https://antons-tesluks.medium.com/what-are-blockchain-and-cryptocurrency-and-why-is-it-the-future-c87e0c46aa0">What are Blockchain and Cryptocurrency, and why it is the future?</a></li><li><a href="https://antons-tesluks.medium.com/proof-of-work-vs-proof-of-stake-6f440038e0fd">Proof-of-Work vs. Proof-of-Stake or Why Blockchain is so Secure</a></li><li><a href="https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745">Bitcoin vs. Ethereum or What are Smart Contracts</a></li></ol><p><strong>Keywords</strong>: Cryptocurrency, investing, blockchain, ethereum, decentralization, applications</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbef73575870" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are Blockchain Bridges or How to Connect Different Blockchains]]></title>
            <link>https://antons-tesluks.medium.com/what-are-blockchain-bridges-or-how-to-connect-different-blockchains-f6044ad46fa?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6044ad46fa</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cross-chain-bridge]]></category>
            <category><![CDATA[trustless]]></category>
            <category><![CDATA[bridge]]></category>
            <category><![CDATA[crosschain]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Sun, 15 May 2022 16:34:42 GMT</pubDate>
            <atom:updated>2022-05-15T16:34:42.058Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to connect blockchains and retain decentralization</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*fJ2JAlSdP3rezy2_zwkhZQ@2x.png" /><figcaption><a href="https://chinadefi.com/866.html">Source</a></figcaption></figure><p>Blockchain has come a long way as we witness its implementation in most sectors. It promises decentralization and a better governance model. However, as the number of blockchain networks grew, it became difficult to work together. It not just limits the concept of decentralization but also hinders economic growth. Each blockchain is defined by its domain walls, leading to high transaction costs and congestion.</p><p>Bridges are built between networks to allow applications to build on each other’s services and strengths.</p><h3>Key Takeaways</h3><ol><li>A blockchain bridge enables smart contracts and data exchange between independent platforms.</li><li>A bridge allows for cheaper, faster, and easy access to the decentralized finance (DeFi) space.</li><li>Bridges fall under two categories: <strong>trusted</strong> and <strong>trustless</strong> bridges.</li><li>Bridges pose software failure, smart contracts, censorship, and custodial risks.</li></ol><h3>Blockchain Bridges</h3><p>A blockchain bridge solves the existing problem by enabling exchange of tokens and data between different blockchains and other independent platforms. A bridge provides a compatible way to interoperate securely when both chains have different protocols, rules, and governance models. Although bridges open up new market possibilities, they also come up with several security challenges.</p><p><strong>Example:</strong> Suppose you want to send one Solana coin to an Ethereum wallet. Since Solana and Ethereum are two different blockchains, there is no easy way to make such transfer. However, you can use a bridge such that your Solana coin will be transferred from Solana blockchain to your wallet on an Ethereum blockchain, where the Solana coin will be “wrapped” by the bridge in an Ethereum supported ERC-20 standard.</p><h3>Why use a blockchain bridge?</h3><p>When one tries to port assets from one blockchain to another, one can see its benefits. It could be cheaper, faster, and easy access to the decentralized finance (DeFi) space. The bridges enable DApps to access the strengths of various blockchains and space for developers of different ecosystems to interact and build new platforms. Hence, bridges connect blockchains to allow the transfer of information and tokens.</p><p>Investors also use bridges to make the most of markets — Orca is available on the Solana blockchain but supports a wrapped version of ETH. Technological advancements are making it easier to use bridges. Some protocols enable people to swap their tokens from different protocols by integrating bridge functionality.</p><h3>How do Blockchain Bridges work?</h3><p>Although bridges can convert smart contracts or send data, the token transfer is essential. Let’s understand this with an example.</p><p><strong>Example:</strong> Suppose you want to transfer Bitcoin to Ethereum. A blockchain bridge will hold your coin and create equivalents in ETH. In short, BTC gets locked in a smart contract while you gain ETH. When you want to convert back to BTC, the ETH will burn, and your wallet will receive BTC.</p><p>However, the process will incur more fees when you convert BTC to ETH. It is similar to using your Visa to pay for your MasterCard bills. It helps to make transactions fast, seamless, and interoperable.</p><h3>What are the use cases of Bridges?</h3><h4>Promote Scalability</h4><p>Processing many transactions is often a bottleneck for more extensive blockchain networks like Ethereum, resulting in delays and hindering operations. A bridge takes off the pressure to move tokens to another blockchain using a sidechain. It contributes to the growth of DEXs and DeFi applications. Also, bridges help to use DApps on their blockchains by choosing the platform of your choice for optimizing returns and lowering your overall costs.</p><p><em>Read about </em><a href="https://www.zeeve.io/blog/defi-disrupting-the-fintech-space/"><em>how the growth of DeFi</em></a><em> has made the need for Blockchain Bridges paramount.</em></p><h4>Lower transaction fees</h4><p>Blockchain bridges help lower transaction costs significantly and enable developers to opt for a blockchain that charges less than the original one. Users can easily bridge ETH from the mainnet to layer 2 (L2) rollup to explore different DApps. Bridges also help build connectivity between two or more blockchains for frictionless data and tokens.</p><h4>Unraveling of smaller blockchains</h4><p>As information and tokens can move to less known networks at a lesser cost, bridges help to bring such smaller blockchains to the limelight. It makes people aware of the emerging blockchains and helps expand the crypto ecosystem. Bridges also help to explore blockchain ecosystems as one can explore an alternative layer 1 (L1) by transferring your ETH from Ethereum Mainnet to the alternative L1 via a bridge.</p><h4>Own native crypto assets</h4><p>You might not have $xyz crypto at times but shall have $abc crypto. Although you can also use a centralized exchange to swap your funds, it would require more time if your $abc isn’t available on your centralized wallet.</p><p><strong>Example:</strong> Polkadot allows BTC transfer to Ethereum through a bridge running as a parachain on Polkadot that may have collators monitoring and translating the information between the Polkadot Relay Chain and an external chain. Another parachain bridge working makes it possible to build a custom user interface to interact with these bridges. Users can swap their BTC to participate in a DeFi smart contract on Ethereum via Polkadot.</p><h3>What are the different types of Blockchain Bridges?</h3><p>Broadly, bridges fall under two categories: <strong>trusted</strong> and <strong>trustless</strong> bridges. As the name suggests, trusted bridges depend upon a central system for operations, while trustless bridges operate without human intervention using smart contracts and zero knowledge algorithms.</p><p>While people mostly rely on the bridge operator’s reputation in trusted bridges, the bridge’s security is identical to that of the underlying blockchain in a trustless bridge. In short, trustless bridges are trust-minimized, while trusted bridges have trust assumptions. It also makes trust-based bridges fast and economical when you plan to transfer a large amount of crypto.</p><p>Also, users have full access to their funds in trustless bridges, while the control of assets is in the hands of operators in trusted bridges. A trustless bridge will provide complete peace of mind if you are worried about your crypto falling into the wrong hands. Many bridging solutions adopt models between these two extremes with varying trustlessness.</p><p><strong>Example:</strong> Binance Bridge is a famous decentralized bridge that offers one of the largest tradable cryptocurrencies. AnySwap enables you to view all of your balances across different coins and transfer balances from one place to another.</p><h3>What are the potential risks of using Bridges?</h3><p>As bridges are in the early stages of development, they are prone to several risks because of no optimal design. Bridges pose smart contract risk as the users shall lose funds due to a bug in the code, a software failure that can drain the assets, human errors, attack of malicious actors, censorship risk, and custodial risk. All such possibilities can lead to a bridge being hacked and hence loss of funds.</p><p>One recent hack was on the <a href="https://roninblockchain.substack.com/p/community-alert-ronin-validators?s=w">Ronin network</a>, where hackers made off with $540 million worth of Ethereum and USDC stablecoin. In another attack, hackers stole about $80 million worth of cryptocurrency from Qubit Bridge at the end of January 2022.</p><blockquote><em>Read about the </em><a href="https://www.coindesk.com/tech/2022/02/02/blockchain-bridge-wormhole-suffers-possible-exploit-worth-over-250m/"><em>$326 million exploits</em></a><em> on the nascent Wormhole bridge.</em></blockquote><h3>Wrapping Up</h3><p>Decentralization has always been a clarifying factor of blockchain, making it a priority over other operative improvements. The bridges depict a positive sign as they are crucial to onboarding users onto Ethereum L2s and even users who want to explore different ecosystems. We may be inching toward a normalized crypto economy, but progress is better than limiting ourselves to what already exists.</p><h3>Other posts</h3><ol><li><a href="https://antons-tesluks.medium.com/what-is-defi-and-why-is-there-so-much-hype-around-it-ac856fae01d1">What is DeFi, and why is there so much hype around it?</a></li><li><a href="https://antons-tesluks.medium.com/nfts-what-it-is-where-to-buy-and-whats-it-s-potential-c8e8a65148e2">NFTs: What it is, Where to buy, and What’s it’s potential</a></li><li><a href="https://antons-tesluks.medium.com/how-layer-2-solutions-solve-the-blockchain-main-problem-6eaa2bfdc09e">How Layer 2 Solutions Solve The Main Blockchain Problem</a></li><li><a href="https://antons-tesluks.medium.com/cryptocurrency-vs-token-vs-nft-vs-stablecoin-everything-you-need-to-know-db9160ef33b8">Cryptocurrency vs. Token vs. NFT vs. Stablecoin — Everything You Need to Know</a></li><li><a href="https://antons-tesluks.medium.com/what-are-blockchain-and-cryptocurrency-and-why-is-it-the-future-c87e0c46aa0">What are Blockchain and Cryptocurrency, and why it is the future?</a></li><li><a href="https://antons-tesluks.medium.com/proof-of-work-vs-proof-of-stake-6f440038e0fd">Proof-of-Work vs. Proof-of-Stake or Why Blockchain is so Secure</a></li><li><a href="https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745">Bitcoin vs. Ethereum or What are Smart Contracts</a></li></ol><p><strong>Keywords</strong>: Crosschain, blockchain, bridge, ethereum, solana, trustless, layer 2, smart contracts, cryptocurrency, decentralization</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6044ad46fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NFTs: What it is, Where to buy, and What’s it’s potential]]></title>
            <link>https://antons-tesluks.medium.com/nfts-what-it-is-where-to-buy-and-whats-it-s-potential-c8e8a65148e2?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e8a65148e2</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[metaverse]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Sat, 07 May 2022 08:09:37 GMT</pubDate>
            <atom:updated>2022-05-07T08:09:37.481Z</atom:updated>
            <content:encoded><![CDATA[<h4>Basics about Non-Fungible tokens</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5gFPCcAtVl2VPyIVO9-GQ.png" /><figcaption><a href="https://www.beeple-crap.com/everydays">Source</a></figcaption></figure><p>The news of individuals (or organizations) buying NFTs spread like wildfire on the Internet when people pour in millions of dollars worth of money. The charm of NFTs came into the limelight very recently, where everyone started exploring the options to buy one. However, not everyone understands the term ‘NFT’ correctly. This post decodes NFT, its working, use-cases, marketplaces, and vital statistics.</p><h3>What is an NFT?</h3><p>Non-Fungible Tokens (or NFTs) are digital assets that represent real-world collectibles recorded in smart contracts. NFTs are unique, non-interchangeable, and harness the power of a digital ledger called blockchain technology. Blockchain helps to establish proof of ownership to its buyers.</p><p>Cryptocurrency is a ubiquitous word that you might have already heard somewhere. NFTs are pretty similar to cryptocurrencies as they both work on blockchain technology. However, NFT tokens are non-fungible, i.e., they can’t be exchanged like-for-like. While, fungible tokens such as Bitcoin, Ethereum, etc., are divisible and can be directly replaced by the other token.</p><p>The token standard that was common for the use of NFTs was ERC-721. It is the first of its kind that fueled the craze for NFTs. As the NFTs are unique assets that no one cannot replicate, the ERC-721 token standard represents the same scenario. It led to the birth of various other token standards, out of which ERC-1155 rapidly covered the market.</p><p>ERC-1155 token standard was the team’s mastermind behind the Enjin project, introduced in 2019. It is also known as a popular gaming token and is a mix between the ERC-20 standard and the ERC-721 standard. The major challenge that ERC-1155 overcomes is the inability to easily manage the number of instances of non-fungible tokens, as well as inability to conduct batch transfers.</p><p>We have already read about fungibility, non-fungibility, and the prevalent token standards in the industry. But, how does an NFT function? How is blockchain helpful in this regard?</p><h3>How does an NFT work?</h3><p>Non-Fungible tokens receive fuel from blockchain technology, which is also the powering source of cryptocurrencies. People can also create the tokens on smart-contract-enabled blockchains with non-fungible token tools. As we already read about the Ethereum standards (ERC-721, ERC-1155), the race is run by Solana, NEO, EOS, and TRON, as these blockchains also have their NFT standards.</p><p>Non-fungible tokens and smart contracts help store important information such as the owner’s identity, rich metadata, or secure file links. The potent of non-fungible tokens to immutably prove digital ownership is an essential progression for an increasingly digital world. It helps instill a sense of trustlessness and promises security applied to the exchange of almost any asset.</p><p>Blockchain technology has progressed quite rapidly, leading to an increase in the number of developers working on their projects without any protocol. The tech stack has successfully opened the use cases of NFTs beyond the artwork. Let’s read about them.</p><h3>How are NFTs used?</h3><p>Non-Fungible tokens are high-value collectibles differentiated from each other. NFTs exist not just in the form of artwork but also in music, videos, or tweets. In short, a person can reproduce a digital file that will act as an NFT for identification purposes. It guarantees them proof of authenticity and gives the ownership credits to the buyer. An interesting point worth considering is that you can make NFTs from almost anything unique stored digitally and holds value.</p><p>NFTs are a lot-trendy these days as they provide value to the owner while at the same time saving the space (as you do not have to opt for a physical asset). NFTs help artists and content creators with an opportunity to monetize their work sitting from any corner of the world. It helps to skip the fees of auction houses and provides direct profit to the creators.</p><p>The recent years were fruitful for NFTs as the brands like Charmin and Taco Bell have auctioned off themed NFT art to raise funds for charity. Charmin got sold out in minutes for a price of 1.5 wrapped Ether! NBA Top Shot is another silver lining that generated more than $500 million in sales. Now you realize the potent of NFTs and why people are so excited for buying them.</p><h3>Popular NFT Marketplaces</h3><p>People planning to purchase can check the below marketplaces for buying non-fungible tokens.</p><h3><a href="https://opensea.io/">Opensea</a></h3><p>OpenSea is a decentralized NFT marketplace for buying, selling, and trading NFTs.It is the biggest marketplace to date for digital goods that comprises artwork, music, etc. In November 2021, the platform hit $10 Billion in sales volume.</p><h3><a href="https://superrare.com/">SuperRare</a></h3><p>SuperRare is a marketplace that hosts rare and valuable pieces of work. It is also one of the leading players in the NFT-powered digital art space that runs on the Ethereum blockchain. The platform has also clocked with over $127 million earned by the artists.</p><h3><a href="https://rarible.com/">Rarible</a></h3><p>Rarible is a decentralized application that allows artists and creators to issue and sell NFTs. It also launched RARI, a governance token to reward creators and collectors. In 2021, Rarible clocked more than 2.1 million monthly active users on the platform.</p><p>Several other marketplaces also exist in the market spaces, such as Foundation, Decentraland, etc. While the highest-grossing NFT is Pak’s ‘The Merge,’ which got sold for a whopping $91.8 Million, the NFT market cap has successfully crossed the barrier of $22 Billion, growing multifold from the year 2020.</p><h3>Conclusion</h3><p>Non-Fungible tokens add potential to creating security tokens, tokenizing digital and real-world assets. The power that NFTs hold is immense as they can tokenize any real-life assets. Even if you buy a physical piece of land at any place, turning them into an NFT will help prove the property’s ownership.</p><p>The blog briefed several forms other than artwork that you could make into NFTs. Certificates, documentations, licenses, or anything you dream of could turn into a non-fungible token. NFTs have already swept significant industries in the market and plan to acquire other sectors. The future seems quite positive as we possibly explore different concepts of interest that can bring a revolutionary change to the way we look at them.</p><h3>Other posts</h3><ol><li><a href="https://antons-tesluks.medium.com/what-is-defi-and-why-is-there-so-much-hype-around-it-ac856fae01d1">What is DeFi, and why is there so much hype around it?</a></li><li><a href="https://antons-tesluks.medium.com/how-layer-2-solutions-solve-the-blockchain-main-problem-6eaa2bfdc09e">How Layer 2 Solutions Solve The Main Blockchain Problem</a></li><li><a href="https://antons-tesluks.medium.com/cryptocurrency-vs-token-vs-nft-vs-stablecoin-everything-you-need-to-know-db9160ef33b8">Cryptocurrency vs. Token vs. NFT vs. Stablecoin — Everything You Need to Know</a></li><li><a href="https://antons-tesluks.medium.com/what-are-blockchain-and-cryptocurrency-and-why-is-it-the-future-c87e0c46aa0">What are Blockchain and Cryptocurrency, and why it is the future?</a></li><li><a href="https://antons-tesluks.medium.com/proof-of-work-vs-proof-of-stake-6f440038e0fd">Proof-of-Work vs. Proof-of-Stake or Why Blockchain is so Secure</a></li><li><a href="https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745">Bitcoin vs. Ethereum or What are Smart Contracts</a></li></ol><p><strong>Keywords</strong>: NFT, Non-Fungible, Token, Blockchain, cryptocurrency, decentralization, Ethereum, smart contracts, tokens, ERC721, ERC1155, NFT marketplace.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e8a65148e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Layer 2 Solutions Solve The Main Blockchain Problem]]></title>
            <link>https://antons-tesluks.medium.com/how-layer-2-solutions-solve-the-blockchain-main-problem-6eaa2bfdc09e?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eaa2bfdc09e</guid>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[layer-2]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Tue, 29 Mar 2022 14:02:30 GMT</pubDate>
            <atom:updated>2022-03-29T14:05:56.317Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why layer 2 solutions are crucial for blockchain progress</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jemw2Mt33_2O57iwSsQNCA.jpeg" /><figcaption><a href="https://www.freepik.com/photos/business"><em>Source</em></a></figcaption></figure><p>According to statistics, about 90% of U.S. and European banks had started exploring blockchain’s potential by 2018. While blockchain might not be the most ‘Googled’ word of 2021, it still captured a vast audience with its state-of-the-art technology. A blockchain is a distributed database of records called blocks that record transactions across many computers. Popular examples of a blockchain includes Bitcoin, Ethereum, Solana, Avalanche, and Polygon.</p><p>Although blockchains can perform transactions, main networks are expensive and slow as they cannot handle many transactions. Bitcoin can take only 3–7 transactions per second (TPS), while Ethereum stands at 7–11 TPS. On the contrary, Visa can process about 20,000 TPS which narrows down to using alternate solutions for allowing a higher number of transactions per second and faster processing times.</p><h3>Key Takeaways</h3><ol><li>Layer 2 scaling solution enables high throughput while maintaining the security of the underlying blockchain.</li><li>Rollups are Layer 2 scaling solutions that perform transaction operations off the main Ethereum blockchain.</li><li>State channels possess highly robust privacy properties and hence get the name of Layer 2 constructions.</li><li>Sidechains are smaller blockchains that work separately and cannot operate without a parent chain (or mainchain).</li><li>Parachains are project-specific blockchains that can be customized for use cases and fed into the leading blockchain.</li></ol><h3>What are Layer 2 Solutions?</h3><p>While we discussed how main networks could not process a higher number of transactions per second, Layer 2 solutions help speed up the process and make blockchain systems accessible to everyone.</p><p>Layer 2 scaling solution enables high throughput (thousands of transactions per second) while maintaining the security of the underlying blockchain. Let’s learn about different types of Layer 2 solutions existing in the cryptic space.</p><h3>Different Types of Layer 2 Solutions</h3><p>We will focus on two primary Layer 2 solutions: Optimistic rollups and Zero-knowledge rollups. The section will also cover channels, Plasma, and rollups.</p><h3>Rollups</h3><p>The Layer 2 scaling solutions perform transaction operations off the main Ethereum blockchain but posting the transaction data onto Layer 1 are called rollups. The rollups help execute transactions outside Layer 1, significantly reducing gas fees. Alongside, they help to increase transaction throughput and active participation. There are two different types of rollups based on various security measures.</p><h4>Zero-knowledge rollups</h4><p>Zero-knowledge rollups (ZK-rollups) help process thousands of transactions per second on the Ethereum network. It performs this by combining both on and off-chain processes to validate transactions much faster and helps reduce gas fees. It uses Merkle Trees to validate transactions more quickly and efficiently than L1 blockchains. Merkle Trees enable blockchains to be secure from fake on-chain record data.</p><p><strong>Pros</strong>:</p><ul><li>Near-instant transfers</li><li>Secure and decentralized.</li><li>ZK Rollups are not vulnerable to attacks.</li></ul><p><strong>Cons</strong>:</p><ul><li>A user can influence transaction ordering</li><li>Some zk rollups do not offer Ethereum Virtual Machine support</li><li>It is challenging to compute validity proofs for smaller applications</li></ul><p><strong>Examples:</strong> <a href="https://www.immutable.com/">Immutable X</a>, <a href="https://starkware.co/">Starkware</a>, <a href="https://loopring.org/">Loopring</a>, and <a href="https://hermez.io/">Polygon Hermez</a>.</p><h4>Optimistic Rollups</h4><p>Optimistic rollups are Layer 2 solutions that run on top of Ethereum’s underlying layer and don’t perform any mathematical computation. They function in a way that after completion of a transaction, optimistic rollups submit a new state to the Ethereum Mainnet. The rollups are written in the Ethereum blockchain that helps to optimize the transaction and reduce costs.</p><p>Compared to zero-knowledge rollups, which use validity proofs, optimistic rollups rely on fraud proofs. In short, the aggregators publish minimal information on the Layer 1 platform and assume that the provided data is correct. However, if someone notices a fraudulent transaction, the optimistic rollup will perform a fraud-proof and run the transaction’s computation.</p><p>Pros:</p><ul><li>Increased throughput &amp; security</li><li>Low gas fees</li><li>Smart contract capability</li></ul><p>Cons:</p><ul><li>Long withdrawal time</li><li>An operator can influence transaction ordering</li></ul><p><strong>Examples:</strong> <a href="https://arbitrum.io/">Arbitrum</a>, <a href="https://boba.network/">Boba</a>, <a href="https://fuel.sh/">Fuel Network</a>, and <a href="https://cartesi.io/">Cartesi</a>.</p><h3>State channels</h3><p>State channels possess highly robust privacy properties and hence get the name of Layer 2 constructions. The channels do not grant any update unless it is digitally approved and signed by all network users. It ensures security as only the opening and closing transactions are available to everyone.</p><p>The channels are capable of smooth two-way communication between the underlying blockchain and off-chain transactional channels. State channels enhance overall transaction capacity and speed and do not need validation from L1 nodes — instead, they use a multi-signature or smart contract mechanism.</p><h3>Plasma</h3><p>Plasma is a Layer 2 framework used to create scalable apps based on a convergence of smart contracts and cryptographic verification. Joseph Poon and Vitalik Buterin are the proposers of Plasma who transferred transactions from the main blockchain to a side chain for fast and relatively inexpensive transactions. The sidechains are responsible for sending reports back to the main chain and interacting with it to deal with emerging disputes.</p><h3>What is a Sidechain?</h3><p>As the name suggests, sidechains are smaller blockchains that work separately. However, they cannot operate without a parent chain (or mainchain). They work alongside the mainchain to increase efficiency, add functionality, and act as a permanent solution to blockchain scalability. They have their validators (or miners) and even their consensus mechanism (proof-of-stake (PoS) or proof-of-work (PoW)). It adds to the complexity as they can be difficult to change once established.</p><p>On a positive note, the separate infrastructure provides security to the mainchain as the sidechains are more centralized than the mainchains. However, trading a little protection for extra speed can be okay if it is separate from the main blockchain. Additionally, the information outsourced to the sidechain can be selected to maintain blockchain security, with the most sensitive information remaining on the mainchain.</p><p><strong>Example:</strong> Bitcoin 2.0 Release and <a href="https://www.rsk.co/">The Rootstock (RSK) Sidechain</a></p><h3>What is a Parachain?</h3><p><a href="https://polkadot.network/">Polkadot</a> and <a href="https://kusama.network/">Kusama networks</a> consider Parachain as the heart of the networks. These project-specific blockchains can be customized for use cases and feed into the leading blockchain (Relay Chain). The main blockchain takes responsibility for the consensus, network’s shared security, and transaction settlements.</p><p>Parachain favors its users by reducing costs and optimizing transactions. Unlike primary blockchains (like Ethereum), the developers on Polkadot and Kusama can create their independent blockchains. It means that individual parachain can have their parameters such as transaction fees, block times, governance mechanisms, and mining rewards.</p><p>The security is enhanced in Parachains as they do not have to rely on validator nodes. They are maintained by collator nodes that store a complete history for each parachain. The parachain then aggregates transaction data into blocks for adding to the Relay Chain. Projects must participate in a parachain auction to become a parachain on Polkadot and Kusama.</p><p><strong>Example:</strong> Polkadot and Kusama</p><h3>Final Thoughts</h3><p>The above article underlined how crucial Layer 2 solutions are for people. As we race towards the era of blockchain adoption, it will become more expensive to utilize a particular network. Layer 2 solutions come to the rescue as they help maintain the initial aspects of a blockchain (such as security, transparency, automation, etc.) while giving a solution that addresses their limitations.</p><h3>More Readings:</h3><ol><li><a href="https://antons-tesluks.medium.com/what-is-defi-and-why-is-there-so-much-hype-around-it-ac856fae01d1">What is DeFi, and why is there so much hype around it?</a></li><li><a href="https://antons-tesluks.medium.com/cryptocurrency-vs-token-vs-nft-vs-stablecoin-everything-you-need-to-know-db9160ef33b8">Cryptocurrency vs. Token vs. NFT vs. Stablecoin — Everything You Need to Know</a></li><li><a href="https://antons-tesluks.medium.com/what-are-blockchain-and-cryptocurrency-and-why-is-it-the-future-c87e0c46aa0">What are Blockchain and Cryptocurrency, and why it is the future?</a></li><li><a href="https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745">Bitcoin vs. Ethereum or What are Smart Contracts</a></li><li><a href="https://antons-tesluks.medium.com/proof-of-work-vs-proof-of-stake-6f440038e0fd">Proof-of-Work vs. Proof-of-Stake or Why Blockchain is so Secure</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eaa2bfdc09e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is DeFi, and why is there so much hype around it?]]></title>
            <link>https://antons-tesluks.medium.com/what-is-defi-and-why-is-there-so-much-hype-around-it-ac856fae01d1?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac856fae01d1</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Tue, 22 Feb 2022 19:00:12 GMT</pubDate>
            <atom:updated>2022-02-22T19:38:23.779Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UnKGg9bqCpK7gAtyIZRvWA.jpeg" /><figcaption><a href="https://www.freepik.com/photos/business">Source</a></figcaption></figure><blockquote>“In our digital age, tokenization compliments the information-based technology as a decentralized way of capital allocation”.</blockquote><blockquote>- Abdulla Bin Touq Al Marri, the Minister of Economy of the United Arab Emirates</blockquote><p>The finance sector is always known for the regulations imposed by the governments, tied up with decades-old technologies and practices. The Decentralized Finance (DeFi) covers traditional Finance with an accessible international banking system that provides control and visibility over your money. Also, it exposes you to global markets and offers alternatives to your national currency or banks. An interesting fact about DeFi space is that the Total Value Locked (TVL) has crossed the mark of $69 Billion. It gives a green signal as people transition from traditional to decentralized Finance.</p><h3>Summary</h3><ul><li>DeFi stands for ‘Decentralized Finance’ and works based on smart contracts.</li><li>A smart contract is a set of rules and regulations that execute after meeting certain conditions.</li><li>Decentralized Finance vs. Traditional Finance boasts several notable differences that make DeFi stand out from the crowd.</li><li>DeFi boom has welcomed hundreds of projects for making a place in the blockchain space.</li><li>Transactions through DeFi can be more efficient, flexible, secure, and automated.</li></ul><h3>What is DeFi?</h3><p>DeFi stands for ‘Decentralized Finance’ that harnesses the power of blockchain technology for providing financial services. Blockchain helps several entities retain a copy of transaction history and prevents centralized intermediaries from controlling money. Large corporations also take care of financial applications, including loans, insurance, crowdfunding, derivatives, and more. So, one of the ultimate benefits of DeFi is removing intermediaries from all transactions, unlike the traditional banks.</p><h3>How does DeFi work?</h3><p>The concept of Decentralized Finance is made successful by smart contracts. A smart contract is a set of rules and regulations that execute after meeting certain conditions. Smart contracts are an alternative to traditional banks. The code (or the rules in the smart contract) cannot be changed or altered once the smart contract is live.</p><p>For example, consider a scenario where you have to transfer a certain amount of money to your parents every month. If a smart contract contains rules to transfer funds from your account to your parent’s account every month, it will not do unless your account has the necessary cash. Similarly, no one has the authority to modify the contract by any means.</p><h3>DeFi vs. Traditional Finance</h3><p>Decentralized Finance vs. Traditional Finance boasts several notable differences that make DeFi stand out from the crowd. However, both the finances differ majorly on three points:</p><ol><li>The root of decentralized Finance is a public blockchain that acts as the trusted source for governing all operations in the financial sector. On the contrary, traditional Finance involves using law and licensed financial institutions for governing all the functions.</li><li>Being an open and transparent financial medium, decentralized Finance continues to gain traction as anyone can build financial services and tools on blockchains with programming skills.</li><li>On the contrary, a person has to pass through several hindrances that make it improbable for the traditional finance system to embrace the emerging trend. One must obtain proper licenses and authorization from regulators to work in a conventional finance system, limiting innovation.</li></ol><h3>Popular Projects of DeFi</h3><p>DeFi boom has welcomed hundreds of projects for making a place in the blockchain space. Some projects are trendy that an avid crypto user might have interacted with, while some platforms are trying to climb up the ladder for retaining a top seat. Out of the Top 5 projects on DeFi Pulse, three are from the lending sector. But, what are lending platforms, and how do we group them? Let’s look at some of these answers.</p><h3>Lending Platforms</h3><p>Decentralized Finance has opened up a more expansive space for people as it offers crypto loans in a trustless manner. DeFi doesn’t require the route of intermediaries and allows users to enlist their crypto coins on the platform for lending purposes. A borrower can take a loan through P2P (peer-to-peer) lending or liquidity pool based lending. It provides complete transparency to users and seamless money transfer. DeFi lending is favorable to lenders as they earn interest, while borrowers often use the funds for margin trading options.</p><p>DeFi helps users borrow loans at much lower interest rates than traditional finances. DeFi has the highest lending growth rate and is the most prevalent contributor for locking crypto assets among all decentralized applications (DApps). It offers a censorship-free environment and provides equal opportunities to everyone. Some of the popular lending platforms are Maker, Aave, and Compound.</p><h3>Decentralized Exchanges (DEXs)</h3><p>DEX or decentralized exchange is a marketplace where transactions occur directly between people and automated market makers (AMMs). They do not involve any intermediary such as banks, brokers, or payment processors, making it easy for anyone to trade cryptocurrencies on the platform. Unlike centralized exchanges that allow trade between fiat and crypto, decentralized exchanges allow trading between cryptocurrency tokens.</p><p>Nowadays, decentralized exchanges also allow people to do margin trading and advanced trading options that were once limited to centralized exchanges. If we talk about the working of DEXs, they harness the underlying technology of blockchain and smart contracts for executing trades on the exchange. An exciting fact distinguishing CEX and DEX is the former record transactions on that exchange’s internal database, while the latter directly settle transactions on the blockchain.</p><p>The most popular DEXs such as Uniswap, Curve Finance, and Sushiswap are part of the growing suite of decentralized Finance (DeFi) tools, making a vast range of financial services available directly from a compatible crypto wallet.</p><h3>Other DeFi Projects</h3><p>Other DeFi projects (such as yield aggregators, derivatives, and payments platforms) are prevalent in the blockchain space, apart from decentralized exchanges and lending platforms. Instadapp is one famous project that consists of a smart wallet built on top of popular DeFi projects like MakerDAO, Compound, Uniswap, etc., for managing assets. The platform allows users to perform complex trading actions without needing advanced technical or financial experience.</p><h3>Final Thoughts</h3><p>Decentralized Finance has improved the way people think of Finance by providing various benefits to customers and investors. It induces trustlessness and eliminates intermediaries from the scenario. DeFi harnesses blockchain technology that instills a sense of immutability with the help of cryptography and consensus algorithms. The wide applications are an example of DeFi continuing to explore the space.</p><p>However, it also served with some of the downfalls that include an issue of scalability. They might encounter difficulties in the scalability of hosting blockchain from various perspectives. DeFi is also prone to instability as the project could automatically inherit instability from the host blockchain. Liquidity concerns are a critical factor as the TVL value speaks that there is a way to go for Decentralized Finance.</p><p>Decentralized Finance is still in its growing stage where it is thrown to severe challenges that involve smart contract risk to technological dangers. DeFi is a new venture that provides immense benefits and outperforms traditional financial instruments. It doesn’t distinguish anyone in any regard and allows anyone with a working internet connection to access any global currency, earn interest on deposits, and obtain loans instantaneously. It provides an alternative source of currency (stablecoins) that is making its move for widespread adoption and revolutionizing how we do Finance</p><h3>Other readings</h3><ol><li><a href="https://antons-tesluks.medium.com/cryptocurrency-vs-token-vs-nft-vs-stablecoin-everything-you-need-to-know-db9160ef33b8">Cryptocurrency vs. Token vs. NFT vs. Stablecoin — Everything You Need to Know</a></li><li><a href="https://antons-tesluks.medium.com/what-are-blockchain-and-cryptocurrency-and-why-is-it-the-future-c87e0c46aa0">What are Blockchain and Cryptocurrency, and why it is the future?</a></li><li><a href="https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745">Bitcoin vs. Ethereum or What are Smart Contracts</a></li><li><a href="https://antons-tesluks.medium.com/proof-of-work-vs-proof-of-stake-6f440038e0fd">Proof-of-Work vs. Proof-of-Stake or Why Blockchain is so Secure</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac856fae01d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cryptocurrency vs. Token vs. NFT vs. Stablecoin — Everything You Need to Know]]></title>
            <link>https://antons-tesluks.medium.com/cryptocurrency-vs-token-vs-nft-vs-stablecoin-everything-you-need-to-know-db9160ef33b8?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/db9160ef33b8</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[stable-coin]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[token]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Sun, 09 Jan 2022 06:29:48 GMT</pubDate>
            <atom:updated>2022-01-09T06:55:06.564Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cryptocurrency vs. Token vs. NFT vs. Stablecoin — Everything You Need to Know</h3><h4>Difference between cryptocurrency, tokens, and NFTs.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KvDFnFlm20y_FeCj_BXHYw.jpeg" /><figcaption><a href="https://www.freepik.com/photos/business">Source</a></figcaption></figure><p>In the previous article we discussed what are smart contracts (<a href="https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745">Bitcoin vs. Ethereum or What are Smart Contracts</a>). However, creation of tokens is arguably one of the most popular usage of smart contracts. Blockchain tokens, such as ERC-20 tokens, are often confused with cryptocurrencies; however, they are fundamentally different and serve different needs.</p><h3>Cryptocurrency vs. Tokens</h3><p>Cryptocurrencies act as digital money and are in the core of a specific blockchain system. A cryptocurrency can be transferred within its native blockchain system from one account to another, as well as it is used for paying a fee for initializing a transaction on that particular blockchain. For example, for a user to make a transaction in Ethereum blockchain, a specific fee in ether should be paid. Same with Bitcoin blockchain and its native cryptocurrency bitcoin.</p><p>Unlike native cryptocurrencies such as bitcoin, ether, and litecoin, a token is simply a smart contract that stores data about how many of those tokens each account has, and is built on top of an existing blockchain system. There are multiple reasons why many organizations prefer creating tokens over cryptocurrencies.</p><blockquote>Creating a token does not require building the whole blockchain infrastructure with nodes that will process and validate its transactions. Instead, token creators can utilize features of existing blockchain systems, such as security and proper decentralization. It is not only cheaper, but also faster and easier. On top of that, creating a token on an existing blockchain system allows interaction with other smart contracts and tokens that are deployed to that blockchain. Tokens can serve for different purposes, such as representing loyalty points in an online platform, a currency in a game, a right to vote or perform other operations, and others.</blockquote><p>The most popular token standards are ERC-20, ERC-721, and ERC-1155. We will discuss each of them.</p><h3>ERC-20 Token</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*WOxbqT84FvZ-GBx4tHwWDg.png" /><figcaption>Simplified structure of an ERC-20 token</figcaption></figure><p>In its core, an ERC-20 token is a smart contract deployed to Ethereum blockchain that stores balance data and implements a set of specific functions, such as transferring tokens to other accounts, checking balance of a particular address, checking total supply of the token, and others. It is up to the token’s developer to decide how exactly those functions are implemented. However, the majority of ERC-20 tokens follow implementation proposed by <a href="https://docs.openzeppelin.com/contracts/2.x/erc20">OpenZeppelin</a>.</p><p>Therefore, when sending an ERC-20 token to another account, no value is actually transferred. Instead, a query is sent to the according smart contract with the request to update stored data inside that smart contract — to decrease balance of the sender by the specific number of tokens, and to increase balance of the recipient by the same value. Also, as mentioned before, for this transaction a fee in ether should be paid.</p><p>ERC-20 is the most popular token standard and is used to create fungible tokens. Fungible means that two such tokens are absolutely equal and can be exchanged one with another without losing any value. Think about an ERC-20 token as a fiat currency, where one dollar bill is equal to another dollar bill.</p><h3>Stable coins</h3><p>A stable coin is simply a blockchain token (in most cases an ERC-20 or a similar standard fungible token) that is pegged to a fiat currency. This means that the stable coin’s value always remains the same relative to the pegged currency.</p><p>For example, the most popular stable coin is USDT or Tether, and its value is always equal to one dollar. A company issuing that token is responsible to keep the token’s value fixed through different mechanisms. For example, by balancing the outstanding supply of the tokens based on demand for that stable coin on different exchanges. Stable coins take an important part in blockchain ecosystems, which can be judged by the fact that, at the moment of writing this article, USDT stable coin alone has a market capitalization of around 80 billion US dollars. Other popular stable coins are USDC, DAI, BUSD, and others.</p><h3>ERC-721 vs. ERC-1155 Tokens or NFTs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*In4xI0U__TWGWgjyp5KigA.png" /><figcaption>Simplified structure of an ERC-721 token</figcaption></figure><p>Unlike ERC-20 tokens, every ERC-721 token is unique and is only one of the kind. One ERC-721 smart contract can have a certain amount of IDs, where each id represents a single unique NFT (non-fungible token) that has an owner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*ExtQpV9JM3lfMl80A3-EEQ.png" /><figcaption>Simplified structure of an ERC-1155 token</figcaption></figure><p>Another standard for non-fungible tokens, ERC-1155, on the other hand, is a mix between ERC-20 and ERC-721 standards. ERC-1155 allows having multiple fungible instances for every class of non-fungible tokens.</p><p>Since ERC-1155 token standard is particularly popular in gaming, it will be easier to explain its concept on a gaming scenario. From the example of the diagram above, we can see that there are three different non-fungible groups of tokens (classes) that are stored in a single ERC-1155 smart contract. Namely, gold, silver, and a diamond sword. There are 100 and 500 instances of gold and silver, respectively, while there is only one diamond sword. Therefore, ERC-1155 allows to combine fungible and non-fungible tokens in a single smart contract, which, in fact, is very convenient from the development point of view, as well as the gas consumption and load on the network.</p><h3>Other posts</h3><ol><li><a href="https://antons-tesluks.medium.com/what-are-blockchain-and-cryptocurrency-and-why-is-it-the-future-c87e0c46aa0">What are Blockchain and Cryptocurrency, and why it is the future?</a></li><li><a href="https://antons-tesluks.medium.com/proof-of-work-vs-proof-of-stake-6f440038e0fd">Proof-of-Work vs. Proof-of-Stake or Why Blockchain is so Secure</a></li><li><a href="https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745">Bitcoin vs. Ethereum or What are Smart Contracts</a></li></ol><p><strong>Keywords</strong>: Blockchain, cryptocurrency, decentralization, Bitcoin, Ethereum, smart contracts, tokens, NFT, stablecoin, ERC20, ERC721, ERC1155.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db9160ef33b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin vs. Ethereum or What are Smart Contracts]]></title>
            <link>https://antons-tesluks.medium.com/bitcoin-vs-ethereum-or-what-are-smart-contracts-1f0e60f0745?source=rss-d036e0280cd0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f0e60f0745</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Antons Tesluks]]></dc:creator>
            <pubDate>Sun, 19 Dec 2021 10:27:14 GMT</pubDate>
            <atom:updated>2021-12-19T10:39:59.231Z</atom:updated>
            <content:encoded><![CDATA[<h4>Difference between the two of the most popular blockchains.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ihIqAQqagL6VpoY2qptnA.jpeg" /><figcaption><a href="https://unsplash.com/photos/bj8U389A9N8">Source</a></figcaption></figure><blockquote>Study how to write smart contracts, which is the basic unit of programming a blockchain for business purposes. It is the equivalent of being taught HTML and Java during the early Internet days. And master how to create assets or tokenize existing ones on a blockchain.</blockquote><blockquote><strong>- William Mougayar, </strong>Executive Chairman, Kin Foundation at Kin Ecosystem</blockquote><p>Bitcoin and Ethereum are two of the most popular cryptocurrencies that have revolutionized the cryptic space. Bitcoin is the first cryptocurrency that came into existence and garnered people’s interest much after the rising prices. However, Ethereum gained popularity by introducing smart contracts that gave birth to Decentralized Applications (DApps). Let’s delve deeper into the post to understand them better.</p><h3>Bitcoin &amp; Ethereum: How are they Similar?</h3><p>Bitcoin was born in 2008 by an unknown person or group of people using the name Satoshi Nakamoto. It flourished in the market in 2009 after the release of open-source software. Bitcoin was created to provide people with a way to transfer money over the internet. Even in 2021, Satoshi has been anonymous to the world, and no one knows their identity.</p><p>While talking of Ethereum, it started making its presence in late 2013 when Vitalik Buterin first described it in a white paper. Vitalik argued that the vision of Bitcoin limits only by the transfer of money. It led to the development of Ethereum, intending to build decentralized applications (DApps).</p><p>The consensus mechanism that drives both of these cryptocurrencies is none other than Proof-of-Work that depends on the computing power of machines. However, Ethereum 2.0 (or Eth2) is an upgrade to Ethereum that will switch to the Proof-of-Stake algorithm for a more scalable, secure, and sustainable blockchain.</p><p>Bitcoin and Ethereum are used as a mode of payment and a store of value. While Bitcoin has shown significant returns in the past, Ethereum has created a new world powered by Decentralized Applications (DApps). Being decentralized (or free from an intermediary), Bitcoin and Ethereum are transparent, censorship-resistant, instant, work 24*7, and facilitate transactions with lower fees.</p><p>Ethereum is not just a store of value, but it provides other blockchain applications to utilize its potential. It has its cryptocurrency Ether which acts as the driving force of Ethereum for facilitating transactions on the Ethereum blockchain. It helps to run the smart contracts on Ethereum seamlessly.</p><h3>What are smart contracts?</h3><p>A smart contract is a programmable contract with rules and agreements between the buyer and seller that execute after meeting all the conditions. These transactions happen on the Blockchain and remain free of third-party.</p><p>Consider a scenario where you wish to purchase a car from your friend or acquaintance. The procedure seems like a nightmare with legalities and ownership transfer involving a line of pesky intermediaries. When we bring smart contracts into the frame, it will automatically transfer the ownership after transferring funds and significantly reduce time as the process is free from mediators.</p><h3>Characteristics of Smart Contracts</h3><p>Smart contracts are written pieces of code that execute automatically after meeting all the conditions. They offer numerous advantages apart from removing the middlemen from the frame. Smart contracts can track performance in real-time, consequently bringing tremendous cost savings. They live on the internet and run on software code that helps them execute transactions quickly. They are perfect for the DApps and make the work more straightforward and accessible.</p><p>Smart contracts are efficient, leading to more value-generating transactions that process per unit of time. They leave no room for miscommunication and cut eradicates the communication gaps. The details in smart contracts are stored permanently and don’t allow any data change.</p><p>They provide a medium of trust as there is no room for manipulation or error. It helps to achieve greater confidence when running a smart contract. In short, smart contracts lower the cost of transactions, guarantee more security, reduce reliance on trusted intermediaries, and help turn legal obligations into automated processes.</p><h3>How do Smart Contracts work?</h3><p>The origin of smart contracts dates back to 1994 when Nick Szabo, an American computer scientist, proposed it in his paper. He is also the inventor of a virtual currency called Bit Gold. Szabo defined smart contracts as computerized transaction protocols that execute the terms of a contract.</p><p>Developers write the code on a blockchain after defining all the terms and conditions of the event. Just as we have if/else statements that work upon meeting the specific criteria, the same is the case with smart contracts. If the conditions mentioned in the contract are met, the transaction is approved. Else the transaction gets fortified.</p><p>Once the transaction is complete, the Blockchain is updated, and the parties involved can view the results. In short, four processes govern the working of smart contracts:</p><ol><li><strong>Pre-defining the contract:</strong> It is the stage of writing the rules/conditions in the smart contracts.</li><li><strong>Events:</strong> This stage reflects some events that trigger execution of the smart contract.</li><li><strong>Execution and the transfer of value:</strong> The smart contract is executed depending on prescribed conditions.</li><li><strong>Settlement process:</strong> The last stage involves settling smart contracts after the implementation.</li></ol><h3>Applications of Smart Contracts</h3><p>The use of smart contracts made a long road to explore its applicability in every field. We can find cases where decentralized applications could have led to a better environment, even in our daily routine. With the increasing vulnerabilities of the hacks on various platforms, securing the identity was just a mere lie. <a href="https://www.uport.me/">uPort</a>, a popular DApp, provides decentralized identity management to have control of your data.</p><p>The game has evolved as users can lend their computing power or storage to a stranger in return for some extra bucks. <a href="http://filecoin.io/">Filecoin</a> does the job of renting your computer storage to people, while <a href="https://www.golem.network/">Golem</a> rents your computing power to help you earn some extra dollars!</p><p>Tokens, NFTs, Stablecoins, Decentralized Exchanges, Marketplaces, etc., are some of the domains where smart contracts have made a defining presence in a short time. A popular marketplace, Opensea provides a marketplace to buy NFT in exchange for cryptocurrencies and provides value to the work curated by creators.</p><p>Apart from these, several DeFi DApps such as Uniswap, Sushi, 1inch Network, Degens, WinSome, and others have stood firm against the wind to maintain a spot in the market.</p><p>Ethereum led the foundation of smart contracts and inspired other blockchains to follow the same route. Polygon and Binance Smart Chain support the same smart contracts as Ethereum Virtual Machine processes them. At the same time, developers will be able to deploy the same smart contracts on Solana by using Solidity compilers like Solang or Neon Labs EVM.</p><p>The numbers are astonishing both for Bitcoin and Ethereum. The former registers a market capitalization nearly equal to $900 Million while the latter stands at $500 Million. The market dominance for Bitcoin stands at ~40%, with ~240k transactions happening daily. On the other hand, Ethereum registers ~20% market dominance with ~1.2 million daily transactions on the Blockchain. The statistics clearly show that Bitcoin and Ethereum dominate almost two-thirds of the market.</p><h3>Conclusion</h3><p>Bitcoin was the first and foremost cryptocurrency that received support from many individuals and companies. However, the use case of Bitcoin is limited to just being a transfer of value. On the contrary, Ethereum (with the help of smart contracts) powered the economy with decentralized applications and became the second most popular blockchain system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f0e60f0745" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>