<?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 Ramtin Seraj on Medium]]></title>
        <description><![CDATA[Stories by Ramtin Seraj on Medium]]></description>
        <link>https://medium.com/@ramtin?source=rss-619af130ab9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-s_OB49lSx6DwWBnEGuvxg.png</url>
            <title>Stories by Ramtin Seraj on Medium</title>
            <link>https://medium.com/@ramtin?source=rss-619af130ab9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:27:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ramtin/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[Why on-chain data privacy is hard in practice?]]></title>
            <link>https://medium.com/@ramtin/why-on-chain-data-privacy-is-hard-in-practice-1fc5c7436519?source=rss-619af130ab9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fc5c7436519</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[Ramtin Seraj]]></dc:creator>
            <pubDate>Thu, 20 Nov 2025 14:55:40 GMT</pubDate>
            <atom:updated>2025-11-20T15:07:33.260Z</atom:updated>
            <content:encoded><![CDATA[<h3>Problem definition</h3><p>Nearly a decade ago, Ethereum introduced smart contracts to blockchain, transforming it from a decentralized ledger tracking balances into a programmable platform. This established a strong decentralized foundation for programmable objects with advanced ownership tracking, open marketplaces and decentralized organizations, and many other innovative applications. On another level, one could look at these object and assets as autonomous that can enforce their own rules without any centralized control.</p><p>While this open and public approach was game-changing, one problem remained hard to solve: how to add privacy and confidentiality, where this Privacy can be defined at different levels:</p><p><strong>Privacy of value transfer:</strong> This was the one of the earliest area of research where part of the transactions (e.g. amount for value or receiver) stays private while the chain can enforce required conditions while maintain privacy (e.g. no new value is created and lost). Zero-knowledge proofs methods found very effective to enforce such conditions while staying performant.</p><p><strong>Privacy of execution:</strong> A more comprehensive area of research looked at how to make every aspect of execution (input and output and often the computation itself) of a smart contract confidential. Both Multi-Party Computation (MPC) and Fully Homomorphic Encryption (FHE) based approaches showed promising initial results, and while still progressing both has faced limitation in functionality or performance, often very expensive to operate and still an active era of research with long journey to become cost-efficient and effective.</p><p><strong>Privacy of on-chain data:</strong> The third area, the focus of this document, while important received less attention. This area addresses the ability to allow autonomous on-chain objects to hold confidential data and control access to it. An example of this can be attaching a data to an on-chain object (e.g. NFT) that can control its access control. This might look easy at first, but such system has to be designed to be programmable, for example if the ownership of that object changes, data access has to automatically changes without trusting interaction of the previous owner. Having access to this functionality can unlock many applications, as this data can be anything, a piece of art, an API key, AI model or data, the secret key to a wallet that holds data collateral, … . It’s worth noting that many decentralized storage platforms focus only on data availability, balancing replication costs using advanced erasure coding and don’t consider this problem within their scope.</p><p>While this may seem simple at first, truly decentralized and usable implementations have remained challenging. In this post, we examine the main challenges in designing such a system.</p><h3>Some of the Challenges Along the Way</h3><p>Assuming the confidential data is encrypted with a key by the initial data owner. However, because ownership can change, the initial data provider cannot be trusted to handle future decryption requests. To fill this responsibility, any centralized entity with decryption capabilities poses a significant risk. This problem is worsening in the race to deploy AI first and deal with consequences later.</p><p>To avoid centralization risks, a decentralized approach can start with a relatively large set of participants running Distributed Key Generation (DKG) to generate a public key and set of private shares. The public key can be used for encryption, with the participants performs threshold decryption when on-chain conditions are satisfied. To balance liveness and privacy, these protocols are usually designed with a trust assumption (e.g., 2/3 of nodes are honest) and requiring only a fraction of parties to participate honestly to decrypt the data.</p><p>Such cryptographic schemes has been studied for years, with several efficient and performant ones available to use. Yet such solutions has to address three set of challenges:</p><p>First, the committee size affects performance. If the scheme isn’t efficient, the solution may rely on very few participants, creating significant risk. Sadly many times, the safest protocols has been attacked where the size of committee were small or participants were not properly distributed (all in one machine or server cluster).</p><p>Second, participants might join and leave over time, it has to provide ways to facilitate onboarding and off boarding the nodes, without impacting the liveness and privacy guarantees. The DKG protocol is often enhanced with a share redistribution protocol, which addresses this issue and improves the long-term health of the system by limiting the window during which a threshold of shares can be compromised.</p><p>Third, the trust assumption might not be a pragmatic assumption if malicious actions are not identifiable and punishable. Such assumptions are similar to assumptions on the use of Practical Byzantine Fault Tolerance for consensus and can only effectively be mitigated by the ability to identify and punish conflicting proposals and double voting. Unlike the last two problems, the solution for the third challenge is not straightforward. Recently, a wide range of research has been trying to solve this problem with a range of solutions, from simpler ones that leave traces in the secrets to be able to identify the leakers, to more advanced ones to be able to identify parties who have maliciously colluded to reconstruct data.</p><p>If a malicious action is identified in time, incentive mechanisms like proof of stake and slashing can be used to punish such behavior. Though unlike applications like threshold signatures over transactions where the final signed message has to be broadcast to be effective, in the unlikely case of a threshold acting maliciously, the final reconstructed data might never be revealed in any public trace. Or in a more sophisticated case (long range attack), the malicious actors can hold on to their shares and wait until the majority of them are not punishable (e.g., release of stakes) to execute the attack.</p><p>An interesting idea that could act as another layer on top of previous layers to make it harder for malicious actors to cheat is the use of Trusted Execution Environments (TEEs). Although most Trusted Execution Environments can be broken by having physical and root access to the hardware, they can still be designed to make it really hard and expensive for a party to access or maliciously utilize its own secret shares.</p><p>These are just some highlights of the challenges we faced when designing Story’s Confidential Data Rails.</p><p>There are many more challenges I didn’t discuss. For example, how does one prevent replay attacks where the attacker pretends a ciphertext is their own? This cannot simply be solved by deduplication, considering the attacker can front-run a transaction.</p><p>If this topic interests you, check out <a href="https://www.story.foundation/confidentialdatarails.pdf">our technical document</a> for more details on Confidential Data Rails’ multi-layer defense. If you have ideas, feedback, or suggestions, I’d love to hear from you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fc5c7436519" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I’m excited about EVM on Flow]]></title>
            <link>https://medium.com/@ramtin/why-im-excited-about-evm-on-flow-d464511323d4?source=rss-619af130ab9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d464511323d4</guid>
            <category><![CDATA[evm-compatibility]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[evm]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Ramtin Seraj]]></dc:creator>
            <pubDate>Thu, 19 Sep 2024 03:31:21 GMT</pubDate>
            <atom:updated>2024-09-19T03:44:09.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SlAKNQ_IUl_Q4nhUMg4kSg.jpeg" /></figure><p><a href="https://flow.com/upgrade/crescendo/evm">EVM on Flow</a> is now live on Mainnet. This marks a significant step in making <a href="https://cadence-lang.org/">Cadence</a> accessible to a broader range of software developers building on blockchains and I’m excited about it. Before I jump into the details here is the TL;DR:</p><ul><li>Cadence addresses EVM/Solidity development challenges.</li><li>EVM on Flow enables Web3 ecosystem interoperability.</li><li>EVM integration allows easy extension of Solidity apps with Cadence.</li><li>Cadence + EVM on Flow enables consumer-grade apps.</li></ul><h3>The pain</h3><p>Setting aside the speculation and hype, I believe blockchain technology is reshaping the future of the internet and software applications (Curious about why and how? Check out “<a href="https://readwriteown.com/">Read Write Own</a>” by Chris Dixon).</p><p>However, as a software engineer with years of experience in the blockchain space, working on numerous applications like CryptoKitties, Dapper’s ETH Smart Contract Wallet, and Cheeze Wizards, I can attest that building applications in Solidity and the EVM environment is often a challenging process (often painful). Almost everyone in the blockchain community has heard about how CryptoKitties slowed down transactions on Ethereum, sparking a new wave of scaling solutions.</p><p>While throughput is crucial for the technology’s success, I believe that currently, one of the biggest obstacles to widespread blockchain adoption is the developer experience and safety. Cheeze Wizards exemplifies these challenges perfectly. Though seemingly a simple rock-paper-scissors game on paper, it took a team of engineers nearly nine months to develop. Even more concerning, despite multiple rounds of external security audits, several potential exploits were uncovered immediately after its release.</p><p>I admire how EVM and Ethereum revolutionized the world by pioneering a new perspective on blockchain. They shifted from viewing it as a mere online ledger tracking balances to seeing it as a giant state machine — a global computer that anyone can observe, modify, and verify. I acknowledge the significant efforts made in recent years by tools like Remix, Alchemy, and OpenZeppelin to enhance the developer experience. However, working with Solidity and navigating EVM limitations remains challenging.</p><p>Any developer who has built production-ready blockchain software can attest to the challenges posed by Solidity and the EVM environment. These limitations include gas constraints, lack of type safety, reentrancy vulnerabilities, complex contract upgrades, safeguarding user assets, inadequate events, dealing with debug traces, limited support for standard signature schemes, and restrictive data structures (like append-only arrays), — to name just a few. If you’re skeptical, I challenge you to attempt implementing the <a href="https://www.ibcprotocol.dev/">IBC protocol</a> on Ethereum.</p><p>Beyond affecting developer experience, many of these limitations significantly impact user experience as well. For example, consider a user with an EVM account holding numerous assets (such as NFTs). If they suspect their computer has been compromised, they lack the option to rotate the key controlling that account. Instead, transferring all those assets to a new account becomes an incredibly expensive and time-consuming process. You’d need to individually move each asset to a new account — assuming they’re not locked or staked — which is a daunting task.</p><h3>Cadence as a solution</h3><p>A couple of years ago, I was fortunate to join a group of engineers working on a programming language and execution environment called <a href="https://cadence-lang.org/docs/language">Cadence</a>. Our objective was straightforward: could we create an environment that offers a safe, efficient, and developer-friendly experience for building smart contracts and decentralized applications?</p><p>What impressed me most was the Cadence team’s development approach. They began with known issues and planned features but also embraced fast-paced iterations. This strategy allowed them to maintain flexibility, stay closely connected with early adopters, and gather community feedback after each release. Now, after more than two years of this collaborative process, <a href="https://flow.com/upgrade/crescendo/cadence-1">Cadence 1.0</a> emerges as the most refined and feature-rich version to date.</p><p>Cadence, built by engineers for engineers, solved numerous problems: type safety, strong ownership and safety guarantees for digital assets using a resource-oriented programming model, advanced and flexible account models, dynamic dispatch support, improved readability, efficient storage model for dynamic data structures and more. Don’t just take my word for it — you can test it out <a href="https://play.flow.com/">here</a> yourself and <a href="https://cadence-lang.org/docs/why">delve deeper</a> into its capabilities.</p><p>Flow blockchain was the first to use Cadence as its main execution environment. The combination of Cadence’s power and Flow’s design — featuring low gas costs, low latency, and high throughput — demonstrated how an application like NBA Top Shot could onboard millions of users to blockchain technology.</p><h3>The final hurdle to widespread adoption</h3><p>Like any new platform, Cadence faced one remaining challenge: bootstrapping. If it’s so much better, why didn’t everyone immediately adopt it? The answer lies in the persistence of legacy systems worldwide. People are often reluctant to start from scratch and take risks. Now, with this great language and programming environment in place, how do you onboard developers who have already invested time and money into building their businesses on EVM, including extremely costly code audits?</p><p>With the release of Cadence 1.0 and the deployment of <a href="https://flow.com/upgrade/crescendo/evm">EVM on Flow</a>, the final hurdle has been overcome. Cadence environments now enable developers to deploy their EVM contracts seamlessly integrated within Cadence (see <a href="https://developers.flow.com/evm/how-it-works">here</a> for technical details). This breakthrough eliminates the need to build everything from scratch. Developers can now leverage Cadence to enhance EVM apps built in Solidity, opening doors to new business models and refined access control. Moreover, it introduces novel features to EVM, resolving longstanding issues. For instance, a single Cadence account can now manage multiple EVM addresses, facilitating key rotation and control transfer without the tedious process of moving assets individually. Another example: Cadence provides developers with access to randomness, a feature now extended to the EVM environment.</p><p>The introduction of EVM on Flow marks a pivotal moment in blockchain technology. It seamlessly connects established EVM-based development with Cadence’s innovative capabilities, offering developers an unparalleled blend of familiarity and advancement. This integration not only elevates the developer experience but also unlocks new avenues for creating more robust, efficient, and user-friendly decentralized applications — a prospect that truly excites me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d464511323d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Community Memory 2.0]]></title>
            <link>https://medium.com/@ramtin/community-memory-2-0-69c9e12c52da?source=rss-619af130ab9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/69c9e12c52da</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Ramtin Seraj]]></dc:creator>
            <pubDate>Mon, 11 Sep 2023 05:42:41 GMT</pubDate>
            <atom:updated>2023-09-16T08:05:02.384Z</atom:updated>
            <content:encoded><![CDATA[<h4>Blockchain without the hype</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*1eKpmhgIE7cExajroG_qvg.jpeg" /><figcaption><em>Community Memory Booth// Photo courtesy of the Computer History Museum</em></figcaption></figure><h3>Intro</h3><p>There are plenty of articles about blockchain technology, but I often feel that they miss the mark on its core values and potential to change the future. If we put the hype-inducing terms like web3 aside, blockchain is the next generation of “<a href="https://en.wikipedia.org/wiki/Community_Memory">Community Memory</a>”. Community memory was an early form of media where people shared the same platform to track information and knowledge with each other. While initially conceived as an information and resource-sharing network linking a variety of counter-cultural economic, educational, and social organizations with each other and the public, Community Memory was soon generalized to be an information <a href="https://en.wikipedia.org/wiki/Flea_market">flea market</a> and a general communications medium that could be used for art, literature, journalism, commerce, and social chatter. Similarly, blockchain technology allows for decentralized information sharing and storage, without the need for a central authority. But what is the power of a community memory, Let’s look at an imaginary community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cwc2Ck-slX9lImNK" /><figcaption>Photo by <a href="https://unsplash.com/@wrenmeinberg?utm_source=medium&amp;utm_medium=referral">Wren Meinberg</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Trust on the community</h3><p>Let’s imagine that we live in a global community where a day at a specific time, we gather around a fire with a stone (or a sheet of paper) that we can write anything on, as long as the majority of the community agrees on it. The content is visible to everyone, and the community regards it as the source of truth for their actions the following day, emphasizing transparency.</p><p>But what would this community use the stone for?</p><p><strong>Rules and decision-making</strong></p><p>The first thing this community could establish is a set of rules, such as “the rules written on this stone cannot be contradictory” or “every member of the community is allowed to propose what should be written on this stone and set the proposal for votes.” Whenever the community gathers, they can decide whether to update the rules based on their effectiveness.</p><p><strong>Tracking promises or ownership</strong></p><p>The community could use this stone as a ledger to keep track of promises made by its members (e.g. if a member promises another member to pay them a certain amount of coins). Alternatively, they could use this stone to track ownership of assets within the community.</p><p><strong>Resource allocation and auctions</strong></p><p>The community could list all assets owned by it and open up control of those assets to the highest bidder within the community. This could result in maximum resource utilization.</p><p>It seems powerful, eh? what other problem we can solve with it?</p><p>Blockchains facilitate this gathering of the community around the fire except it let it be 24/7 and constantly adding more things. Smart contracts are the software version of this stone with some properties which make them even more unique.</p><ul><li><strong>Determinism</strong>: Every code on the chain has to be deterministic, so there is no room for ambiguity. In the case of rules, there won’t be a need for a heavy judiciary system to figure out the meaning of the ambiguous rules and laws.</li><li><strong>Transparency</strong>: Everything on the chain is transparent to everyone and this might prevent anyone from being above the rules.</li><li><strong>Composition</strong>: Smart contracts could be composed to form more complex logic.</li></ul><p>This could even make new paradigms of software development possible. For instance, an intriguing idea would be to implement and deploy long-lived, self-governing software objects that are only modifiable according to their interface and rules. This could result in assets on the chain that are not owned by any individual but instead are owned by the community.</p><p>Now that we have this technology at our disposal, what else could we do with it besides what has been mentioned? Other ideas?</p><p>—</p><p><strong>Disclaimers</strong>: This is one of my always-changing “as-is” posts. This means I mostly didn’t have much time to develop it but I want to put it out as soon as I can and I update it from time to time. If it receives attention, I spend more time polishing and improving it. If my understanding of it changes, I will adjust it. And this is written solely based on my personal view of the world. Please do not blame anyone else because of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69c9e12c52da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain under the hood — Transaction Deduplication]]></title>
            <link>https://medium.com/@ramtin/blockchain-under-the-hood-transaction-deduplication-60b4358b7ec3?source=rss-619af130ab9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/60b4358b7ec3</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[flow]]></category>
            <dc:creator><![CDATA[Ramtin Seraj]]></dc:creator>
            <pubDate>Tue, 01 Aug 2023 23:57:11 GMT</pubDate>
            <atom:updated>2023-08-01T23:57:11.699Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blockchain under the hood — Transaction Deduplication</h3><h3>Introduction</h3><p>In a series of articles, I will explore some of the technical challenges that every blockchain must address. I will examine how these issues have been tackled, identify potential areas for further exploration and prompt readers to consider this topic more deeply.</p><p>Any blockchain protocol must be designed to prevent the double execution of a transaction. Therefore, software solutions are required to ensure that each valid transaction is executed at most once.</p><h3>Sequence-based approaches</h3><p>The Ethereum Virtual Machine (EVM) uses a space-efficient trick to overcome this problem. Each account stores an always-incremented number called <strong>nonce</strong>, alongside its balance. This captures the number of transactions that the account has executed so far. By using the nonce number stored on the account, the protocol can reject transactions that have already been executed or hold onto them if it is too early for them to be executed.</p><p>Using a nonce for transaction deduplication has a side effect that has been embraced as a feature by the community: <strong>transaction ordering</strong>. By setting the nonce numbers, the client can signal to miners to hold onto a transaction until another transaction is included, rather than including it immediately.</p><p>While initially interesting, using this sequential model introduces several issues:</p><ul><li>For accounts that send a high rate of transactions, any issue with a transaction would result in a halt to the execution of all other transactions. It also causes a delay in detecting if something has interrupted the pipeline, and most likely, the account has to re-sign and re-send transactions. As we experienced in the early days of launching CryptoKitties, dealing with this is complex and leads to a poor user experience.</li><li>This limitation on the order of transactions limits the miner’s flexibility in optimizing block compositions. It also opens up the possibility of an attacker constructing and sending transactions with an incorrect nonce to hit the mempool capacity.</li><li>As the EVM currently does not allow control of an account from multiple devices, many users utilize seed phrases to store and use the same key across different devices. In such cases, active synchronization is necessary as the user may use the same sequence number on each device.</li><li>It is worth noting that this approach requires a sufficiently large selected space for the nonce and some overflow protections.</li></ul><p><strong>Flow Virtual Machine (FVM)</strong> utilizes an extended version of the sequence number solution to alleviate some of the aforementioned pains. Each account on Flow can be controlled by multiple keys. By allocating a sequence number (similar to a nonce but named more accurately) to each key, users maintain the benefits of the sequence number without the side effects. If an account needs to send transactions in order, it can still use the sequence number of one key. If an account requires concurrent execution of a high volume of transactions, it can use multiple keys.</p><p>Another variation of this solution involves maintaining a window of acceptable numbers ahead of the current sequence number stored on the account and keeping track of the state of this window. However, this approach suffers from both complexity and memory overhead and is still subject to synchronization issues between devices and chains. Additionally, it does not offer an easy way to order transactions, if needed.</p><h3>Memorization-based approaches</h3><p>A simpler way to handle transaction deduplication is to keep track of all on-chain transactions that have been executed. However, maintaining a global map of historical transaction hashes is impractical due to scaling and performance issues. While the approaches in this category do not suffer from the limitations mentioned for sequence-based approaches, there are several obstacles to overcome.</p><p><strong>Scalability problem</strong></p><p>One way to tackle the scale of this problem is to limit the lifetime of a transaction’s validity. By imposing a fixed window of validity on every transaction, it can be maintained on a large map of executed transactions until it expires. However, this strategy requires tracking transactions that will expire in the future and adding them to the map after execution, as well as purging expired historical transactions from the map. While some community members always want to maintain ephemeral transactions, I believe that non of the sequence-based approaches provides that guarantee, given that if any other transaction with the same sequence number has been sent, it would make the ephemeral transaction invalid. Also one could argue that any ephemeral transaction logic could be implemented as on-chain smart contract logic and that is a more robust way to do it.</p><p>To make this solution more space-efficient and practical, cryptographic accumulators or windowed Bloom filters can be utilized. However, in our experiments, we found that utilizing an RSA-based cryptographic accumulator resulted in significant computation overhead, making it infeasible for Flow to use.</p><p><strong>Transaction Ordering Support</strong></p><p>As mentioned earlier, one of the side effects of sequence number-based deduplication, which has been heavily used by the community, is transaction ordering. If we move away from this approach, we need to have alternative solutions for ensuring transaction ordering.</p><p>An explicit transaction reference might be a good solution for this problem. You could reference only a transaction that has been executed but not expired (or not expired beyond a short window).</p><p><strong>Transaction Malleability</strong></p><p>Another important factor to consider here is that this approach assumes the existence of a unique ID for each transaction. If a transaction can be modified to allocate two different IDs, it could be executed twice, allowing for potential security vulnerabilities. One common attack in this regard involves using signature malleability to generate two different valid transaction hashes for the same transaction. Since this approach relies on the transaction ID, measures must be taken to prevent this type of attack.</p><p>If you’re interested in more about some other approaches you can read my proposal for Flow blockchain <a href="https://forum.onflow.org/t/transaction-deduplication-without-sequence-number/5049">here</a>. <br>Can you think of other ways to solve this problem? Can you think about ways to provide proof of inclusion and rejection of a transaction where censorship is possible by the miners?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60b4358b7ec3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software trends in the next decade; an open letter to myself]]></title>
            <link>https://medium.com/@ramtin/software-trends-in-the-next-decade-an-open-letter-to-myself-e0c863facaac?source=rss-619af130ab9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0c863facaac</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Ramtin Seraj]]></dc:creator>
            <pubDate>Mon, 27 Jan 2020 23:08:47 GMT</pubDate>
            <atom:updated>2020-01-28T01:16:58.086Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Ho1ThVPdM0MMve3poShtA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@alanaharris?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Alana Harris</a> on <a href="https://unsplash.com/s/photos/2020?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>It’s 2020 and here we are; more than any time we’re impacted by the growing power of software (messaging, social media, eCommerce,…). As always we use our brains building tools to fulfill our needs and solve our problems and those tools shaping the way we think about anything in the world. We built text messages over cell phones and tweets, the message size limitation of it changes the way we use language forever (“BRB”, “cu”, emojis, … ). We built social networks to stay connected with people we care about. The front camera was initially designed for video conferencing using cellphones. Now we use it to take selfies and post it on social media to attract people we don’t know them yet. Even it might be the last time we celebrate new years with the fireworks. <br><strong>Disclaimer:</strong> Two weeks ago, I was talking to one of my friends and colleagues, Benny Giang, about how software trends will change in the next decade and he suggested that I write it down somewhere. Thus, this is not a prediction or a guideline or any advertisement-driven blog post; it is an open letter to myself in ten years to look at the past and see what were the trends I was expecting and what was the outcome. And this only reflects my personal opinions, don’t blame anyone else for it.</p><h3>Impacting Factors</h3><p>I don’t like general predictions without backup evidence. Software trends are usually impacted by two main sources of impacts: hardware breakthroughs, and social behaviour changes. I’m not an expert in social behaviour prediction so I only concentrate on hardware changes that I believe will and won’t change software trends.</p><p><strong>Communication speed and bandwidth</strong></p><p>Expansion of 5G networks and recent improvements in computer networking and telecommunication changes the potential for new applications radically. In the previous decade, the progress in CPU speed and the use of custom-designed processing units like GPUs unlocked a big group of <em>processing-bound applications</em> such as deep learning. We found ways to execute things cheaper, faster, and in parallel. I believe this decade a similar pattern will happen but this time with <em>bandwidth-bound</em> applications. Although most of the applications in this category haven’t been built yet to utilize these new bandwidth capabilities, some example of the existing ones that can benefit from this factor are:</p><ul><li>Applications that require the rapid transfer of large bulk of data such as <em>Virtual Reality </em>and<em> Augmented Reality</em></li><li>Applications that require interaction between many computers such as <em>Blockchain</em> <em>Consensus</em> <em>Algorithms</em> (e.g. Hotstuff) and <em>Interactive</em> <em>Secure Multiparty Computation</em>.</li><li>Applications that require access to many sensory devices like real-time applications running on the <em>Internet of Things.</em></li></ul><p>Furthermore, this factor (faster internet and higher bandwidth) enables full separation of storage and processing units, which improves data availability and safety. Nothing has to be stored on a device and can be fetched as needed. I’ll provide more info on this in trend sections.</p><p><strong>Remote Wireless Charging</strong></p><p>Few companies have already started products to transfer power and energy to devices remotely using radio frequency (RF). Few of them even patented ways to transfer energy wirelessly up to 50 meters. Some of you already use a very basic version of this by wirelessly charging your cellphone. I believe in the next decade we will be able to separate energy from devices and make them remotely receive power. A combination of the previous factor (network speed/high bandwidth) and this factor results in a phenomenon that I call it the <strong>proliferation of sensors</strong>. If we can supply the energy to sensor remotely and enable fast internet access for them, we can make them as small as possible. These sensors will be everywhere in our life and even can be implanted into human bodies. Sensors activated by brain functionalities may introduce new ways of human interaction and may even make conversational interfaces obsolete.</p><p><strong>Quantum Computers</strong></p><p>In the past decade, we observed improvements in Quantum computing, but unfortunately, I don’t think we’ll see that much more progress in the coming decade. I believe it takes more than 10 years to get to a point to be practical and cost-effective for many applications. I have three reasons for this claim, 1) Unfortunately, I feel the current strategy of the companies investing in quantum computers is the same approach they took for selling General AI. Create hype by showcasing toy applications and create bubbles around it before the technology is ready. These bubbles cause investment winters; many companies and research centers have done this in the past for General Purpose Artificial Intelligence. General Purpose Artificial Intelligence is not a solved problem yet and moving from narrow AI to general AI hasn’t been a great success so far. 2) for many problems a sub-optimal solution but cheaper is good enough for many users and companies. It might not worth the total cost needed per operation to find the optimum solution. 3) Without getting into technical details, building scalable quantum computers is a crazy hard problem, the growth of technology is not linear and still many many open problems.</p><p>These were some example of the factors impacting trends, there are many many more that is out of the scope of this letter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9m3PUCJjSrpQaywO9vBC0w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@max_duz?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Max Duzij</a> on <a href="https://unsplash.com/s/photos/programming?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Trend: Expressive programming</h3><p>I have been doing research and development of artificial intelligence systems and applying machine learning for more than 7 years now. I don’t want to argue about if General AI will be solved in the next decade or not, but there is something more valuable here that will introduce a big shift in the way we build software.</p><p>The progress in the ways we can train machine learning models will change the way we do software development. These improvements in machine learning and the new low-code/no-code movement will result in something I called it <strong>Expressive Programming</strong>. Before describing it let’s take a look at traditional software development.</p><p>Traditional software development requires a developer or a group of developers to learn new programming languages, work with clients to understand their needs and business requirements, and finally do the programming by explaining line by line the operation a piece of code should do to fulfill this need. There were few major fallbacks with these models:</p><ul><li>Learning programming languages, data structures, algorithms, … is not easy.</li><li>The developer is responsible to understand the whole domain and the business</li><li>A lot of confusion and mistakes happens in the communication channel between developer and client</li><li>As soon as the project gets larger, it requires more developers, and every software company can tell you how hard it is to build a large team of developers and minimize the communication overhead</li><li>As soon as the business logic becomes more complex, coding and debugging become a lot more difficult. Sometimes we don’t even know how something works. Automatic human face detection of a person is not something a developer can trivially code.</li></ul><p><strong>Expressive Programming</strong>, Andrej Karpathy calls it <a href="https://medium.com/@karpathy/software-2-0-a64152b37c35">Software 2.0</a>, is a new wave of software development, Instead of telling a computer how to do something, we describe the desired inputs and output and we allow the software to figure out a way to do it. This makes development very easy and the role of the developer will change to provide as many tests and use cases to validate if the software is working as expected. Personalization is a great example of expressive programming. We can’t write code on what to recommend to each person, but we can describe our desired outcome. Due to the many bias and safety issues of the current machine learning algorithms, we still need humans but this time their job is testing the quality of the software. This will result in an increase in demand for quality assurance (QA) engineers and testers. And governments and organizations will have to define new standards and regulations around biases, safety, and misuse of software.</p><p><strong>Expressive Programming </strong>makes the task of software development way easier and, in combination with the low-code and no-code movement, can actually change the way software is built today. By removing barriers, the business owner (client) can use tools to fulfill business needs. They don’t have to hire a software company for a big portion of their needs. This removes the communication headaches, reduces costs, and removes the errors that can occur because of the side effects mentioned before. Any profession can utilize expressive programming and will be empowered to move faster. This trend has already been started with car companies working on self-driving/flying cars.</p><p>This doesn’t remove the need for software companies and still, we need software companies for more complex software or building infrastructures of this trend. One can look at <strong><em>expressive programming</em></strong> as the next level of moving towards higher-level programming languages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4oLTQvHZQtP1-e9S4T-0FQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@serjosoza?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">sergio souza</a> on <a href="https://unsplash.com/s/photos/world?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Trend: Unified Digital identity</h3><p>This decade, every human will have a <strong><em>unified digital identity. </em></strong>Soon all of us need a unified digital identity to prove our identities in our digital life. Our digital identity can be defined as holding multiple cryptographic keys and using them everywhere to prove our identity and approve something. We won’t have passwords on any website anymore, we just have to digitally sign our login request with our keys. Even organizations and governments need these digital identities. A citizenship status might be a government signing our identity. We need these identities not just because they are fun because we have to.</p><p>With the recent improvements over deep fakes, soon enough it would be almost impossible to differentiate real from artificial photos, videos and voices. We have to have a way to sign our own contents and our digital traces everywhere as needed.</p><p>The breakthrough in network speed enables us to have a new type of digital economy and makes the notion of physical currencies obsolete. Current blockchains are the initial examples of how our identities can be tied to the applications we use. Smart contracts will substitute the paper-based contracts and agreements between people. Digital currencies and decentralized applications can create free and open marketplaces. The combination of marketplaces and a reputation system based on our identities can remove the role of middleman in almost all markets. Removing middlemen and facilitating sharing economies (like car sharing, bike sharing, …) will make every service cheaper than any time in the past.</p><p>The biggest challenge with <strong><em>unified digital identity</em></strong> is privacy. In my view, this will be the biggest and most crucial problem to be solved in the next decade. I can’t predict what the outcome of the privacy movement will be and, unfortunately, personal privacy has always succumbed to user convenience. I hope that these movements will start this decade and result in personal privacy and government/organization public data availability. I have way more things to say about privacy, but I’ll postpone it to another blog post.</p><p>There are definitely more examples of this trend and more to talk about, but I’m pretty sure if I add more details no one will finish this post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d-fdgqKitDn8UmGOFRlDzQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@stella_jacob?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Stella Jacob</a> on <a href="https://unsplash.com/s/photos/virtual-reality?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Trend: Telepresence</h3><p>Faster networks and more bandwidth will remove one of the blockers for virtual and augmented reality. In a combination with the proliferation of sensors<strong>,</strong> the need for us to physically move will become less and less. We will be more stationary with telepresence everywhere we have to be. This trend has already started with e-commerce and online stores shipping products to us. We work remotely at virtual offices. We join remote conferences. We control things remotely. We buy things at virtual stores.</p><p>Remote assistance will become a really big thing. For example, if your heating system is broken you don’t need someone physically come to your place, you can share your augmented reality image with the remote assistant and they can walk you through the steps to fix it. A doctor can read sensory information about our bodies and can send examination kits to our doors and remotely subscribe medicine or even do telesurgery.</p><p>Social networks will change forever. In the past, because of improvements over network speed, our online social experience moved from a simple text (blog posts, Facebook posts, twitter) to sharing photos (Instagram) and recently to sharing videos (TikTok). Soon this will move to another level of real-time streaming even 3D renderings of day to day life of people.</p><p>This trend will make physical presence an expensive experience, only used for things that people love to do it in person, and this will change the transportation industry to more delivering things than people. The less frequent physical transportation will make cars less cost-effective and makes ride-sharing and car-sharing more common. Self-driving/flying deliveries will expand rapidly.</p><p>I have more trends and more examples to cover but this post is already big enough that most readers will just scroll it in the age of tweetstorms. If you enjoyed reading this, let me know and I’ll post more of my thoughts in the future.</p><p>Ramtin</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0c863facaac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bite-size Ideas]]></title>
            <link>https://medium.com/series/bite-size-ideas-c1356eb8fcde?source=rss-619af130ab9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1356eb8fcde</guid>
            <dc:creator><![CDATA[Ramtin Seraj]]></dc:creator>
            <pubDate>Sat, 21 Sep 2019 20:37:45 GMT</pubDate>
            <atom:updated>2019-09-21T21:53:27.429Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Prologue</strong></blockquote><p>This is a collection of bite-size ideas mostly about software development, …</p><p>We are living in a time that everyone doesn’t have time &lt;caugh&gt;patience&lt;/caugh&gt; to read a full 10-page medium post and prefers tweets. so I’ll try to write my ideas into bitesize pieces.</p><p>I believe the print era is over so we have this option to re-write our notes using an iterative process. Similar to the way I write software, I’ll write posts about my ideas with a lot of grammatical mistakes, incomplete and without edits. if I find more people interested in it I’ll iterate over it. so bear with me.</p><p>Well, none of our ideas are our own ideas, we are a collection of ideas over time with some salt added from our experience. I don’t claim ownership of these ideas.</p><p>All of my posts are my own sh*t, I’m <strong>not</strong> writing to promote any platform or software because they pay me, and I believe in<a href="https://en.wikipedia.org/wiki/No_free_lunch_theorem"> no-free-lunch theorem </a>so something worked for me might not work for you.</p><blockquote>Software Teams - s<strong>ize really does matter</strong></blockquote><p>If you’re one person team, well... good luck with that.</p><p>if you’re part of a team with size of 2–3, don’t waste your time with scalable or robust architecture (e.g. microservices) and efficient and robust languages (e.g. Rust). build everything lean and fast, if you become successful you have enough people to rewrite everything in a better way. Make sure you limit meetings and talking parts. Use standups to keeps yourself and your team motivated.</p><p>If your team size is 4–8, you have a perfect size team, it might make sense at this point to use project management tools. It is time to makes sense to have proper code reviews so everyone in team knows what to do. Keep it iterative, your code should run and do something end-to-end before expanding it.</p><p>If your team is getting bigger than 9 people, your performance actually might drop. Sofware people are an special species that does not survive in a big team, break your team to smaller teams. If you think you double your team size, you double your speed and performance, you might actually cut your performance into half. <em>Most of the linear correlation assumptions you have are your </em><a href="https://en.wikipedia.org/wiki/Achilles%27_heel"><em>Achilles’ heel</em></a><em>.</em></p><blockquote>Microservices are inevitable</blockquote><p>Well, all software looks clean, shiny, and easy to understand one day but gradually become monsters (really complex and really hard to improve)</p><p>There is a time that your software is diagnosed with this issue, you need to find the right places in your codes to do a cut and convert your service into microservices.</p><p>Microservices has many pros and cons that you can google it. what I care is</p><p>it makes it easier to have one or two people to own a microservice. <em>Software scalability is way easier than team scalability.</em></p><p>Make sure your timing is right, you’re actually suffering from monster software situation, if you do this early you might not deliver anything at all.</p><p>you can read more <a href="https://thenewstack.io/beauty-beast-justgivings-microservices-transformation/">here</a>:</p><p><a href="https://blog.newrelic.com/technology/microservices-what-they-are-why-to-use-them/">https://blog.newrelic.com/technology/microservices-what-they-are-why-to-use-them/</a></p><p><a href="https://martinfowler.com/bliki/MonolithFirst.html">https://martinfowler.com/bliki/MonolithFirst.html</a></p><p><a href="https://thenewstack.io/beauty-beast-justgivings-microservices-transformation/">https://thenewstack.io/beauty-beast-justgivings-microservices-transformation/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1356eb8fcde" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>