<?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 Bryan Kyritz on Medium]]></title>
        <description><![CDATA[Stories by Bryan Kyritz on Medium]]></description>
        <link>https://medium.com/@bryan-kyritz?source=rss-9ae77b61dc88------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EZM7Ja0mgDcYPC6ieWsmmg.jpeg</url>
            <title>Stories by Bryan Kyritz on Medium</title>
            <link>https://medium.com/@bryan-kyritz?source=rss-9ae77b61dc88------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 19:13:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bryan-kyritz/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[sadasd]]></title>
            <link>https://bryan-kyritz.medium.com/sadasd-5a3ac7b80fb7?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a3ac7b80fb7</guid>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 17:52:35 GMT</pubDate>
            <atom:updated>2024-06-29T17:52:35.846Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><a href="https://t.co/y1sH3diJ0Y">Waterbear</a></li><li><a href="https://t.co/y1sH3diJ0Y">Waterbear</a></li><li><a href="https://8d41-207-38-186-68.ngrok-free.app/signup?r=2787a925-0c0a-41ca-a589-78c33410bc60">Waterbear</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a3ac7b80fb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling Apache Spark Applications on Azure: A Comprehensive Guide]]></title>
            <link>https://bryan-kyritz.medium.com/scaling-apache-spark-applications-on-azure-a-comprehensive-guide-ce3348a488e3?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce3348a488e3</guid>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[big-data-analytics]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[azure-devops]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 18:06:27 GMT</pubDate>
            <atom:updated>2024-02-06T18:06:27.464Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lAfqC3lhX5yFsTd8" /></figure><p>If you’ve developed an Apache Spark application on your laptop and are now facing the challenge of processing terabytes of data, it’s time to scale up. The leap from local development to managing vast datasets requires a sophisticated approach. This is where Azure comes in, providing the infrastructure and services necessary for seamless scaling. In this guide, we’ll walk you through the steps to quickly scale your Spark application on Azure, ensuring you’re equipped to handle your growing data needs with confidence.</p><h3>Creating an Azure HDinsight Cluster</h3><p>If you’re reading this tutorial, you likely already have an Azure account. If you do not have one, you should first create one. Then create a new resource and search for “HDinsight”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tn2XqvKKdO_DLLkov4KRDQ.png" /></figure><p>Azure HDInsight is a managed, open-source analytics service in the cloud for enterprises, offered by Microsoft. It allows the use of open-source frameworks such as Apache Hadoop, Spark, Hive, Kafka, HBase, and more for big data processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v864iRwulVg-5OxMmorzlw.png" /></figure><p>When you click on “Create” on the “Azure HDInsight” page, you will start creating the cluster. On this page, you will notice you need to register your subscription to use the HDInsight resource. When you click “Click here to register”, it will take you to this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gg_9bA5MRemn2uS7AH0yJg.png" /></figure><p>Here, search for “HDInsight”, click on it, and then click register. After a few minutes, go back to creating an HDInsight cluster. Here, you need to select “Spark” as your cluster type &amp; select the spark version you want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CN3Ymrh9Ac2Z2jxJhJNl7w.png" /></figure><p>Once you finish filling out all of the other required information, your next step is to set up storage for your cluster. Here, we are creating an Azure blob storage to store our cluster in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gg-AjIN8dZbxSv5WT9vg8g.png" /></figure><p>We can skip over “Security &amp; Networking” and go to “Configuration + Pricing”. On this page, you can select the nodes you want in your Apache Spark cluster. You will likely also get the error that your quota is not enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e887piHWI_a5Rwkde9_TYQ.png" /></figure><p>To fix this error, you will need to go to the home page of the Azure portal, open the side menu, then click on “Help + Support”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q21Y2IOkzajzH9oyK3x_IA.png" /></figure><p>Once you click on “Help + Support” you will need to click “Create a support request”. For the issue type you should select “Service and subscription limits (quotas)”, then select your subscription, then select “HDInsight” for your quota type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2urQ9YFOtYO1W9U3OVHFQ.png" /></figure><p>Here, you should click “Enter details”. Once the side menu appears, select the location where you want your cluster &amp; the SKU Family you want to request vCPUs. When I did this I requested for many different types and requested 100 cores from each. Azure responded to my requests within a few hours and gave me the requested quota increase. If this does not happen to you, check your emails and see if Microsoft is sending you emails about the quota increase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ip8SsMipHsq9giX9Ul-AQ.png" /></figure><p>Once Azure increases your quota limit, you can now configure the nodes you want to use in your Apache Spark cluster. You can additionally select the “Enable autoscale” option and configure how your cluster scales. Azure will also tell you how much your cluster will cost per hour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4EoAm9soL9bz-NSJkbZtAA.png" /></figure><p>Finally, hit next go to “Review and Create” and complete creating your Azure HDInsights cluster. This will start setting up your cluster. This process can take 5–10 minutes. Once initialized, you can click on the newly created resource and visit its page. Here, you can click on the URL and it will take you to your cluster’s dashboard. (Mine is blocked for security).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RRoBQTFTi5afUziCYMZ1_A.png" /></figure><p>Clicking on the link will ask you for your ssh login credentials you configured when created the Spark cluster. Once you enter those, it will take you to this page, where you can manage your cluster&#39;s resources, configure the cluster, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axEtQZlSLQfYU2A6m13jsg.png" /></figure><p>If you were already running spark applications locally, you are likely familiar with the Spark UI. To view the Spark UI of your cluster, you can click “Spark3” on the side menu, then on the right click “Spark3 History Server UI”. From here you can click on individual “App IDs” to view the job further.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNJ9CR71J923PyMN8MgvEQ.png" /></figure><p>This page will likely be empty as we haven&#39;t run any spark applications yet.</p><h3>Congrats!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9StYD7yePlkUE1GJ.png" /><figcaption><a href="https://learn.microsoft.com/en-us/azure/hdinsight/media/hdinsight-private-link/outbound-resource-provider-connection-only.png">https://learn.microsoft.com/en-us/azure/hdinsight/media/hdinsight-private-link/outbound-resource-provider-connection-only.png</a></figcaption></figure><p>You now have successfully created a scalable infrastructure to run your Apache Spark applications. Now that this infrastructure is set up, you will want to run Spark jobs and further customize your nodes.</p><p>Here are additional tutorials you may find useful (adding once done):</p><p>[How to run spark applications with Livy on Azure apache spark HDInsight cluster]</p><p>[How to customize jar dependencies with Azure Apache Spark HDInsight cluster ]</p><p>[How to customize Python version with AzureApache Spark HDInsight Cluster]</p><p>I hope this article was helpful. If it helped you please leave a like! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce3348a488e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ETH Global Paris 2023: Developing a Market for Decentralized Health Records]]></title>
            <link>https://blog.caballabs.com/eth-global-paris-2023-developing-a-market-for-decentralized-health-records-cc3207d25da5?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc3207d25da5</guid>
            <category><![CDATA[ethglobal]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[healthtech-startup]]></category>
            <category><![CDATA[healthtech]]></category>
            <category><![CDATA[dscience]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Wed, 23 Aug 2023 01:49:14 GMT</pubDate>
            <atom:updated>2023-08-23T01:49:14.642Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpiUbadEtdh9iTfr1nROiA.png" /></figure><p>Cancer kills one in six people annually, yet many forms are preventable and treatable if detected early. This pattern applies to numerous diseases like cardiovascular issues, diabetes, and obesity. To combat these ailments through precision medicine, preventative care, and data mining, our health data infrastructure must advance significantly. Technologies like decentralized storage, AI, and tokenization are poised to revolutionize healthcare. However, a robust data layer is essential for this transformation.</p><h3>Meet Deehr</h3><p>Deehr (now renamed Jori) is a population-level decentralized data and payment processing layer for the web designed to help win the battle against preventable and curable diseases. Our specific focus is patient care data; specifically its ownership, storage, and monetization. Jori allows patients to own, share, and monetize their health data. Patient data is securely stored on a decentralized network, while their data-hashes are stored on a blockchain. At the push of a button, patients can opt to share this data with friends, caregivers, payors, and data-buyers. Jori solves important problems that plague the healthcare ecosystem — namely, data collection, representation, secure storage, clinico-genomics, longitudinal data, real-world outcomes, decreased overhead, payment processing, and incentive alignment.</p><h3>How it&#39;s built</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50hln6Y5RhuFNbIPLOn0mQ.png" /></figure><p>Firstly, patients need an easy way to onboard to the Dapp. To make this easy, we used <a href="https://www.biconomy.io/">biconomy</a> to enable users to signup with social logins and have gasless transactions. Next, these patients upload their data to <a href="https://www.lighthouse.storage/">lighthouse</a> to be stored forever and the IPFS CIDs are then saved to our data layer contract. For the hackathon, we focused on specifically skin cancer data. Next, a data buyer can purchase access to run a computation job on this data and get the result of that computation, in this case, the model weights for a skin cancer binary classification.</p><h3>Challenges we faced</h3><p>If you have ever competed in a hackathon, you know the feeling of being nearly complete with a feature in the project when suddenly disaster strikes. You run into an error and as you try to solve it, you can almost hear the time ticking down in your head. In times like this you are forced to make a decision: try and solve the error or build a workaround.</p><p>In this project, one of the most time-consuming errors we faced was attempting to use Lilypad to invoke a bacalhau job. The specific error ended up being that we built the docker image on a macOS system, while Bacalhau was expecting one built on a Linux machine. At the time we were unaware of this and debugging it was hard. From the smart contract side, it appeared to all be working, but the job was never started. The workaround we ended up doing was creating a node.js program that listened for a specific event to be emitted in the smart contract and using that event’s data to start the bacalhau job via the cli via the node.js code. This enabled us to directly see the errors Bacalahu was giving and helped us debug further and eventually get it to work.</p><h3>Hackathon results</h3><p>In the last few moments before submission, we were able to get the system to work end-to-end where data buyers are able to hit “Train” and access all data stored in the smart contract &amp; lighthouse and invoke a Bacalhau job to train a binary skin cancer classification model. The team was ecstatic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UsF4ptE0L4-Nklqb6_4cOw.png" /></figure><p>In the end, we won an award for best use case for FVM &amp; Bacalhau. We believe Bacalhau and the Compute-over-Data ecosystem represent a key component to enable patient data to be computed and analyzed, without compromising the patient’s data. This is an essential part of a health data layer as it would enable patients to get compensated for their data without leaking this sensitive information to the internet.</p><h3>Challenges and Future Roadmap</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s0Rg_PNxknl40qTUqNIpqg.png" /></figure><p>This weekend, we mainly focused on having a health data layer that can be utilized to train an ai model on it. Our future plans are to make Jori the go-to for storing healthcare data.</p><p>In the upcoming months, we aim to:</p><ol><li>Support FHIR data (the standard for electronic health record systems)</li><li>Enable both querying and Ai model training</li><li>Build javascript &amp; python libraries to do complex computation on the data</li><li>Support fully homomorphic encryption to protect patient data</li><li>Run a private bacalhau cluster with networking controls to prevent an attacker from stealing data during computation</li><li>Use real patient data</li></ol><p>We are currently working with a hospital (<a href="https://carepointhealth.org/">Carepoint Health</a>) to bring this vision to fruition. Without forward-looking medical institutions &amp; professionals, a project like this would be impossible.</p><h3>Our Team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*lx42pYnw-tkpA7cEFMNK0w.jpeg" /></figure><ul><li><a href="https://twitter.com/kyritzb">Bryan Kyritz</a> (Smart contracts &amp; decentralized computing)</li><li><a href="https://twitter.com/brendanprobst">Brenden Probst</a> (UI &amp; UX)</li><li>Borak Yesil (AI Models)</li></ul><p>Finally, we would like to express our appreciation for the help provided by the team at Bacalhau &amp; Lilypad, as well as the members of the Bacalhau Slack community. Without your help, we would have never completed it before the hackathon submission deadline. Additionally, thank you to Ethglobal for throwing such amazing hackathons.</p><p>See you all at Ethglobal New York!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc3207d25da5" width="1" height="1" alt=""><hr><p><a href="https://blog.caballabs.com/eth-global-paris-2023-developing-a-market-for-decentralized-health-records-cc3207d25da5">ETH Global Paris 2023: Developing a Market for Decentralized Health Records</a> was originally published in <a href="https://blog.caballabs.com/">Cabal-Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Illusion of Ownership]]></title>
            <link>https://medium.com/gypsytoken/the-illusion-of-ownership-9f802c21cde9?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f802c21cde9</guid>
            <category><![CDATA[income-inequality]]></category>
            <category><![CDATA[banks]]></category>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[economy]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Fri, 09 Dec 2022 17:32:01 GMT</pubDate>
            <atom:updated>2022-12-09T17:35:59.930Z</atom:updated>
            <content:encoded><![CDATA[<h4>How Banks and Debt Keep Us From Truly Owning Anything</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HxehnheL93FxgRWW.png" /></figure><p>In today’s world, it’s easy to feel like we own the things we buy. We work hard, save up our money, and use it to purchase the things we want, whether it’s a house, a car, or a new smartphone. But in reality, our ability to truly own these things is often an illusion.</p><p>When we take out a mortgage to buy a house, for example, we are essentially borrowing money from a bank and agreeing to pay it back over time, plus interest. As long as we keep making our monthly payments, we can continue to live in the house and call it our own. But if we stop making those payments, the bank can take the house away from us.</p><p>The same is true for other forms of borrowing, such as car loans or things we buy with credit cards. We may think we own these things, but in reality, we are beholden to our creditors and must continue to make payments in order to keep them.</p><p>This is all part of the debt economy, in which we are constantly encouraged to take on debt in order to purchase the things we want. This allows banks and other lenders to make money off of us, while also allowing us to buy things we otherwise wouldn’t be able to afford.</p><p>But the problem with this system is that it leaves us feeling like we never truly own anything. We may have the things we want, but they come with strings attached in the form of monthly payments and interest. And if we can’t keep up with those payments, we risk losing everything we thought we owned.</p><p>In addition to this, the constant pressure to take on debt can lead to financial instability and even bankruptcy. It’s easy to get caught up in the cycle of borrowing and spending, only to find ourselves overwhelmed by debt and unable to keep up with our payments.</p><p>So, while it may feel like we own the things we buy, the truth is that the banks and the debt economy hold a lot of power over our ability to truly own anything.</p><h3>People are fed up and things are changing</h3><p>A revolution is brewing. There is a potential solution to the problem of not truly owning anything in the current system is the rise of decentralized finance, or “DeFi.” DeFi is a growing movement that uses blockchain technology to create financial products and services that are not controlled by traditional banks and institutions.</p><p>Instead of borrowing from a bank and agreeing to pay interest, DeFi allows individuals to borrow and lend directly from each other, or even themselves. This eliminates the need for intermediaries, such as banks, and allows for greater control and transparency in the financial system.</p><p>Additionally, DeFi allows for the creation of new financial instruments and products that are not possible in the traditional financial system. For example, <a href="http://www.gypsy.city/">Gypsy</a> is creating a way for renters to get home ownership the same way they would with a mortgage but without the down payment. A system like this can enable everyone to become a homeowner which the current banking system gatekeeps.</p><p>By becoming our own banks through DeFi, we can take back control of our financial lives and truly own the things we purchase. We can borrow and lend on our own terms, without the need for intermediaries, and create new financial instruments that are not possible in the traditional system. This is the key to freeing ourselves from the limitations of the current debt economy and truly owning the things we buy.</p><h3>About Gypsy</h3><p>Gypsy enables digital nomads &amp; remote workers to gain home ownership while exploring the world. We transition humanity into global citizens through tokenized real estate and cryptocurrency.</p><p><a href="https://gypsytoken.org/">Website</a> | <a href="https://twitter.com/gypsycityre">Twitter</a> | <a href="https://discord.com/invite/dzqasrgHNT">Discord</a> | <a href="https://www.instagram.com/gypsycityofficial/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f802c21cde9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gypsytoken/the-illusion-of-ownership-9f802c21cde9">The Illusion of Ownership</a> was originally published in <a href="https://medium.com/gypsytoken">GypsyToken</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real Estate Tokenization: A Beginner’s Guide]]></title>
            <link>https://medium.com/gypsytoken/real-estate-tokenization-a-beginners-guide-a006a57e225?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/a006a57e225</guid>
            <category><![CDATA[tokenization]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[real-estate]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[homeownership]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 16:14:59 GMT</pubDate>
            <atom:updated>2022-12-08T16:14:59.912Z</atom:updated>
            <content:encoded><![CDATA[<h4>Exploring the Benefits, Risks, and Opportunities of Investing in Real Estate Tokens</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ry1zY0pL1YHHCit5.png" /></figure><p>Real estate tokenization is a concept that is gaining traction in the world of finance and technology. In a nutshell, tokenization involves the creation of digital tokens that represent a real-world asset, such as a piece of property. These tokens can be bought, sold, and traded on blockchain platforms, providing investors with a new and innovative way to invest in real estate.</p><p>The process of tokenization is relatively simple. First, a property is valued and a corresponding number of tokens is created. These tokens can be purchased by investors, who then own a fractional share of the property. The ownership of the tokens is recorded on the blockchain, which provides a secure and transparent ledger of transactions.</p><p>One of the key benefits of real estate tokenization is increased liquidity. Because tokens can be easily bought and sold on blockchain platforms, investors can easily enter and exit their positions. This makes it easier for investors to diversify their portfolios and access a wider range of real estate assets.</p><p>Another advantage of tokenization is the potential for increased accessibility. Because tokens can be purchased in smaller increments, it allows individual investors to own a piece of high-value property that may have been out of reach for them in the past. This opens up the real estate market to a wider pool of investors and could potentially democratize the industry.</p><p>Tokenization also has the potential to improve the efficiency of the real estate market. Because transactions are recorded on the blockchain, they are transparent and easily verifiable. This can help to reduce the need for intermediaries, such as brokers and lawyers, and streamline the process of buying and selling property.</p><p>Of course, there are also challenges and risks associated with real estate tokenization. One of the biggest concerns is the lack of regulation in the blockchain and cryptocurrency space. This has led to concerns about fraud and the potential for investors to be scammed. Additionally, the value of tokens is often highly volatile, which can make it difficult for investors to accurately assess the value of their investments.</p><p>Despite these challenges, many believe that real estate tokenization has the potential to revolutionize the way that property is bought and sold. As the technology continues to develop and mature, we will see more and more properties being tokenized and traded on blockchain platforms. This could provide a new and exciting opportunity for investors, but it will also require careful consideration and due diligence to ensure that it is done safely and responsibly.</p><h3>About Gypsy</h3><p>Gypsy enables digital nomads &amp; remote workers to gain home ownership while exploring the world. We transition humanity into global citizens through tokenized real estate and cryptocurrency.</p><p><a href="https://gypsytoken.org/">Website</a> | <a href="https://twitter.com/gypsycityre">Twitter</a> | <a href="https://discord.com/invite/dzqasrgHNT">Discord</a> | <a href="https://www.instagram.com/gypsycityofficial/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a006a57e225" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gypsytoken/real-estate-tokenization-a-beginners-guide-a006a57e225">Real Estate Tokenization: A Beginner’s Guide</a> was originally published in <a href="https://medium.com/gypsytoken">GypsyToken</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elliptic Curve Cryptography in C++]]></title>
            <link>https://blog.caballabs.com/elliptic-curve-cryptography-in-c-b73b37e89801?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/b73b37e89801</guid>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[ecc]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[public-key-cryptography]]></category>
            <category><![CDATA[elliptic-curve]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 18:57:49 GMT</pubDate>
            <atom:updated>2022-11-21T19:02:24.278Z</atom:updated>
            <content:encoded><![CDATA[<h4>Part 2) Building an ECC class in code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBGOFmpSJtBxdUiKEHNmGg.png" /><figcaption>Elliptic curve cryptography visualization, in space (Midjourney)</figcaption></figure><p>In part 1 we discussed how elliptic curve cryptography works in theory. If you haven&#39;t yet read part 1 we recommend that you read that first to get an understanding of the theory.</p><p><a href="https://blog.caballabs.com/understanding-the-basics-of-elliptic-curve-cryptography-visually-b32acf4c0779">Understanding the basics of Elliptic-curve cryptography — visually</a></p><h3>A modification to the theory to implement it in code</h3><p>In part 1 we arrived at this step in the elliptic curve theory to get point R from P ⊕ Q = R.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*yeYqS-8CBGd4QRV6LgHfVA.gif" /><figcaption><a href="https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/">https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/</a></figcaption></figure><p>To implement this in code to run on a computer, we need to add an additional step. The theory allows for any point P, Q where P ⊕ Q = R for any points P and Q on the curve. While this works theoretically, the issue with this is that we have an infinite amount of points P, Q, and thus R. Having an infinite amount of points is bad for computers because we want fast computations.</p><p>To fix this problem, we restrict points P and Q to whole numbers in a fixed range. To make this work, when computing the formula for the elliptic curve (y² = x³ + ax + b), we use modulus division as a trick of rolling over numbers when we hit the maximum. If we pick the maximum to be a prime number, the elliptic curve is called a prime curve and has excellent cryptographic properties.</p><p>Our plot looks like this when we only allow for the whole numbers in a fixed range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/0*yCE9rlpCdqxzA_5D.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/0*BtNwiExJr7vwJClx.gif" /><figcaption>https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/</figcaption></figure><p>While these look like random numbers, these are just the whole numbers of points P, Q, and thus R. It is a flat representation of points, and the operation P ⊕ Q = R is able to wrap from the ends of the graph to the other side.</p><p>This “wrapping” around effect can be visualized in 3 dimensions as a torus. Notice how the blue lines on the left and right images are all straight, continuous lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*WhY_yjxw3Rf4wA47.gif" /><figcaption><a href="https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/">https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/</a></figcaption></figure><h3>Need help visualizing the wrap effect?</h3><p>A way we can imagine this wrapping effect is in the game Pacman, specifically how Pacman is able to seemingly teleport from the left to the right of the screen. If we are told Pacman can’t teleport then how would this be possible?</p><p>There is only one way that this can be possible but requires us to question what were looking at. We originally see that the gameboard is a flat, 2D representation of a cylinder, and instead folded the left and right of the board to each other, we get a cylinder where Pacman never teleports to get to the other side!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/0*q28-s6Nt2acBVqYE" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*z2eRKuuAX972Um6i.gif" /></figure><h3>Why is it a cylinder and not a torus or another shape?</h3><p>The reason why 3D Pacman is a cylinder and not another shape is that he can only exit the board from the left and right and vice versa. If Pacman was able to exist from the top, bottom, left, and right the 3D representation would be a sphere. If he was able to leave anywhere and appear on the other side, then the game would be on the surface of a torus.</p><p>The graph above is a torus because the lines can leave the plot on any side, and appear on the opposite side.</p><h3>Elliptic Point Class</h3><p>Now that we’ve restricted points P and Q to the surface of the torus, we can implement the functions in the code. One last important consideration we need to make is we will use the <strong>a</strong> and <strong>b</strong> parameters of <a href="https://en.bitcoin.it/wiki/Secp256k1">secp256k1</a>, i.e. respectively zero and seven. We need to agree on these parameters because it&#39;s important that all participants in the ECC encryption need to agree on these variables so that they are all working with the same curve.</p><p>Let&#39;s create a class called <strong>Elliptic Point</strong> which has the functions. Scroll past the steps for the full code implementation or click <a href="https://github.com/marcusats/CPE593Project-Blockchain/blob/main/ECC/EllipticPoint.cpp">here</a>.</p><h3>Make the class &amp; define class variables</h3><pre>class EllipticPoint<br>{<br>    double m_x, m_y;<br>    static constexpr double ZeroThreshold = 1e20;<br>    static constexpr double B = 7;<br>}</pre><p>First, we start by giving the elliptic point an <strong>x</strong> and a <strong>y</strong>. This is its location on the 2d surface of the torus. Next, we define the <strong>zero thresholds</strong>. This value is used in the izZero function to determine if the point is zero. This value is used in the case where we get a result 0.00001, so that it can be considered “zero”. Finally, we define variable <strong>b</strong>, which is the b in the elliptic curve formula (y² = x³ + ax + b).</p><h3>Constructors</h3><pre>constexpr EllipticPoint() noexcept : m_x(0), m_y(ZeroThreshold * 1.01) {}<br><br>explicit EllipticPoint(double yCoordinate) noexcept<br>{<br>    m_y = yCoordinate;<br>    m_x = cbrt(m_y * m_y - B);<br>}<br></pre><p>The first constructor is the default constructor which initializes the values to zero. The reason why the <strong>m_y</strong> variable gets set to <strong>ZeroThreshold * 1.01 </strong>is that we&#39;re using a zero threshold to determine if a number is zero. Therefore multiplying the zero thresholds by 1.01 it will put the y value just above the zero thresholds so that it&#39;s not considered zero, but it&#39;s so close to zero that it doesn&#39;t affect our calculations.</p><p>The second constructor takes in the y coordinate as a parameter and calculates the value of the x coordinate via the elliptic curve formula (y² = x³ + ax + b).</p><h3>Helper Functions</h3><ol><li><strong>IsZero</strong>: Determines if an elliptic point is zero</li><li><strong>Negate </strong>(override - operator): Can negate an elliptic point</li></ol><pre>bool IsZero() const noexcept<br>{<br>  bool isNotZero = abs(m_y) &lt; ZeroThreshold;<br>  return !isNotZero;<br>}</pre><p>This checks if the y variable is below the zero thresholds. For example, if our threshold is 0.01 and the y point is 0.001, we would consider the point y as zero.</p><pre><br>EllipticPoint operator-() const noexcept<br>{<br>    EllipticPoint negPt;<br>    negPt.m_x = m_x;<br>    negPt.m_y = -m_y;<br><br>    return negPt;<br>}</pre><p>Creates a new Elliptic point and sets its y variable to the negative.</p><h3>Elliptic Curve Arithmetic</h3><ol><li><strong>Add</strong> (override += operator): Can add 2 elliptic points from each other and return the resulting elliptic point</li><li><strong>Subtract</strong> (override -= operator): Can subtract 2 elliptic points from each other and return the resulting elliptic point</li><li><strong>Multiply</strong> (override *= operator): Can multiply an elliptic point by an integer and return the resulting elliptic point</li><li><strong>Double</strong>: Returns P+P for any given point P.</li></ol><pre> <br> EllipticPoint &amp;operator+=(const EllipticPoint &amp;rhs) noexcept<br> {<br>  if (IsZero())<br>  {<br>   *this = rhs;<br>  }<br>  else if (rhs.IsZero())<br>  {<br>   // since rhs is zero this point does not need to be<br>   // modified<br>  }<br>  else<br>  {<br>   double L = (rhs.m_y - m_y) / (rhs.m_x - m_x);<br>   if (isfinite(L))<br>   {<br>    double newX = L * L - m_x - rhs.m_x;<br>    m_y = L * (m_x - newX) - m_y;<br>    m_x = newX;<br>   }<br>   else<br>   {<br>    if (signbit(m_y) != signbit(rhs.m_y))<br>    {<br>     *this = EllipticPoint();<br>    }<br>    else<br>    {<br>     Double();<br>    }<br>   }<br>  }<br><br>  return *this;<br> }</pre><p>The function starts off by taking in an elliptic point object and its goal is to add it to another elliptic point. The function first starts off by checking if the current elliptic point is zero. If it is, no additional needs to take place as we can just set the values of the other elliptic point.</p><p>If the incoming elliptic point object is the zero point, then we do nothing.</p><p>Otherwise, the function calculates the line between the two points and finds the new x coordinate for the object on which the operator+= function is called. The y coordinate is then set accordingly. If the line is vertical, then the operator+= function doubles the point. If the line is horizontal and the two points have different signs for their y coordinates, then the operator+= function sets the point to the zero point.</p><pre>EllipticPoint &amp;operator-=(const EllipticPoint &amp;rhs) noexcept<br>{<br>  *this += -rhs;<br>  return *this;<br>}</pre><p>Subtracts one point by another point. It does this by adding the negative of one point.</p><pre>EllipticPoint &amp;operator*=(int rhs) noexcept<br>{<br>  EllipticPoint r;<br>  EllipticPoint p = *this;<br>  <br>  if (rhs &lt; 0)<br>  {<br>    rhs = -rhs;<br>    p = -p;<br>  }<br>  <br>  for (int i = 1; i &lt;= rhs; i &lt;&lt;= 1)<br>  {<br>   if (i &amp; rhs)<br>    r += p;<br>   p.Double();<br>  }<br>  <br>  *this = r;<br>  return *this;<br>  }<br>};</pre><p>Multiplies the elliptic point by an integer by first checking if the value is negative. If the value is multiplied by a negative number, the point is negated before the operation is performed.</p><p>The next part of the function is the for loop. This code is implementing an algorithm known as exponentiation by squaring. This algorithm is used to calculate the value of a number raised to a power. <strong>Exponentiating by squaring</strong> is a general method for fast computation of large positive integer powers of a number.</p><pre>void Double() noexcept<br>{<br>    if(IsZero())<br>    {<br>        return;<br>    }<br><br>    if(m_y == 0)<br>    {<br>        *this = EllipticPoint();<br>    }<br>    else<br>    {<br>        double L = (3 * m_x * m_x) / (2 * m_y);<br>        double newX = L * L -  2 * m_x;<br>        m_y = L * (m_x - newX) - m_y;<br>        m_x = newX;<br>    }<br>}</pre><p>The double of an elliptic point is the point that is twice as far away from the origin as the original point. To understand how the Double function works in more detail here is a video that visually shows it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FjfQEOHiwE0k%3Fstart%3D23%26feature%3Doembed%26start%3D23&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DjfQEOHiwE0k&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FjfQEOHiwE0k%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb48b370e142bf48dfd9294afa1d372e/href">https://medium.com/media/fb48b370e142bf48dfd9294afa1d372e/href</a></iframe><h3>Other Elliptic Curve Arithmetics</h3><p>We can then use these arithmetic functions to overload the (+,-,*) operators. We can do this by using our (+=, -=, and *=) overloaded functions.</p><pre>inline EllipticPoint operator+(EllipticPoint lhs, const EllipticPoint &amp;rhs) noexcept<br>{<br> lhs += rhs;<br> return lhs;<br>}<br><br>inline EllipticPoint operator-(EllipticPoint lhs, const EllipticPoint &amp;rhs) noexcept<br>{<br> lhs += -rhs;<br> return lhs;<br>}<br><br>inline EllipticPoint operator*(EllipticPoint lhs, const int rhs) noexcept<br>{<br> lhs *= rhs;<br> return lhs;<br>}<br><br>inline EllipticPoint operator*(const int lhs, EllipticPoint rhs) noexcept<br>{<br> rhs *= lhs;<br> return rhs;<br>}</pre><h3>Next Step</h3><p>Now that we have an understanding of the theory and math, and we have an elliptic point class, we can create an Elliptic Curve Digital Signature Algorithm to generate private keys and public keys!</p><p><strong>The code for the Elliptic Point Class can be found </strong><a href="https://github.com/marcusats/CPE593Project-Blockchain/blob/main/ECC/EllipticPoint.cpp"><strong>here</strong></a></p><h3>Cabal Labs</h3><p><a href="https://caballabs.com/"><strong>Cabal Labs</strong></a><strong> is on a mission to enhance human freedoms and rights through technological innovation.</strong> We have grown a network of companies that serve under our banner. These developers and researchers have made it their life’s goal to break the status quo and deliver revolutionary solutions to age-old problems.</p><p><em>We would love to hear from you: </em><a href="/service/mailto:caballabs@gmail.com"><strong>caballabs@gmail.com</strong></a></p><h3>References</h3><p>This was article was made possible by these articles.</p><ol><li><a href="https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/">https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/</a></li><li><a href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/</a></li><li><a href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/</a></li><li><a href="https://rosettacode.org/wiki/Elliptic_curve_arithmetic">https://rosettacode.org/wiki/Elliptic_curve_arithmetic</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b73b37e89801" width="1" height="1" alt=""><hr><p><a href="https://blog.caballabs.com/elliptic-curve-cryptography-in-c-b73b37e89801">Elliptic Curve Cryptography in C++</a> was originally published in <a href="https://blog.caballabs.com/">Cabal-Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to test time-based smart contracts with Truffle]]></title>
            <link>https://blog.caballabs.com/how-to-test-time-based-smart-contracts-with-truffle-dbbe0926a5d7?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbbe0926a5d7</guid>
            <category><![CDATA[solidity-tutorial]]></category>
            <category><![CDATA[truffle]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[solidity-development]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Wed, 16 Nov 2022 22:25:32 GMT</pubDate>
            <atom:updated>2022-11-16T22:25:32.839Z</atom:updated>
            <content:encoded><![CDATA[<h4>Mock time and blocks in Truffle Tests</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mKCIDcJ7x-kCbb9vnPzLrA.png" /><figcaption>time traveler, clock, in space, hyper realistic (Midjourney)</figcaption></figure><p>Testing Ethereum smart contracts that depend on real-world time is essential to ensure your smart contract works as designed. In this tutorial, we take a closer look at building the test infrastructure to support time-sensitive tests for smart contracts using Solidity, Ganache, and Truffle.</p><h3>Download the NPM package</h3><p>The OpenZepplein test helpers package comes bundled with a variety of tools to test your smart contract. A link to the documentation can be found <a href="https://docs.openzeppelin.com/test-helpers/0.5/api#time">here</a>.</p><pre>npm install --save-dev @openzeppelin/test-helpers</pre><h3>How to use the package</h3><h4>1) Import the time at the top of your test file in the test folder</h4><pre>const { time } = require(&#39;openzeppelin-test-helpers&#39;);</pre><h4>2) Use the time library to jump ahead in time or block numbers</h4><p><strong>Increase: </strong>Increases the time of the blockchain by <a href="https://docs.openzeppelin.com/test-helpers/0.5/api#timeduration">duration</a> (in seconds), and mines a new block with that timestamp.</p><pre>async function time.increase(duration)</pre><p><strong>AdvanceBlock: </strong>Forces a block to be mined, incrementing the block height.</p><pre>async function time.advanceBlock()</pre><h3><strong>Example:</strong></h3><pre>contract(&quot;ERC20&quot;, async (accounts) =&gt; {<br>  describe(&quot;Example of testing time&quot;, () =&gt; {<br>    it(&quot;These two transactions are 100 seconds apart&quot;, async () =&gt; {<br>      await myToken.transfer(personOne, 1000000);<br>      //=============================<br>      await time.increase(100) // Increases the time by 100 seconds<br>      await time.advanceBlock() // Increases the block<br>      //=============================<br>      await myToken.transfer(personOne, 1000000);<br>    });<br>  });<br>});</pre><p>This is all you need to test time in your smart contract! If you need help with getting started with truffle and testing smart contracts, below is a good blog post on how to do that.</p><p><a href="https://medium.com/swlh/develop-test-and-deploy-your-first-ethereum-smart-contract-with-truffle-14e8956d69fc">Deploy an Ethereum Smart Contract in 6 Steps</a></p><h3>Cabal Labs</h3><p><a href="https://caballabs.com/"><strong>Cabal Labs</strong></a><strong> is on a mission to enhance human freedoms and rights through technological innovation.</strong> We have grown a network of companies that serve under our banner. These developers and researchers have made it their life’s goal to break the status quo and deliver revolutionary solutions to age-old problems.</p><p><em>We would love to hear from you: </em><a href="/service/mailto:caballabs@gmail.com"><strong>caballabs@gmail.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbbe0926a5d7" width="1" height="1" alt=""><hr><p><a href="https://blog.caballabs.com/how-to-test-time-based-smart-contracts-with-truffle-dbbe0926a5d7">How to test time-based smart contracts with Truffle</a> was originally published in <a href="https://blog.caballabs.com/">Cabal-Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the basics of Elliptic-curve cryptography — visually]]></title>
            <link>https://blog.caballabs.com/understanding-the-basics-of-elliptic-curve-cryptography-visually-b32acf4c0779?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/b32acf4c0779</guid>
            <category><![CDATA[ecc]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[elliptic-curve]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[public-key-cryptography]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Tue, 15 Nov 2022 20:41:59 GMT</pubDate>
            <atom:updated>2022-11-21T19:03:47.123Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding the basics of Elliptic-curve cryptography</h3><h4>Part 1) The theory and math — visually</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6hZEDT4YUsQcRTrinSGaWw.png" /><figcaption>Elliptic curve cryptography visualization, in space (Mid journey)</figcaption></figure><p>If you want to understand elliptic-curve cryptography but don’t want to get bogged down in the math, this blog post is for you. We’ll give you a basic overview of the math behind elliptic-curve cryptography, and then in part 2, we will apply what we learned to implement it in C++.</p><h3>A brief overview</h3><p>Before the 1970s, the only way to encrypt a message was to use a symmetric cipher, which requires both parties to have a shared secret. This was fine at the beginning of the 20th century, but the second World War and the rise of the internet made it necessary to develop a cryptographic protocol where two parties could communicate securely without any previous communication.</p><p>This kind of cryptography is known as asymmetric, or public-key cryptography. In simple terms, public-key cryptography is a system that uses two related keys — a public key and a private key — to encrypt and decrypt data. The public key can be shared with anyone, while the private key must be kept secret.</p><h3>How does it work theoretically?</h3><p>Here&#39;s a good video describing how it works that summarizes it very well in a visual way. If you would rather have text and visualizations, scroll below the video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdCvB-mhkT0w%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdCvB-mhkT0w&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdCvB-mhkT0w%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7aca9a39df36d55960dadc80380e1bd7/href">https://medium.com/media/7aca9a39df36d55960dadc80380e1bd7/href</a></iframe><h3>What is an elliptic curve?</h3><p>Elliptic curves are a class of curves that satisfy certain mathematical criteria. Specifically, a planar curve is elliptic if it is smooth and takes the commonly used “Weierstrass form” of</p><blockquote>y²=x³+Ax+B, where 4A³+27B² ≠0</blockquote><h4>Visualization of an elliptic curve</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*VU9BcPdvpd4elw01.gif" /><figcaption><a href="https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/">https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems</a></figcaption></figure><p>On the left, in transparent red, is the 3-dimensional contour plot of y²=x³–3x+z. The orange plane that intersects the 3D contour plot is shown on the right. The curve is “elliptic” everywhere except at the saddle point, where the curve transitions from a closed curve to an open curve.</p><h3>How this can be used to build encryption?</h3><p>Elliptic curves have this property where adding two points on an elliptic curve creates a third point that lies on the curve. This third point is found by reflecting the point across the horizontal axis. It is defined as:</p><blockquote>P ⊕ Q = R, where P + Q + R = 0</blockquote><p><strong><em>Note</em></strong><em>: The character ⊕ is used as a mathematical point addition operator, not the binary </em><strong><em>XOR </em></strong><em>operator.</em></p><h4>Visualization of P ⊕ Q = R</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*yeYqS-8CBGd4QRV6LgHfVA.gif" /><figcaption><a href="https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/">https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/</a></figcaption></figure><p>As you can see for any point P and point Q there is a corresponding -R that intersects when forming a straight line through the curve. When this -R is reflected across the x-axis, we find point R.</p><h3>How do we use this property to build a lock?</h3><p>We can understand this visually by comparing it to a padlock.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/0*k00_cemvmZ_XV1Lv.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/0*Ds5PBADwN2KTjsk0.gif" /><figcaption><a href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/</a></figcaption></figure><p>The basic principle behind a padlock is that it uses a key to move the pins in the locking mechanism into the correct position in order to open the lock. The pins in the locking mechanism are usually spring-loaded so that they are always in the locked position unless the key is inserted and turned. When the key is inserted, it pushes the pins up to the shear line, which is the line at which the pins line up in the correct position to open the lock.</p><p>The way we can turn P ⊕ Q = R into a lock is by doing the same operations a specific number of times, n. That operation ends up acting just like the pins in a padlock.</p><p>When we reflect point -R over the X-axis and add it back to point P we always get a new point on the elliptic curve. We can keep doing this many times. Visually, we can understand this like a password like an android phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*lZY6ZQwxiVA-EigpGNYWcA.gif" /></figure><p>When we do this n times to arrive at a final point, finding out n when you only know the final point and the first point is hard. It would be like being told the starting point and ending point of the android password and being told to crack the code via random guesses. For an attacker, it&#39;s like doing a maze the size of Earth where the walls are all mirrors. Never knowing which turns to make and being unable to remember where they came from.</p><p>Easy to do, hard to undo. This is the goal of a trap door function. A function in which that is easy to compute in one direction, but difficult to compute in the opposite direction without special information.</p><p>This is how your crypto wallet keys work. The public key is the starting point on the curve and your private key is the number of times you do the operation P ⊕ Q = R. This allows you to sign transactions and prove that you are you with the private key.</p><h3>How do we exchange these keys to do meaningful things?</h3><p>Alice and Bob first agree to use the same curve and a few other parameters, and then they pick a random point G on the curve.</p><p>Both Alice and Bob choose secret numbers, or private keys, (α, β). Alice multiplies the point G by itself α times, and Bob multiplies the point G by itself β times.</p><p>Each arrives at new points A=αG and B=βG where they then exchange the points with one another. Starting at the new points, Alice and Bob again multiply their new point by their own secret number.</p><p>Bob and Alice multiply their secret number by the point they receive to generate the secret S. This works because:</p><blockquote>Shared Secret = S =α(βG)=β(αG)</blockquote><h4>Visualization of getting a shared secret</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AzSjv0hCuisV700AvnVNSQ.gif" /><figcaption><a href="https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/">https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/</a></figcaption></figure><p>This creates a way for two people to share a secret without anyone else being able to figure it out. The two people combine their messages with a shared secret, which makes it hard for someone who shouldn’t know the secret to figure it out. In part 2 we will use this understanding to implement it in C++.</p><h3>Let&#39;s Implement it in C++</h3><p>Now that we have an understanding of the theory and math, lets create an Elliptic point class in part 2 and then use that elliptic point class in part 3 to create a Elliptic Curve Digital Signature Algorithm.</p><p><a href="https://blog.caballabs.com/elliptic-curve-cryptography-in-c-b73b37e89801">Elliptic Curve Cryptography in C++</a></p><h3>Cabal Labs</h3><p><a href="https://caballabs.com/"><strong>Cabal Labs</strong></a><strong> is on a mission to enhance human freedoms and rights through technological innovation.</strong> We have grown a network of companies that serve under our banner. These developers and researchers have made it their life’s goal to break the status quo and deliver revolutionary solutions to age-old problems.</p><p><em>We would love to hear from you: </em><a href="/service/mailto:caballabs@gmail.com"><strong>caballabs@gmail.com</strong></a></p><h3>References</h3><p>This was article was made possible by these articles.</p><ol><li><a href="https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/">https://www.allaboutcircuits.com/technical-articles/elliptic-curve-cryptography-in-embedded-systems/</a></li><li><a href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/</a></li><li><a href="https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/">https://blog.cloudflare.com/a-relatively-easy-to-understand-primer-on-elliptic-curve-cryptography/</a></li><li><a href="https://rosettacode.org/wiki/Elliptic_curve_arithmetic">https://rosettacode.org/wiki/Elliptic_curve_arithmetic</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b32acf4c0779" width="1" height="1" alt=""><hr><p><a href="https://blog.caballabs.com/understanding-the-basics-of-elliptic-curve-cryptography-visually-b32acf4c0779">Understanding the basics of Elliptic-curve cryptography — visually</a> was originally published in <a href="https://blog.caballabs.com/">Cabal-Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modern-day Feudalism]]></title>
            <link>https://medium.com/gypsytoken/modern-day-feudalism-57d264ee7c41?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/57d264ee7c41</guid>
            <category><![CDATA[real-estate-investments]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Sat, 22 Oct 2022 18:24:47 GMT</pubDate>
            <atom:updated>2022-10-22T18:24:47.718Z</atom:updated>
            <content:encoded><![CDATA[<h4>You’re losing the game of monopoly</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yk1wm0sRF-Ev-B9_" /><figcaption>Photo by <a href="https://unsplash.com/@mrthetrain?utm_source=medium&amp;utm_medium=referral">Joshua Hoehne</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the game of Monopoly, players take turns rolling dice and moving their pieces around the board. They purchase property and build houses and hotels on them. The game&#39;s goal is to become the wealthiest player through a combination of luck and strategy. But have you ever wondered how the game of monopoly relates to real life?</p><p>It turns out that monopoly is actually a pretty accurate representation of feudalism, the economic system that was used in medieval Europe. Under feudalism, the land was owned by the nobility and was worked by the peasants. The peasants were required to give a portion of their crops to the nobility in exchange for land use. This system kept the nobles wealthy and the peasants poor. Sound familiar?</p><p>That’s because it’s exactly how renting works. When you rent a home, you’re paying someone else for the use of their property. The landlord gets to keep the property, while you get to live there. But you have to pay them every month, even if you can’t afford it. This system keeps the rich richer and the poor poorer. <strong>Renting is nothing more than modern-day feudalism.</strong></p><h3>Whos winning the landlord monopoly game?</h3><p>The largest landlords in the United States are corporations that are beginning to own entire cities. These corporations often own thousands of homes, and they are the biggest players in the rental market. The largest of these corporations are Blackstone, Invitation Homes, American Homes 4 Rent, and Equity Residential. These companies own tens of thousands of homes and are responsible for a large portion of the rental market.</p><h4><strong>Leaderboard</strong></h4><ol><li>Blackstone — $550 billion</li><li>Invitation Homes — $18.54 billion</li><li>American Homes 4 Rent — $11.441 Billion</li><li>Equity Residential — $20.83 Billion</li></ol><p>This hasn&#39;t always been the case. These large landlords started to spring up after the 2008 financial crisis when large institutions saw an opportunity to purchase homes at a discount. Blackstone Group, the world’s largest real estate investor, purchases $150 million worth of houses per week. As of 2021, the company’s total assets under management were approximately US$880 billion. As a result, America is quickly becoming a renter nation. In all, about 43 million American households now pay a landlord each month.</p><blockquote>Between 2006 and 2016, when the homeownership rate fell to its lowest level in fifty years, the number of renters grew by about a quarter</blockquote><h3>How does this affect you?</h3><p>The presence of large landlords in the US housing market can make it difficult for individual homebuyers to compete. Large landlords often have the financial resources to purchase multiple properties, which can drive up prices and make it difficult for buyers to find affordable homes. Four U.S. cities — New York, Miami, Los Angeles, and San Francisco — round out Savills’s list of the cities with the fastest rate of rent hikes this year.</p><p>Rental prices in New York are rising at the fastest rate in the world, matched only by Singapore, with rents in those two cities having gone up 8.5% over the past six months.</p><p>Rental prices in New York City have been hitting record highs in recent months. The median price for a one-bedroom apartment in New York is now <a href="https://www.census.gov/quickfacts/fact/table/newyorkcitynewyork/HSG010221">nearly triple</a> what it was before the pandemic, and given that N.Y.C. landlords require applicants for a rental property to demonstrate an annual salary of at least 40 times the monthly rent, renters looking to live on their own salaries need to be earning a minimum of <a href="https://fortune.com/2022/06/08/new-york-rents-bidding-wars/">$160,000 a year</a> with a $4000 a month rent. This is how long you would be trapped in renting:</p><p>All of this, while home values increase on average 5% a year: making the finish line further away every year. This makes you a serf to the investment companies living in major US cities.</p><p><strong>It&#39;s almost impossible to escape rent which is the biggest factor in gaining wealth.</strong></p><h3>A solution for a brighter future</h3><p>We have spent the last year tirelessly trying to solve this dilemma and believe we are on the brink of a solution that will lead to a paradigm shift in homeownership. It all started with the question:</p><blockquote><em>What if renters just teamed up?</em></blockquote><p>If you want to find out our solution, we describe it in the article below.</p><p><a href="https://medium.com/gypsytoken/how-to-end-rent-1c0770e647d8">How to end rent</a></p><h3>About Gypsy</h3><p>Gypsy enables digital nomads &amp; remote workers to gain home ownership while exploring the world. We transition humanity into global citizens through real estate and cryptocurrency.</p><p><a href="https://gypsytoken.org/">Website</a> | <a href="https://twitter.com/gypsycityre">Twitter</a> | <a href="https://discord.com/invite/dzqasrgHNT">Discord</a> | <a href="https://www.instagram.com/gypsycityofficial/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57d264ee7c41" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gypsytoken/modern-day-feudalism-57d264ee7c41">Modern-day Feudalism</a> was originally published in <a href="https://medium.com/gypsytoken">GypsyToken</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to end rent]]></title>
            <link>https://medium.com/gypsytoken/how-to-end-rent-1c0770e647d8?source=rss-9ae77b61dc88------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c0770e647d8</guid>
            <category><![CDATA[renting]]></category>
            <category><![CDATA[homeless]]></category>
            <category><![CDATA[real-estate-investments]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[real-estate]]></category>
            <dc:creator><![CDATA[Bryan Kyritz]]></dc:creator>
            <pubDate>Fri, 21 Oct 2022 17:41:23 GMT</pubDate>
            <atom:updated>2022-10-21T20:21:15.566Z</atom:updated>
            <content:encoded><![CDATA[<h4>Together we can end parasitical landlords</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Flt2QwTXvPDsPPu" /><figcaption>Photo by <a href="https://unsplash.com/@jontyson?utm_source=medium&amp;utm_medium=referral">Jon Tyson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Rent is </strong>immoral.</h3><p>For-profit land-lording is a parasitical non-contributing activity that monopolizes property in order to loan it to someone and receive it back with interest. The money earned by doing this is often funneled into another home so that the landlord can then do this with another family and double their earnings. Often, the landlord doesn&#39;t even truly own the home but was simply able to make the down payments for the mortgage.<br> <br>Over time as high-wage earners continue to do this, it drives up home valuations and rent prices and forces those who earn less to either rent forever or move. These individuals will forever be paying 30–50% of their take-home income to a landlord that doesn&#39;t even show up to the property to check a leak in the ceiling.</p><p><strong>The current system of mortgage &amp; rent is broken</strong>. Individuals should be able to directly put those payments into gaining equity in the properties they are renting.</p><h3>Why do we rent in the first place?</h3><ul><li>You don’t know where you’ll settle down. As a renter, you’re not tied down by location and can move anywhere in the world if your job requires it. Renting also allows you to live in many different neighborhoods and experience them before deciding on one for good.</li><li>You can’t afford a down payment on a home (or build equity). It’s true that homeowners reap the benefits of building equity over time, but let’s be honest: The average American doesn’t have enough money saved up for even a 20% down payment on their first home! Homeownership is out of reach for so many people — but renting isn’t!</li><li>Real estate is illiquid; housing markets move slowly and sometimes unpredictably, making buying a property after selling another one difficult or impossible at times</li></ul><p>These issues trickle down to the fundamental problem which is that <strong>the barrier of entry to mortgages forces people to rent</strong>.</p><h3>A Potential for a brighter future</h3><p>We have spent the last year tirelessly trying to solve this dilemma and believe we are on the brink of a solution that will lead to a paradigm shift in homeownership. It all started with the question:</p><blockquote>What if renters just teamed up?</blockquote><h4>A hypothetical scenario:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jbnDCKxE8eLChGYWGkvT7g.png" /><figcaption>How rent today works</figcaption></figure><p>Let’s say there are initial 5 homes and there are 5 people renting them. With traditional rent, the 5 owners of the home will be paid monthly by the renters and then the landlord will pay the bank for the mortgage. This leaves the renters with nothing to show for in the end, the bank makes money off the interest on the mortgage payment, and the landlord gets equity in the home.</p><p>Now let&#39;s completely change how it works. Let&#39;s completely remove landlords and banks and see what happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0HulKoBH61SCd2G08hPpQ.png" /><figcaption>How Gypsy is changing rent</figcaption></figure><p>In this scenario, 5 homes were crowdfunded, purchased in cash, and therefore no mortgage payment or bank is involved. Next, renters come and live in the homes. There is no traditional 1-year lease agreement, but it is instead done on a monthly basis.</p><p>The renters pay a fixed upfront cost that includes</p><ul><li><strong>Equity</strong>: This portion of the payment is pooled together with all the other renters to purchase fractional ownership of a new home to gain home ownership.</li><li><strong>Payment to owners</strong>: At the end of the day investors want to put their money in a place where it grows. To attract investors, they need to be getting equivalent or better returns than investing in traditional REITs.</li><li><strong>Utilities</strong>: gas, electricity, water, etc.</li></ul><p>Every month, the equity payments from all the renters continuously pool together until Gypsy is able to buy another home in cash. At a point in time with hundreds of renters Gypsy will be purchasing a home a month which will shorten the time for renters to start earning rental payments on their equity.</p><h3>How does this end renting as we know it?</h3><p>It may appear that renters are still paying owners for the right to live at the home and that is still true, but this is very different than a traditional landlord and acts more like a mortgage from the bank. Let&#39;s compare this new system with renting and a mortgage.</p><p>The following shows the total difference in rent paid to ownership gained. Red means the individual is at a loss while green shows a profit.</p><h4>Assumptions</h4><ul><li>$4500 a month for base rent</li><li>$675 to Equity</li><li>$5175 a month total cost with no price increase</li><li>10% increase a year (home appreciation + rental income)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RYUqP9gXlj7MUE05uJFWdQ.png" /><figcaption>(<a href="https://docs.gypsytoken.org/gypsy-protocol/renters/rent-to-own">https://app.gitbook.com/o/FwzVvQOu3M3HBXxBhJqP/s/inYZsl6F3DP3HXrxSZsm/renters/rent-to-own</a>)</figcaption></figure><p>As you can see, of course, it&#39;s better to always buy a home. But the major difference is that throughout the entire course of renting with Gypsy, the renter breaks even around the 30-year mark. <strong>Gypsy makes it possible for a lifelong renter that would normally pay $5175 a month to save an extra $1.6M.</strong></p><h3>Want to help make a positive impact on the world?</h3><p>We are working on bringing this idea to fruition but we <strong>NEED YOUR HELP</strong>. We are a small team that is relentlessly working on building the infrastructure to make this possible, but we need the word spread. This only works at scale. Investors need to put in money to purchase homes while renters need to occupy the homes. If you want to play a hand in ending parasitic landlords, leave a follow on our <a href="https://twitter.com/gypsycityre">Twitter</a> and share this with someone who is currently renting a home. To become among the first renters you can signup at <a href="https://www.gypsy.city/">Gypsy.city</a>.</p><h3>About Gypsy</h3><p>Gypsy enables digital nomads &amp; remote workers to gain home ownership while exploring the world. We transition humanity into global citizens through real estate and cryptocurrency.</p><p><a href="https://gypsytoken.org/">Website</a> | <a href="https://twitter.com/gypsycityre">Twitter</a> | <a href="https://discord.com/invite/dzqasrgHNT">Discord</a> | <a href="https://www.instagram.com/gypsycityofficial/">Instagram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c0770e647d8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gypsytoken/how-to-end-rent-1c0770e647d8">How to end rent</a> was originally published in <a href="https://medium.com/gypsytoken">GypsyToken</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>