<?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 Riccardo Biosas on Medium]]></title>
        <description><![CDATA[Stories by Riccardo Biosas on Medium]]></description>
        <link>https://medium.com/@rbios?source=rss-3e969916e3d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UgyPRfsFxxO082PaCiydcw.jpeg</url>
            <title>Stories by Riccardo Biosas on Medium</title>
            <link>https://medium.com/@rbios?source=rss-3e969916e3d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 23:46:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rbios/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[What Are Rogue Agents? Autonomous AI incidents and the Swarmchasers going after them]]></title>
            <link>https://medium.com/mlsecopsnews/what-are-rogue-agents-autonomous-ai-incidents-and-the-swarmchasers-going-after-them-eedb4e4bd51e?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/eedb4e4bd51e</guid>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[agent-rogue]]></category>
            <category><![CDATA[ai-agent-security]]></category>
            <category><![CDATA[ai-security]]></category>
            <category><![CDATA[owasp]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 10:58:27 GMT</pubDate>
            <atom:updated>2026-10-16T10:59:12.137Z</atom:updated>
            <content:encoded><![CDATA[<h3>Rogue AI agents are no longer just an AI safety thought experiment: OWASP’S ASI10 security risk is the next cybersecurity frontier.</h3><p>OWASP formally introduced <a href="https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/#:~:text=(ASI10%20%E2%80%93%20Rogue%20Agents%2C%20e.g.%20Replit%20meltdown)"><strong>ASI:10: Rogue Agents</strong></a><strong> </strong>in its <a href="http://Top 10 for Agentic Applications released in December 2025. https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/">Top 10 for Agentic Applications released in December 2025</a> — their ranking on the top 10 security risks for agentic AI applications.</p><p>The attack surface outlined in that list marked a significant shift compared to the <a href="https://genai.owasp.org/llm-top-10/"><strong>OWASP TOP 10 for LLM Applications</strong></a>: except for <a href="https://genai.owasp.org/llmrisk/llm062025-excessive-agency/"><strong>LLM06: Excessive Agency</strong></a><strong>, </strong>all the listed LLM security risks focused on the input/output that a model receives/produces, whereas the <strong>Agentic Top 10 focuses on what happens when those I/O become actions</strong> handled by autonomous or semi-autonomous systems.</p><p>AI agents can now browse the web, execute code, use credentials and interact with real infrastructure. A bad model output no longer necessarily ends with a bad answer: the blast radius is far larger and not as easy to map to a deterministic threat model.</p><p>However, it wasn’t until 2026 that rogue agent incidents moved from rare edge cases to a visible and rapidly growing security threat.</p><h3>What is a rogue agent?</h3><blockquote>Rogue Agents are malicious or compromised AI Agents that deviate from their intended function or authorized scope, acting harmfully, deceptively, or parasitically within multi-agent or human-agent ecosystems</blockquote><p>As per OWASP definition in its <a href="https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/">Top 10 for Agentic Applications for 2026</a>.</p><p>The critical concept is <strong>behavioral divergence: </strong>autonomous systems can develop <strong>emergent behavioral properties</strong> that can become harmful and unpredictable.</p><p>An agent does not necessarily need an attacker to go rogue.</p><p>External compromise — <a href="https://genai.owasp.org/llmrisk/llm01-prompt-injection/">prompt injection</a>, <a href="https://genai.owasp.org/2025/12/09/owasp-top-10-for-agentic-applications-the-benchmark-for-agentic-security-in-the-age-of-autonomous-ai/">goal hijacking</a> or <a href="https://genai.owasp.org/agentic-top-10-2026/asi0426/">agentic supply-chain tampering</a> — can trigger the divergence.</p><p>But so can <a href="https://www.anthropic.com/research/agentic-misalignment"><strong>internal misalignment</strong></a>: conflicting objectives, reward hacking, proxy optimization or simply an autonomous system progressively interpreting its objective differently from how its operator intended it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvZ_HLWqjbN5sKtKtqaq4w.png" /><figcaption><strong>Both paths (malicious actor’s attack &amp; internal misalignment) can converge into the same state</strong></figcaption></figure><p>This distinction matters because traditional security controls mostly verify whether an identity is <em>allowed</em> to perform an action.</p><p>Rogue-agent security, however, doesn’t fall under the traditional trust boundaries and threat models that we use to map software architectures, which brings to the hard question:</p><blockquote><strong><em>Is the agent still using those permissions for the objective we actually authorized?</em></strong></blockquote><p><a href="https://learn.snyk.io/lesson/rogue-agents">Snyk describes this as a <strong>loss of</strong> <strong>behavioral integrity</strong></a><strong> </strong>(or intent drift): individual actions can remain technically permitted while the overall behavior drifts outside the intended purpose.</p><p>That makes a rogue agent look less like traditional malware and more like <strong>an insider threat operating at machine speed</strong>.</p><h4>Then the agents started acting</h4><p><strong>The </strong><a href="https://openai.com/index/hugging-face-incident-and-the-road-ahead/"><strong>OpenAI–Hugging Face incident</strong></a><strong> is probably the most notorious example so far.</strong></p><blockquote>During cybersecurity evaluations in July 2026, OpenAI agents circumvented isolation controls, established unauthorized communication channels, gained internet access and compromised parts of OpenAI’s research infrastructure and Hugging Face’s systems while pursuing their assigned tasks. OpenAI later described the actions as <strong>misaligned with the goals of the assigned tasks </strong>and called the incident a “warning shot” for the industry.</blockquote><p>The model did not just produce the wrong answer.</p><p><strong>It acted.</strong></p><p>Not so long after, some <a href="https://www.anthropic.com/news/investigating-incidents-cybersecurity-evals">Anthropic models also went rogue</a>.</p><h4>Enter the Swarmchasers</h4><p>New kinds of cybersecurity threats require a new kind of security researcher.</p><p>Researchers informally known as <a href="https://swarmcha.se/posts/openai-swarm-budget-table"><strong>Swarmchasers</strong></a> comb the public web for traces left by autonomous AI agents and reconstruct what those agents were doing.</p><p>Unlike malware forensics, there is no stable executable to hash or cluster, so the conventional forensics/telemetry techniques are not as effective. <strong>The rogue agents activity is iteratively reconstructed by identifying behavioral/communication/traffic patterns, timestamps, payloads and shared infrastructure.</strong></p><p>It starts to look like a new form of **agent threat intelligence**.</p><p>Traditional threat intelligence reconstructs:</p><p><strong>malware → infrastructure → attacker</strong></p><p>Agent threat intelligence may increasingly need to reconstruct:</p><p><strong>agent → objective → tools → actions → infrastructure → behavioral divergence</strong></p><p>The interesting signal is no longer just the API call, shell command or HTTP request.</p><p>It is the <strong>sequence of actions and the objective behind them</strong>.</p><p>If you’re interested in following more rogue-agent incidents, I’m tracking a growing dataset of autonomous security attacks on <a href="https://www.rogueagentswatch.com/"><strong>Rogue Agents Watch</strong></a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*iyI5GJORlNx1jJD5iENMxA.png" /><figcaption><a href="https://www.rogueagentswatch.com/#/map">Rogue Agents Incidents Map</a></figcaption></figure><blockquote>And you want more AI security, MLSecOps and agentic security research, check out <strong>The MLSecOps Hacker</strong> at <a href="https://themlsecopshacker.com/?utm_source=chatgpt.com">themlsecopshacker.com</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eedb4e4bd51e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mlsecopsnews/what-are-rogue-agents-autonomous-ai-incidents-and-the-swarmchasers-going-after-them-eedb4e4bd51e">What Are Rogue Agents? Autonomous AI incidents and the Swarmchasers going after them</a> was originally published in <a href="https://medium.com/mlsecopsnews">Rogue AI Intel: MLSecOps &amp; AI Security News</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Glimpse into Motoko and AgorApp embeddable IDE]]></title>
            <link>https://medium.com/dfinity/a-glimpse-into-motoko-and-agorapp-embeddable-ide-dc872826cd82?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc872826cd82</guid>
            <category><![CDATA[online-ide]]></category>
            <category><![CDATA[the-internet-computer]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[dfinity]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Fri, 23 Jun 2023 11:43:46 GMT</pubDate>
            <atom:updated>2023-06-23T11:43:46.457Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*63u3Xkkxj7bX64Hu27BfaQ.jpeg" /></figure><p>Curious how to get started with building on the <a href="https://internetcomputer.org/docs/current/home">Internet Computer</a>? In this article, we will review some of the reasons why <a href="https://internetcomputer.org/docs/current/motoko/main/motoko">Motoko</a> came to be, its trade-offs compared to the alternative ICP smart contract languages and, finally, <a href="https://blog.agorapp.dev/blog/a-glimpse-into-motoko-and-agorapp-embeddable-ide#your-first-motoko-coding-challenge">how to dive into the syntax of Motoko right away</a> on <a href="https://agorapp.dev/"><strong>AgorApp —</strong> <strong>the go-to online interactive coding platform</strong></a>.</p><h3>Introduction to Domain-Specific Languages</h3><p>The landscape of domain-specific languages (DSL) specifically dedicated to smart contract development is growing. The reasons why the blockchain ecosystem has fueled the research and development of so many new domain-specific languages are plentiful.</p><p>A DSL offers many attractive features and trade-offs, especially <strong>in the context of Blockchain systems — where financial assets are a first-class citizen and, subsequently, the need for security and correctness is paramount.</strong></p><p>However, let’s first define what a DSL is: a <strong>domain-specific language is a programming language that is designed to address very specific problems, platforms or domains</strong>. While languages like Javascript, Python and Golang are general-purpose and can seamlessly be used for almost anything, the design of a DSL is tightly coupled with the domain and challenges it is meant to be used for. The domain-specific design allows to achieve several benefits, such as:</p><ul><li><strong>Enhanced security</strong>: by narrowing their scope, domain-specific languages can more easily integrate compile-time checks, safe type-systems and various forms of runtime protection and formal verification.</li><li><strong>Enhanced developer experience</strong>: similarly to the previous point, the narrow scope of DSLs allows to create abstractions and built-in that provide first-class access to the domain-specific features and functionalities.</li><li><strong>Enhanced performance</strong>: lastly, the highly specialized nature of DSLs allows to fine-tune the language for specific tasks in order to achieve better performance than its general-purpose counterparts.</li></ul><p>The domain-specific language of choice in the Internet Computer ecosystem is <strong><em>Motoko</em></strong>.</p><blockquote>Motoko is a statically typed language that compiles into WebAssembly. Its design leans towards the functional paradigm, but it equally emphasizes ease of use and smooth developer experience.</blockquote><p>Some of its language features like <a href="https://internetcomputer.org/docs/current/motoko/main/pattern-matching">pattern matching</a> might already be familiar to those who played around with languages like Haskell, nevertheless the overall syntax is much more approachable than its functional counterparts.</p><p>The other main smart contract language in the Internet Computer landscape is <strong><em>Rust</em></strong>: unlike Motoko, Rust is obviously a general-purpose language.</p><p>Building on the <strong>Internet Computer is a decidedly different experience compared to developing on Ethereum</strong>. While the Ethereum’s EVM is a sandboxed deterministic execution environment, the<strong> ICP architecture is made of canisters — computational units that execute code and store data — which can host full-fledged web-applications, make outbound HTTP requests</strong> and so on.</p><p>In the context of ICP app development, <strong>Motoko offers some notable advantages over Rust</strong>. In this article we will go through them and you will also get to practice some Motoko right away on the <a href="https://blog.agorapp.dev/blog/a-glimpse-into-motoko-and-agorapp-embeddable-ide#your-first-motoko-coding-challenge">AgorApp embeddable IDE</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8qRBb2LvH1XI7Ke_gAMjhw.jpeg" /></figure><p>But first, an interesting tidbit for all the cyberpunk and anime enthusiasts out there: the name Motoko is likely a reference to the main character of the <a href="https://en.wikipedia.org/wiki/Ghost_in_the_Shell">Ghost in the Shell</a> series, Motoko Kusanagi — highly recommended if you haven’t watched it yet!</p><h3>Comparison between Rust and Motoko</h3><p>The design of the <strong>Motoko programming language was tailored to easing up the asynchronous communication between different entities</strong> on the Internet Computer network.</p><blockquote>The model upon which the Internet Computer is built is that of a distributed network of memory-isolated entities that communicate asynchronously with each other. These asynchronous messages use a lingua franca called <strong><em>Candid</em></strong>. <br>Candid is a language-agnostic <strong><em>interface description language</em></strong> (IDL) that allows different services to interface with each other without worrying about their respective implementation details — i.e.: a frontend is written in Typescript, another service is written in Golang and an ICP application is written in Motoko.</blockquote><p>Now, asynchronous communication in a distributed system is a notoriously daunting engineering arena. As such, the Motoko language was designed using the <strong><em>Actor model</em></strong>, which is a computational framework/paradigm that allows to <strong>easily reason about different entities in a distributed asynchronous setting</strong>. <br>The main actor entity on the Internet Computer is the <strong><em>canister</em></strong>.</p><blockquote>A canister is a memory-isolated entity that holds both compiled code and storage.</blockquote><p>After being compiled into WebAssembly bytecode, Motoko programs are deployed to canisters, which then act as <em>computational units</em> that can be invoked by other canisters or by users via the Internet Computer’s <a href="https://internetcomputer.org/docs/current/developer-docs/setup/install/">IC SDK</a>.</p><p><strong>If you want to start dipping your toes into the Actor model and Motoko’s language features, you can check out the </strong><a href="https://agorapp.dev/editor/courses/motoko/learn-motoko/01-variables"><strong>Learn Motoko course</strong></a> — it is geared towards beginners, but the last lesson <a href="https://agorapp.dev/course/learn-motoko">Introduction to Actors</a> touches upon the very concept. <br>Stay tuned and subscribe to the mailing list to be the first to know when we will roll out more advanced courses!</p><p><strong>As powerful as Rust is, it is not designed with the Actor model and the ICP architecture in mind</strong>: Motoko provides native support for Candid, <a href="https://internetcomputer.org/docs/current/motoko/main/basic-concepts#type-soundness">a strong type system which statically ensures the absence of dynamic type errors</a> and, lastly, more intuitive abstractions for inter-canister communication.</p><p>Enough benchmarks for now, we will revisit the topic in a future article. Let’s jump right into the IDE.</p><h3>Your First Motoko Coding Challenge &amp; AgorApp embeddable editor</h3><p>Want to try out your first Motoko coding challenge in our embeddable editor? Then click <a href="https://blog.agorapp.dev/blog/a-glimpse-into-motoko-and-agorapp-embeddable-ide#your-first-motoko-coding-challenge">here</a> to check the original blog article!</p><p>In the upcoming weeks, we will gradually roll out our web3 embeddable editor feature to various platforms (maybe medium? reach out to tell us which platforms you’d like us to support!) and partners — such as <strong>bootcamps, DeFi/blockchain protocols that want make their technical documentation interactive and selected content creators</strong>. Then, after the end of the triage, it will be made available to all our users.</p><blockquote>if you are a tech/web3 content creator — Udemy, Youtube, blogger- and you’d be interested in integrating our embeddable IDE in your coding tutorials or creating a custom IDE instance for your audience so that they can better follow along your video courses, we’d love to hear from you. <strong>Our goal is to provide new ways with which you can engage your audience with the technical content you are creating</strong>.</blockquote><p>You can contact us on <a href="https://discord.gg/tBqGHCXv">AgorApp Discord</a> or just touch base with us on <a href="https://twitter.com/agorappdao?lang=en">Twitter</a> or <a href="https://www.linkedin.com/company/agorappdao/">Linkedin</a>.</p><h3>About AgorApp</h3><p><a href="https://agorapp.dev/">AgorApp</a> is an <strong>online interactive coding platform</strong> that offers courses and challenges focused on all-things-web3 engineering: from web3 domain-specific languages to building on top of DeFi and NFT protocols, solving smart contract auditing challenges in a browser-based IDE or participating to gas golfing competitions.</p><p><strong>With DFINITY and ICP</strong>, <strong>our core mission is to onboard the next wave of engineers into the developer ecosystem</strong>: from fast-tracking their <a href="https://agorapp.dev/course/learn-motoko">programming training in Motoko</a> and understanding of the ICP architecture to immediately recommending our users opportunities to monetize their newly learned ICP development skills right off the bat with grants and available job openings available in the Internet Computer ecosystem via our <a href="https://agorapp.dev/workspace/jobs">workspace dashboard</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*XDYMC7-7wv5M9MyM.png" /></figure><p>Would you like to dig deeper into the product we are building at AgorApp? Check out our <a href="https://blog.agorapp.dev/blog/meet-agorapp">introduction article</a> and <strong>sign up to the </strong><a href="https://blog.agorapp.dev/"><strong>blog</strong></a><strong> mailing list to not miss our next technical deep dives into smart contract engineering, Motoko, Internet Computer development &amp; get notified about fresh job and grant opportunities before everyone else</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc872826cd82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dfinity/a-glimpse-into-motoko-and-agorapp-embeddable-ide-dc872826cd82">A Glimpse into Motoko and AgorApp embeddable IDE</a> was originally published in <a href="https://medium.com/dfinity">The Internet Computer Review</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Opium V2: your out-of-the-box derivative protocol]]></title>
            <link>https://medium.com/opium-network/opium-v2-your-out-of-the-box-derivative-protocol-1f0cfbad1812?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f0cfbad1812</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[derivatives]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Thu, 10 Feb 2022 16:00:43 GMT</pubDate>
            <atom:updated>2022-02-14T16:03:43.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MW3ZGM52vUFa8GGqHqvVew.png" /></figure><h3>DeFi and CeFi: a tale of two worlds</h3><p>One of the many lenses through which we can assess the maturity of the current state of DeFi is by ranking the volume of its financial instruments and then compare the findings to their CeFi counterparts.</p><p>As <a href="https://www.cryptocompare.com/media/38553697/cryptocompare_exchange_review_2021_09.pdf">other analysts</a> have already pointed out, the most significant disparity between traditional financial markets and the cryptocurrency market lies in the difference between the size of the derivative market and market share of spot assets.</p><p>While, in the traditional financial markets, derivative volume dwarfs equities and other spot assets by a multiple greater than 30, in the cryptocurrency market options are only a relatively thin slice of the pie.</p><p>The DeFi ecosystem has been so far a retail market largely dominated by spot exchanges. In hindsight, it was a logical trajectory as the mechanics underlying the financial primitives of spot exchanges are inherently more easy to implement than the financial wizardry required to concoct a derivative market.</p><p>However, as the rate of institutional adoption keeps increasing, the DeFi instrument volume ratio will start to mirror CeFi: this means a potential growth for the DeFi derivative market that could be many orders of magnitude.</p><p>The bottlenecks that have prevented the growth of the DeFi derivative market can be summed up in two main categories: <strong>technical</strong> and <strong>demographics</strong>.</p><p>If it is in large part true that the cryptocurrency market first started and then flourished thanks to its strong, diverse grass-root retail user-base, it’s also true that the same user-base has increased their financial literacy over time. In what has been a collective learning experience, it is likely that many of its zealous users — a.k.a. <strong>the degens</strong> — have become traders and, similarly, developers have become financial engineers. At the same time, the rate of adoption among institutional investors — hedge funds, corporations adding crypto-assets to their balance sheets etc.- has consistently increased over the past year.</p><p>To further prove the case, the volume of Deribit and other centralized cryptocurrency options platforms has witnessed an exponential growth in 2021: still not as high as their CeFi counterparts, but much higher than decentralized derivative exchanges.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Zuc-Lf4JTimtpJVopKs4A.png" /></figure><p>So if the appetite for options of both users and investors is finally there and outmatches the current supply of financial products, then the only remaining reason for the current bottleneck in the DeFi derivatives market must be technical.</p><p>And if the bottleneck to a large extent is technical, how can we solve it?</p><blockquote><strong>This is the question that we, in the Opium community, wanted to solve with the design of Opium V2 and the new pool products that will soon be released on top of it.</strong></blockquote><h4>The design dilemmas of a derivative protocol</h4><p>Two of the top factors that determine the success of a DeFi derivative protocol are <strong>liquidity</strong> and <strong>flexibility</strong>.</p><p>Liquidity is essential for traders to ensure that there’s a market where they can exchange their assets. Flexibility is essential for financial engineers to ensure that a protocol allows them to seamlessly encode the financial requirements of their products: in other words, <strong>flexibility can be regarded as a good developer experience </strong>(DX).</p><p>Some protocol architectures, however beautiful and efficient for a specific use-case, tend to over-engineer their foundational layers, which ends up imposing constraints down the road in the breadth of products and financial requirements that they can support natively. One of the side effects of that is that the developers building on top of such an architecture will face implementation obstacles which will decrease the reach of third-party integrations.</p><p>Especially in an ecosystem such as DeFi, rooted in open-source development and governed by network effects, a software is only as strong as it is its adoption rate in the developer community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TLQqMLrwkTHWlhgn" /></figure><blockquote><strong>The Opium protocol v2 is meant to be asset-agnostic, both in terms of supported underlyings and in terms of oracles.</strong></blockquote><p>It is intentionally minimalist in its set of assumptions about what a financial product traded on it should look like.</p><p>As such, the Opium Protocol v2 acts as a trustless settlement layer with escrow functionalities. Any kind of sophisticated business logic (options strategies, vaults, peer-to-pool with different AMM models, different types of products -call/put options, CDS, interest rate swaps-) is something that can be easily supported atop the protocol, but it is not explicitly encoded in its core contracts.</p><p>The responsibility of the protocol layer should be only to mitigate counterparty risk in a trustless fashion and ensure the internal consistency of its balance-tracking operations and other primitives, without any further assumptions on who and what assets ought to be involved in its transactions.</p><h3>What’s new with V2?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ecbzdm7mfrpohLoRqmZiYg.png" /></figure><p>At its core, Opium V2 uses a factory pattern to mint ERC20 tokens — representing SHORT and LONG positions- upon the creation of a derivative. Their creation is delegated to a factory contract that uses the create2 opcode to deterministically calculate the deployment address of a position based on their derivative hash as a salt.</p><p>The derivative hash acts as a unique identifier across the protocol that distinguishes each and every financial product deployed on top of Opium v2. It partially borrows inspiration from the design of the Bloomberg tickers and <a href="https://en.wikipedia.org/wiki/International_Securities_Identification_Number">ISIN</a>, where<strong> the uniqueness of their identifiers provides a guarantee that a trader is dealing with the desired product</strong>.</p><h4>Gas Optimizations</h4><p>As bytes manipulation — let alone string manipulation- can be unforgivably costly in Solidity, some niceties that have been implemented in the factory contract to optimize its gas consumption include the implementation of the <a href="https://eips.ethereum.org/EIPS/eip-1167">EIP 1167 standard (Minimal Proxy Contract)</a>.</p><h4>More customization for synthetic authors</h4><p>Alongside its derivative hash, Opium v2 allows synthetic authors to assign a custom name to their derivative product. It is a purely cosmetic feature which, unlike the derivative hash, does not provide any guarantee of uniqueness and should not be relied upon for any critical business logic. However, should a derivative author create a series of financial products featuring many different synthetics, the possibility of customizing their positions’ names would improve their recognition in third-party derivative explorers.</p><h4>More efficiency for arbitrageurs</h4><p>Some of the other user-facing features featured in Opium v2 include the ability to redeem market neutral positions for their originally allocated collateral. The ability to be able to easily swap market neutral positions should make the user-experience of arbitrageurs and other market makers more smooth. Furthermore, they will be able to trade fractions of their positions — both market neutral and not.</p><h4>Gasless permits for position holders</h4><p>The <a href="https://eips.ethereum.org/EIPS/eip-2612">EIP-2612</a> has been implemented in the Opium position ERC20 contracts to decrease the costs associated with changing allowances and transfers in secondary markets.</p><h4>A more decentralized governance system and flexible oracle design</h4><p>Lastly, a more granular governance system has been implemented that favors decentralization and ensures a single-responsibility separation of roles. Alongside that, Opium V2 now supports an even more flexible oracle design since, as of the new release, it does not enforce the synthetic oracles to comply with a specific interface.</p><h3>About Opium</h3><p>Opium Protocol is a universal and robust DeFi protocol that allows for creating, settling, and trading decentralised analogues of derivatives.</p><p><a href="https://docs.opium.network/"><strong>Explore Opium Protocol</strong></a><strong> or </strong><a href="https://opium.finance/"><strong>try out Opium Finance</strong></a></p><p>Stay informed and follow<strong> </strong><a href="https://twitter.com/Opium_Network"><strong>Opium.Team on Twitter</strong></a><strong>.</strong></p><p><strong><em>Did you know that you can subscribe to our </em></strong><a href="https://t.me/OpiumFinance"><strong><em>News Channel</em></strong></a><strong><em> to get more exciting news delivered to your morning coffee?</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f0cfbad1812" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opium-network/opium-v2-your-out-of-the-box-derivative-protocol-1f0cfbad1812">Opium V2: your out-of-the-box derivative protocol</a> was originally published in <a href="https://medium.com/opium-network">Opium</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a call option on Opium]]></title>
            <link>https://medium.com/opium-network/build-a-call-option-on-opium-432c055fcbfa?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/432c055fcbfa</guid>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[options]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 15:21:53 GMT</pubDate>
            <atom:updated>2021-10-03T14:53:18.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KTEeCLTVRoy8xvdifAtNaQ.png" /></figure><blockquote>The Opium protocol is a universal protocol to create, settle and trade virtually all derivatives and financial instruments in a professional and trustless way. It allows anyone to build custom exchange-traded products on top of the EVM-Compatible blockchains. Once created, they can be traded freely via a network of relayers and will be priced according to supply and demand.</blockquote><p>In our tutorial we will walk through the logic of a basic call option on ETH as an underlying.</p><p>If you are not familiar with the concept of call option, <a href="https://www.investopedia.com/terms/c/calloption.asp">have a look at this introductory article</a>.</p><p>You can find all the code in this tutorial on <a href="https://github.com/RiccardoBiosas/opium-call-option-example">github</a>. As our repository uses the<a href="https://hardhat.org/hardhat-network/guides/mainnet-forking.html"> hardhat’s forking feature</a> to run our tests against the Opium Protocol’s Ethereum Mainnet contracts, we will need an Infura project ID — or any other node service provider of your choice, you name it. Set your Infura project id and mnemonic in a .env file with INFURA_API_KEY and MNEMONIC as the respective environment variables.</p><p>Next, let’s clone the repository and try to run the tests.</p><pre>git clone <a href="/service/mailto:git@github.com">git@github.com</a>:RiccardoBiosas/opium-call-option-example.git<br>cd opium-call-option-example<br>yarn install<br>yarn test</pre><p>Assuming everything has been set up correctly, all unit tests should pass with a green check mark. Congrats!</p><h3><strong>Code </strong>walk-through</h3><p>At the core of each financial product built on top of the Opium Protocol there are two main components: the derivative recipe and the oracle recipe. The former is responsible for encoding the financial specifications of the product, whereas the latter is responsible for defining the data source that should be used to settle the product at expiry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YT6Un3vVNoWsO_bXBDiTyg.png" /></figure><p>The structure of these two components need to adhere respectively to the <a href="https://github.com/OpiumProtocol/opium-contracts/blob/master/contracts/Interface/IDerivativeLogic.sol">IDerivativeLogic</a> and <a href="https://github.com/OpiumProtocol/opium-contracts/blob/master/contracts/Interface/IOracleId.sol">IOracleId</a> interfaces. In our example repository the contract implementing the IDerivativeLogic interface is OptionCallSyntheticIdMock and the contract implementing the IOracleId interface is the AdminOracleController.</p><p>However, the OptionController contract is where all the interactions with the Opium Protocol’s Core contract reside. The Opium Protocol’s Core contract is responsible for most of the financial logic processed by the Opium Protocol.</p><p>Before moving forward, bear in mind that all the code showcased here was written to illustrate the life-cycle of a basic option product on the Opium Protocol, so it goes without saying that it’s not meant to be run in a production environment!</p><p>Having said that, let’s start breaking down the OptionController chunk by chunk!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/84e4cd5617b94b1227c086284d65a669/href">https://medium.com/media/84e4cd5617b94b1227c086284d65a669/href</a></iframe><p>The OptionController inherits LibDerivative, a contract which defines the blueprint of a Derivative and getDerivativeHash — a function to return the footprint of an Opium’s financial product based on the hash of its packed parameters.</p><p>In the constructor, we pass the address of the Opium’s Registry contract. The Registry contract allows us to fetch and then store the addresses of all the Opium contracts that we need to implement our basic call option’s workflow. We’ve already introduced the Core contract, the other two contracts are the SyntheticAggregator and the TokenSpender. The SyntheticAggregator contract is responsible for caching and initializing a given financial product’s data, whereas the main responsibility of the TokenSpender contract is to manage the transfer of ERC20 tokens (i.e: at the moment of a derivative’s creation where an ERC20 token represents the product’s collateral or when a derivative is being settled and therefore the payout is being forwarded to the rightful party).</p><p>Then we set up our own derivative by calling the setDerivative function, which takes as an argument a LibDerivative.Derivative and stores it on the contract’s scope. Note that normally we wouldn’t need to do that, and that obviously in our example the owner could override the derivative variable in the middle of its life-cycle — but again, for the sake of breaking everything down step by step we will not concern ourselves with any practical design consideration.</p><p>Now that we’ve got our derivative, we are ready to mint its positions.</p><p>We call the create function. The OptionController’s create function is a wrapper around the Core’s create function. As an argument, it takes the _amount of derivatives (LONG/SHORT positions) that will be minted and the addresses of the buyer and the seller. Do note that in financial literature the buyer is associated with a LONG position and the seller is associated with a SHORT position.</p><p>The LONG/SHORT positions being minted are based upon the derivative that we have previously defined with the setDerivative function. In order for our create function call to be successful, the Core contract must be provided with the the appropriate margin. The required margin of our derivative is computed by the _computeMarginRequirement helper function, which adds up the long position’s and short position’s margins and multiplies them by the requested quantities.</p><p>And that’s it! We just minted our first positions.</p><p>Let’s now have a look at the callOptionWithDAICollateral tests.</p><p><a href="https://github.com/RiccardoBiosas/opium-call-option-example/blob/main/test/callOptionWithDAICollateral.ts">opium-call-option-example/callOptionWithDAICollateral.ts at main · RiccardoBiosas/opium-call-option-example</a></p><p>First things first, here’s the derivative recipe of our ETH call option:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da8bd2b9dece1f8683e81687a3561a50/href">https://medium.com/media/da8bd2b9dece1f8683e81687a3561a50/href</a></iframe><p>Here we specify the required margin, the maturity, the strike price, the address of the OracleId — our oracle recipe, the address of the token used as a margin and the address of the SyntheticId — our financial recipe.</p><p>In the tests workflow, the optionSeller account locks 400 DAI (derivative recipe’s margin * amount) in the Opium Protocol and receives an equal amount of LONG/SHORT ERC721O tokens. The seller is said to be market neutral until she exchanges her LONG positions with a buyer for 20 DAI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bi65yNrpKYXgQSuWYh6HEw.png" /></figure><p>Subsequently, now the seller holds only SHORT ERC721O tokens and the buyer holds only LONG ERC721O tokens.</p><p>The Opium Protocol supports European options. This means that any option created on top of the protocol can only be settled at expiry. As the expiry of our derivative is hardcoded to be 40 minutes in the future since its creation, in our tests we time-travel after the expiry so that our seller and buyer can exercise their positions.</p><p>Once again, for the sake of clarity we split the logic pertinent to the execution of the LONG/SHORT positions into two separate functions in the OptionController contract: respectively executeShort and executeLong.</p><p>Both functions are a wrapper around core.execute and they take the amount of positions to be exercised as an argument. Within their body, they calculate the hash of our derivative via LibDerivative.getDerivativeHash . Subsequently, they calculate the appropriate token id. For that purpose, we are using the LibPosition library which we attached to the bytes32 type. And now that we have computed on-chain all the necessary parameters, we can finally call core.execute !</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f40dfa4d032b62c851411fdceee27cb0/href">https://medium.com/media/f40dfa4d032b62c851411fdceee27cb0/href</a></iframe><p>Back to our callOptionWithDAICollateral tests, note that since both the seller and buyer accounts are interacting with the OpiumOptionController rather than directly interacting with the Opium Core contract, we need to enable the ‘third-party’ execution of the derivative by calling allowThirdParty. More generally, whenever the msg.sender is different from the EOA that holds a position, then calling allowThirdParty is necessary.</p><p>For a derivative to be settled, the data necessary to determine its outcome must be available (i.e: the current market price of the underlying against the strike price). In the Opium Protocol, the source of that data is the OracleAggregator. Normally — and ideally- the OracleAggregator would receive the required data from an on-chain oracle — such as Chainlink, UMA etc.-, but as the OracleAggregator was designed to be implementation-agnostic, in our example workflow we make use of AdminOracleController contract which receives off-chain data from its owner and then pushes it to the OracleAggregator. In our unit test we push a market price that is lower than the strike price, resulting in a favorable outcome for the seller of our ETH call option. The specifics of the payout of an Opium’s option are fully customizable and are defined in the getExecutionPayout of the <a href="https://github.com/RiccardoBiosas/opium-call-option-example/blob/main/contracts/test/OracleIdMock.sol#L52">contract implementing IDerivativeLogic</a>.</p><p>In the case of our ETH call option, the seller received back the initial margin allocated to mint the LONG/SHORT positions. As the seller sold her LONG positions for 20 DAI, her profit amounts to 20 DAI. On the other hand, our buyer bought his LONG positions for 20 DAI, which corresponds to his net losses.</p><p>Vice versa, if the call option had expired in the money, the buyer’s payout would have amounted to the intrinsic value of the option unless the difference between the underlying’s market price and the strike price is greater than the allocated margin — in which case the buyer’s payout would be the entire option’s margin. As a result, the seller’s net loss would be 380DAI (margin * amount — paymentFromBuyer ) and the buyer would scoop up 380DAI as a profit!</p><p>Congrats, you built your first basic option call on top of the Opium Protocol!</p><p>Now that you got your feet wet, get in touch with the Opium community on the<a href="https://forum.opium.network/"> governance forum</a>, the Opium DAO is eager to give grants to DeFi builders with interesting use-cases!</p><h3>About Opium</h3><p>Opium Protocol is a universal and robust DeFi protocol that allows for creating, settling, and trading decentralized derivatives.</p><p><a href="https://docs.opium.network/"><strong>Explore Opium Protocol</strong></a><strong> or </strong><a href="https://opium.finance/"><strong>try out Opium Finance</strong></a><strong>.</strong></p><p><strong>Stay informed and follow </strong><a href="https://twitter.com/Opium_Network"><strong>Opium.Team on Twitter</strong></a><strong>.</strong></p><p><strong>Did you know that you can subscribe to our </strong><a href="https://t.me/OpiumFinance"><strong>News Channel</strong></a><strong> to get more exciting news delivered to your morning coffee?</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=432c055fcbfa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opium-network/build-a-call-option-on-opium-432c055fcbfa">Build a call option on Opium</a> was originally published in <a href="https://medium.com/opium-network">Opium</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Opium Protocol is on Polygon (ex-Matic)]]></title>
            <link>https://medium.com/opium-network/opium-protocol-is-on-polygon-ex-matic-21486f34c618?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/21486f34c618</guid>
            <category><![CDATA[sidechains]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[defi]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[polygon]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Tue, 27 Apr 2021 18:05:17 GMT</pubDate>
            <atom:updated>2021-04-27T18:05:17.079Z</atom:updated>
            <content:encoded><![CDATA[<h4>Solving blockchain trilemma</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUdMio7HXdFKZB4XP1te7A.png" /></figure><h3>Blockchain trilemma</h3><p>There’s much talk about decentralization, but in our opinion, the emphasis is often misplaced towards its technical side which tends to neglect the social side of the issue.</p><p>One of the acclaimed virtues of decentralized systems is that they achieve a democratizing effect through technological means.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i2ArMk6vRZrj-JKXREpiug.jpeg" /></figure><p>The internet democratized access to information. DeFi has the potential to democratize access to finance. Once the domain of a few institutional players, now it’s open to retail investors. But if we are truly to succeed in such an endeavor, prohibitively high fees are an obstacle that ought to be overcome.</p><p>Computer science, however, is the art of trade-offs. There’s no such a thing as a free lunch, neither in finance nor in technology, which usually means that an improvement of a system component comes at the expense of another part of the same system.</p><p>Blockchain is no exception, as suggested by the blockchain trilemma — an assumption whereby the three main properties of a peer-to-peer system (security, decentralization and scalability) cannot be all improved at the same time.</p><p>Cryptoeconomics follows the same principle, which usually implies that blockchains with low fees tend to be more centralized than blockchains where fees are more significant. Thus, fees not only help guarantee decentralization and security from a technical perspective, but also bring centralization from a socioeconomic perspective. High transaction costs mean that fewer users can afford to make on-chain transactions and that they would pay only for high-value transactions. Does it imply that complex financial products will remain unaffordable for the masses?</p><p>We think we know the answer.</p><p>The constraints we mentioned so far apply to on-chain transactions. However, off-chain transactions are a totally different case, hence… welcome Polygon (former Matic) and the world of layer-2 solutions!</p><h3>Scalability solutions</h3><p>Layer-2 solutions are an active area of research and, as it stands now, it’s not a winner-take-all scenario. Currently, the most popular solutions are ZK-rollups, Optimistic roll-ups and different implementations of the Plasma model. There’s a broader spectrum of solutions that ranges from state channels to more exotic EVM-compatible sidechains, but they’ve not gained as much traction.</p><p>While the space is increasingly bullish on ZK scaling solutions and Optimism looms on the horizon, at the moment all eyes are set on Polygon. Polygon is a scalability solution that managed to improve some of the bottlenecks of plasma solutions, such as exit time withdrawal.</p><p>Generally speaking, the Plasma scalability model enables child-chains that are related to their main chain — in our case, the Ethereum mainnet — through a two-way peg whereby the child chains periodically commit a checkpoint to the root-chain. As the child chains can benefit from the security assumptions of their respective main chain, they can relax their own security assumptions in order to optimize the transaction throughput. There have been many discussions regarding some of the drawbacks of the Plasma design, from potential attack vectors due to the centralization of the validators to its data availability constraints. However, Polygon addressed most of the aforementioned concerns with its own architectural choices.</p><h3>Aligned with the mission</h3><p>Here at Opium our mission is to democratize and simplify access to complex financial products. In order to succeed in our undertaking, reaching a critical mass in terms of adoption is of paramount importance. Scalability, interoperability and low fees are all facets of the same challenge: large-scale user adoption. As the final launch of Ethereum 2.0 is an ever-sliding deadline, we are then looking forward to further collaboration with Polygon.</p><p>The reasoning underlying the integration of Polygon into the Opium ecosystem is the same as the rationale which led us to integrate PNetwork and <a href="https://medium.com/opium-network/staking-opium-on-bsc-version-of-1inch-df172382cbe4">launch Opium on Binance Smart Chain</a>.</p><p>In fact, Polygon represents just the first, yet important, step of the Opium ecosystem’s layer-2 roadmap, as we plan to keep up with all the further developments in the space and both scalability and interoperability lie at the very core of our architectural and design choices.</p><p><a href="https://www.coindesk.com/matic-network-polygon-targets-ethereum-layer-2-woes">Matic Network Now &#39;Polygon&#39; as Platform Targets Ethereum&#39;s L2 Woes - CoinDesk</a></p><h3>Tutorial: How to find new products on Polygon (Matic)</h3><p>First, you need to switch the network to Polygon (Matic) on <a href="https://opium.finance/">Opium.Finance</a>. At the top of the screen, click on the Ethereum icon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIrg6Dd2X2Ge_LZ6lTngtA.png" /></figure><p>You will see the popup with other networks. Click on Polygon (Matic).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mGvyFqyoJa1rtY7Ref71gA.png" /></figure><p>After you may be asked to switch the network in your wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KAyeVlW7qdrqPy1qp8B0XA.png" /></figure><p>Now you are connected to Polygon (Matic) and can explore products there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ci4Jjppyy49nMzpKmidBmQ.png" /></figure><p>To access the Turbo products, click on the “TURBO” tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5YvzSK_RaYRUfpJiRBdiQ.png" /></figure><p>Congratulations! Now you are on the Turbo page.</p><p><strong>Please read the article about Turbos before using them:</strong></p><p><a href="https://medium.com/opium-network/introducing-opium-turbos-581a647654d7">Introducing Opium TURBOS</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7SCjDpRu_YvNGRhjpqyLkQ.png" /></figure><h3>Tutorial: How to transfer funds to Polygon (Matic)</h3><ol><li>The link to Matic Bridge V2–the page where you can transfer your assets from Ethereum to Polygon–is at the top of the screen when you are on the Polygon network. Click on the button and you will be redirected to the Polygon page.</li></ol><p><strong>Matic Bridge V2 </strong><a href="https://wallet.matic.network/"><strong>https://wallet.matic.network/</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7SCjDpRu_YvNGRhjpqyLkQ.png" /></figure><p>First, connect your wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPY87d-O7MYAhEbcymWj1w.png" /></figure><p>Sign the transaction to log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z75Eq1cnPR8mLMwh9ucaHw.png" /></figure><p>Now you are on the main page. Click on the “Move funds to Matic Mainnet” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fRxDBvLn7HpMvbhJL1K1-g.png" /></figure><p>In this widget, you can swap your tokens from Ethereum to Matic. Choose the token and amount you want to transfer. Click on the transfer button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e4ehTtlSOPCDaGyhYOBzGw.png" /></figure><p>Now confirm one transaction with a Final deposit.</p><p>Once the transaction is confirmed, it could take up to 10 minutes to receive the funds on Polygon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-NPGcLFrOQuWB_0CiWfqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*faTu98nTF3EWNL2vY14dHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*gOGlYRUmov3LAKrJvOhzbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*bTVoyCacQqL2Th4s5a7jaw.png" /></figure><h3>Stay tuned</h3><p>Opium Protocol is a universal and robust DeFi protocol that allows for creating, settling, and trading decentralized derivatives.</p><p><a href="https://docs.opium.network/"><strong>Explore Opium Protocol</strong></a><strong> or </strong><a href="https://opium.finance/"><strong>try out Opium Finance</strong></a><strong>.</strong></p><p>Stay informed and follow<strong> </strong><a href="https://twitter.com/Opium_Network"><strong>Opium.Team on Twitter</strong></a><strong>.</strong></p><p><strong><em>Did you know that you can subscribe to our </em></strong><a href="https://t.me/OpiumFinance"><strong><em>News Channel</em></strong></a><strong><em> to get more exciting news delivered to your morning coffee?</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21486f34c618" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opium-network/opium-protocol-is-on-polygon-ex-matic-21486f34c618">Opium Protocol is on Polygon (ex-Matic)</a> was originally published in <a href="https://medium.com/opium-network">Opium</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calling all developers: SDK for Opium Exchange available now!]]></title>
            <link>https://medium.com/opium-network/calling-all-developers-sdk-for-opium-exchange-available-now-281eed9ec19b?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/281eed9ec19b</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[defi]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 17:02:25 GMT</pubDate>
            <atom:updated>2020-10-08T17:02:25.643Z</atom:updated>
            <content:encoded><![CDATA[<p>Opium Protocol is excited to announce the release of the <strong>oex-js SDK v1.0</strong> — built on top of the <a href="https://trade.opium.exchange/">Opium Exchange</a> API. The SDK will make it easier for developers to build <strong>trading bots and custom trading frontends</strong> interacting with Opium Exchange. We’re committed to continuously improving the developer experience of building on top of Opium Protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8lsK3ptzMM_3nX26.png" /></figure><h3>Opium Network — open to anyone!</h3><p>At Opium we are building an important piece of financial infrastructure for the future of finance. Opium Protocol is designed to be <strong>universal and robust </strong>so that it can be used by independent developers and organizations as well. But blockchains today are challenging to build on — especially when it comes to DeFi use-cases since <strong>it requires knowledge on finance and mathematics</strong>.</p><p>By using pre-existing derivative logic and oracle integrations on Opium Protocol, anyone can design and launch a decentralized derivative in a few hours! This SDK release marks yet another milestone in our continuous commitment to making it as easy as possible for independent organizations and developers to build on top of our work.</p><h3>About the SDK</h3><p>The use-cases for our new SDK range from building <strong>trading bots</strong> and <strong>market-making bots</strong>, to easy integrations with <strong>custom trading frontends</strong>.</p><p>As market-making and LPs are currently all the rage in the Ethereum landscape today, we expect our SDK to contribute to enriching the Opium ecosystem and also the overall DeFi derivatives space.</p><h3>Our release includes</h3><ul><li><a href="https://github.com/OpiumProtocol/oex-js">JavaScript (TypeScript) SDK</a> which includes utilities to make building on top of the Opium Exchange infrastructure easier</li><li><a href="https://opiumprotocol.github.io/oex-js/">Documentation</a> Our SDK is written in Typescript from top to bottom, so do not hesitate to dig into the docs if you are in doubt whether you’re passing the correct type as an argument for some API request.</li><li><a href="https://opiumprotocol.github.io/oex-api/">HTTP API</a> for authentication, interacting with the order book and system configuration</li><li><a href="https://opiumprotocol.github.io/oex-api/socket.html">Socket.io API</a> for receiving real-time data on the orders, trades, and assets listed on Opium Exchange</li></ul><h3>Example code</h3><p>Installing the SDK is as easy as installing your usual npm module:</p><blockquote><em>npm i @opiumteam/oex-js</em></blockquote><p>Have a look at the example code below to understand how it works.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43b6446c24e8dead5bd9d42c07b8851/href">https://medium.com/media/c43b6446c24e8dead5bd9d42c07b8851/href</a></iframe><h3>Call to action: Start building!</h3><p>In order for Opium Network to become a community-driven and community-governed ecosystem, <strong>we need builders</strong> to create bots, tools &amp; derivatives using our universal and robust protocol.</p><p>Use our developer tooling such as the <strong>Opium Exchange SDK and API</strong> (links can be found earlier in the article), <a href="https://medium.com/opium-network/swap-rate-sdk-api-are-available-now-c4e3169b733"><strong>swap.rate SDK and API</strong></a>, and <a href="https://docs.opium.network/">our <strong>developer documentation</strong></a>.</p><p>Also make sure to <strong>join the #developers channel </strong><a href="https://discord.gg/9cYkPEm"><strong>in our Discord server</strong></a><strong> </strong>for tech support — we’re online most of the time and are eager to help you get started!</p><h3>About Opium</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v6Ugz5B3ddx7xJ1G.png" /></figure><p>Opium is a universal and robust DeFi protocol that allows for creating, settling, and trading decentralised derivatives. Use our products today to speculate on opportunities inside and outside of DeFi, or hedge yourself against trading risks.</p><p><a href="https://docs.opium.network/"><strong>Explore Opium Protocol</strong></a><strong> or </strong><a href="https://trade.opium.exchange/"><strong>try out Opium Exchange</strong></a><strong>.</strong></p><p><strong>Stay informed through </strong><a href="https://twitter.com/Opium_Network"><strong>following us on Twitter</strong></a><strong>, joining </strong><a href="https://t.me/opium_network"><strong>our Telegram chat</strong></a><strong> and </strong><a href="https://t.me/OpiumFinance"><strong>announcements channel</strong></a><strong>.</strong></p><p><a href="https://discord.gg/9cYkPEm"><strong>Join the discussion on our Discord server!</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=281eed9ec19b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/opium-network/calling-all-developers-sdk-for-opium-exchange-available-now-281eed9ec19b">Calling all developers: SDK for Opium Exchange available now!</a> was originally published in <a href="https://medium.com/opium-network">Opium</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchains and the evolution of regulations]]></title>
            <link>https://medium.com/brikkapp/blockchains-and-the-evolution-of-regulations-eaddb31d97c?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaddb31d97c</guid>
            <category><![CDATA[hyperledger]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[regulation]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[zero-knowledge-proofs]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Fri, 01 Nov 2019 14:38:42 GMT</pubDate>
            <atom:updated>2019-11-11T14:31:59.068Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>As a technology that aims to reshape the structure of financial interactions across many legacy industries, blockchain is naturally poised to both impact and be impacted by existing regulatory frameworks.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vbbxhxufzs5zS0SpgSKqw.png" /></figure><p>Unlike the other technological innovations from the past, however, its connection with regulations is much more nuanced and complex. Blockchain technology is, in fact, not only in an antithetical relationship with some specific regulatory systems, but it’s also, at the same time, a potential tool for the regulator and the corporate subjects of the regulations to keep track of the compliance process in a distributed tamper-proof ledger of records. The so called <strong>reg-tech</strong> (regulatory technology) market has been steadily growing in the last years as the asymmetry between the increasing difficulty of transnational regulations, the potential fines associated to them and the inefficiency of the current regulatory-compliance tools keeps getting wider. To be compliant with regulations is a huge financial burden for most companies and cost cutting in this exposes them to risk of fines from regulators. Blockchains can not only provide immutable auditable records, but also streamline a more decentralised corporate governance process that would prevent those in the corporate upper echelons from committing fraud.</p><blockquote>Over the course of our current article, we’ll review the <strong>current blockchain landscape</strong> and its place within our <strong>current legislative system</strong> and what type of l<strong>egal challenges</strong> the blockchain ecosystem will have to overcome.</blockquote><p>In order for blockchains to be adopted in institutional settings, they face the dilemma of having to <strong>comply</strong> with two apparently <strong>contradictory sets of regulations</strong>.</p><h3><strong>The regulatory paradox</strong></h3><p>On the one hand, regulations such as <strong>KYC</strong> -know your customer- and <strong>AML</strong> — anti-money laundering- mandate digital systems to establish their users’ identities, which therefore entails the process of storing large amount of personal data for identification purposes. However, on the other hand, recently crafted regulatory frameworks such as <strong>GDPR</strong> require the same digital systems to make any personal data available to its owner and, more importantly, to be also able to amend and erase sensitive information if its respective user demands it.</p><p>The last requirement falls under article 17 of GDPR and it’s commonly referred to as the “<strong>right to be forgotten</strong>”. The compliance with such a requirement is proving to be especially tricky for blockchains, whose reputation and one of the main strengths lie in their tamper-proof immutability, whereas traditional CRUD databases can easily implement GDPR-compliant standards. However, simply pulling the plug on blockchain technology adoption and completely switching back to NoSQL and relational databases would be to betray the principles that were meant to inspire GDPR. In the era of big-tech where data is often branded as “the new oil”, users’ personal information is often at the epicenter of both tech-corporations’ predatory data-mining practice and also cyber-criminals that are after that same data. Especially in the last decade, <strong>cyber-crime</strong> organizations have become increasingly sophisticated and we’ve witnessed a rise in the frequency of <strong>data theft and data breaches </strong>— some of the readers might remember the many cyber-attacks that have been waged against the both healthcare and financial systems in the last few years, which have caused countless of personal data to be exposed to malicious third parties. Perhaps the most catastrophic of them has been the Equifax data breach, the monumental consumer credit reporting agency, where more than one hundred million people’s personal data was compromised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*OQT5XZ2JLKW1H8d4Xn4Ifg.jpeg" /></figure><h3>GDPR and the rise of privacy-aware blockchain solutions</h3><p>GDPR is meant to be the European response to <strong>restore data sovereignty</strong> and safeguard <strong>users’ privacy</strong>. Some legal experts have suggested that GDPR might be fundamentally incompatible with most of blockchain-related innovation — but also with AI and big data-related tech-. Nevertheless, the ethos guiding more privacy-aware regulations is well-intentioned insofar as there’s currently a technological and legislative gap when it comes to data protection and the GDPR is an effort towards the right goal. In fact, from a technological perspective, blockchain can also be regarded as a solution to data protection, but improvements are still needed from a privacy standpoint and GDPR has helped to highlight some of its current design flaws. In the light of these facts, going back to CRUD databases would expose the end-user to the same attack surface that has led to data loss and the numerous catastrophic data breaches that have taken place in the last years, where a server-side compromise of the databases is usually the most common vector of the hack.</p><p>We’ve previously mentioned the Equifax and the UK NHS as a case-study of data breaches. A growing number of governments and private entities are exploring blockchain-based solutions to make their financial sector more resilient towards data breaches. Some of these solutions leverage the combination of blockchain, off-chain layers and cryptographic techniques such as secure multiparty computation to both overcome the current scalability shortcomings of blockchain systems and to still make a meaningful use of personal data without violating the privacy of its users.</p><p>In Estonia, a blockchain technology has been implemented to the health-care system in order to safely manage time-stamped records of patients’ data and more solutions are being explored in the digital identity sector.</p><p>Deploying a blockchain solution for the management of healthcare and financial records can improve the data availability and resiliency towards a large attack surface that ranges from ransomwares to DDoS attacks. As a data provider would become a node on a blockchain network, a network or hardware failure wouldn’t entail data loss or even a downtime in the data availability due to the higher tolerance of blockchain’s decentralized architecture. For a similar reason, it would also make DDoS attacks an ineffective attack vector as targeting a specific node on the network wouldn’t affect the overall availability and integrity of the data. And as the second-layer solutions will improve, the management of the data on a node could be reduced to just securing the cryptographic properties of the system in order to access the actual patients’ records on the network without forcing the user to either give up control of his data or overly disclosing personal information to third-parties.</p><h3><strong>Blockchains: a leap forward in security and a step back in privacy?</strong></h3><blockquote>The regulatory and privacy conundrum has made the divide between <strong>public</strong> and <strong>private blockchains</strong> even wider. Currently, <strong>private</strong> and <strong>consortium</strong> blockchains are ahead of the game, as they’ve been designed to be as institutionally-friendly and regulatory-compliant as possible at the expense of a fully decentralized approach.</blockquote><p>In particular, the Hyperledger projects — and specifically Hyperledger fabric- have been making relevant progress when it comes to GDPR-compliance and privacy. Hyperledger fabric’s architecture implements a granular control of data accessibility both at the chaincode-level and network-level (through channels). In fact, until recently, the only way to enforce confidentiality was by creating new channels where only the authorized transacting parties would have access to some specific data. As a network grows, however, the overhead that is associated with the creation of a new channel -which includes managing new policies, refactoring the membership service provider and possibly the chaincodes- would make such an approach rather inefficient. As a solution to such a problem, <strong>private data collections</strong> have been introduced.</p><p><strong>Private data collections in hyperledger</strong></p><p>A private data collection is a collection of data whose <strong>hash</strong> is stored on the <strong>blockchain ledger</strong>, whereas the data itself is stored either on some form off-chain storage or sideDB (side-databases). The private data itself will then only be accessible to the authorized parties and will be distributed via a peer-to-peer protocol. At the same time, the hash of that data will be stored on the public ledger and will be accessible to everyone so that it represents an evidence of the transaction. Such an approach allows to granularly differentiate between sensitive data and data that can be public, without giving up on a peer-to-peer and partially decentralized architecture and overly increasing the network overhead.</p><p><strong>Public blockchains and regulatory compliance</strong></p><p>As for <strong>public blockchains</strong>, it’s reasonable to assume that the current state of most of the projects is most likely <strong>not GDPR-compliant</strong>. However, the extent to which it’s not GDPR-compliant is still unclear, as there are many grey areas that need to be clarified by the related jurisprudence.</p><p>One of the most contentious points is whether the <strong>hashed data</strong> still qualifies as personal data under the GDPR. Blockchains are based on asymmetric encryption, whereby a public key is freely shared with third-parties which will then use it to encrypt messages in a secure way. Subsequently, the owner of the public key will use the respective private key to decrypt the aforementioned messages. On blockchains such as bitcoin and ethereum, a user’s address and identity on the ledger is represented by a hash of their public key. The networks that follow this approach are defined as <strong>pseudonymous</strong>. Their transactions history is fully transparent and each party on the network is linked to a public key which can eventually be traced back to an IP address and the person associated with that IP address.</p><p>According to GDPR, all the data that can make a <strong>person identifiable</strong> <strong>on a network</strong> through the deployment of means that are likely to be used still falls under the notion of personal data. As blockchain analytical tools become more efficient and widely used, this could eventually expose many blockchain platforms to legal liabilities.</p><p>On the other end of the spectrum, there are public blockchains that follow a privacy-by-design approach. In the case of <strong>Monero</strong>, for instance, a cryptographic technique called ring signatures is implemented to mix together groups of transactions in such a way that a specific transaction cannot then be traced back to a specific public key. This approach is likely to be GDPR-compliant insofar as public keys don’t make a subject identifiable on the network, but at the same time makes the process of meeting the requirements of KYC and AML regulations extremely challenging.</p><h3>So are public blockchains bound to fall short of overcoming the regulatory paradox?</h3><p><strong>Zero-knowledge proofs</strong></p><p>A growing amount of interest has been generated by zero-knowledge proofs as they promise to enhance on-chain privacy in a regulatory-compliant fashion. <strong>Zero-knowledge proofs</strong> are an advanced, and still mostly experimental, cryptographic technique where one party can uncontroversially prove the truthfulness of a statement without providing any additional information to back up their knowledge regarding that statement. They could be used to mathematically prove that a party satisfies the requirements mandated by KYC and AML regulations without disclosing any personal data that would expose the transaction to GDPR liabilities.</p><p>A working implementation of a zero-knowledge proof-based architecture has been achieved by the Zcash blockchain. As more proof-of-concepts of this cryptographic technique transition from the ivory tower of academia to real world use-cases, we can expect them to be more widely adopted in the public blockchain ecosystem.</p><blockquote>In our current article, we placed the emphasis on the regulatory frameworks that concern data protection in the digital world. As in <a href="https://www.brikkapp.com/">BrikkApp</a> we’re building a hyperledger-powered real estate investments marketplace, the focus of our<strong> next chapter</strong> in the “<strong>Blockchain and Regulations</strong>” series will be on the specific regulatory challenges at the intersection of blockchain, the real estate market and online investments and how we’re addressing them. Lastly, we’ll delve into how regulations are evolving to keep up with the innovative fundraising, asset tokenization and crowdfunding enabled by blockchain technology. As we’re also starting another article series on consensus protocols in the blockchain ecosystem, follow our <a href="https://medium.com/@brikkapp">BrikkApp medium</a> account to be kept up-to-date!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaddb31d97c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brikkapp/blockchains-and-the-evolution-of-regulations-eaddb31d97c">Blockchains and the evolution of regulations</a> was originally published in <a href="https://medium.com/brikkapp">BrikkApp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A comparative analysis of Ethereum and Hyperledger: the road to mainstream adoption]]></title>
            <link>https://medium.com/brikkapp/a-comparative-analysis-of-ethereum-and-hyperledger-the-road-to-mainstream-adoption-dd4cd772c195?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd4cd772c195</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[hyperledger]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crowdfunding]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Mon, 19 Aug 2019 08:18:49 GMT</pubDate>
            <atom:updated>2019-09-11T09:59:11.478Z</atom:updated>
            <content:encoded><![CDATA[<p>In our <a href="https://medium.com/brikkapp/an-introduction-to-the-blockchain-ecosystem-and-its-taxonomy-f00bc2426608">introduction to the technicalities of the blockchain ecosystem</a>, we pointed at two main types of implementation: public and private. On top of that, we also mentioned the concept of turing-completeness and how it’s related to the capability of the supported smart contracts to perform complex logics, from financial functions to automated adjudication processes.</p><p>The two main representatives to the categories of turing-complete public blockchains and turing-complete private and consortium blockchains that have stirred the most interest are ethereum and the hyperledger project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmVWkn_T0JnHueCYUSFzKQ.png" /></figure><h3><strong>Ethereum</strong></h3><p>Ethereum was first devised in the late 2013, and it was the first public blockchain to generalize its core protocol beyond the scope of cryptocurrency issuance. Unlike bitcoin, ethereum’s built-in currency, ether, is not primarily designed to be a digital currency for a new worldwide payment system, but as an internal commodity that fuels its DApp ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/147/1*cgy1XnA9iD4ZL5jUx3KELg.png" /><figcaption><a href="https://commons.wikimedia.org/wiki/File:Ethereum_logo_2014.svg">source</a></figcaption></figure><p>DApps are decentralized applications, and in ethereum every DApp transaction is paid in ether. The main rationale behind this choice lies in the public nature of its network. Ethereum is pseudonymous and open to everyone, which exposes it to a huge attack surface. An anonymous malicious actor could clog the ethereum blockchain by sending numerous requests to the DApps on top of it or to do some other form of computation. Such a spam threat is prevented by making it so every computation that is performed on the network costs money. This would eventually result in our attacker desisting from broadcasting spam transactions because it would become too expensive on the long term.</p><p>As clever as this architectural choice is, this has not averted non-malicious network congestions in many instances due to ethereum’s currently limited transaction throughput. This bottleneck is forecasted to be addressed in the future, when new scalability solutions (both on-chain and through side-chains) will be implemented. <a href="https://github.com/ethereum/wiki/wiki/Sharding-FAQ">Sharding</a>, <a href="https://en.bitcoinwiki.org/wiki/Plasma">plasma</a> and other <a href="https://en.wikipedia.org/wiki/Sidechain_(ledger)">sidechains</a> are some of the proposed scaling solutions that are currently under heavy development. They’re, however, not a panacea, since they might pose either security or centralization risks to ethereum, and they’re far from being a well-tested technology.</p><p>Scalability won’t be the only focus of ethereum’s future upgrades. The protocol underlying both its economic incentives model and consensus mechanism will soon be revolutionized as well.</p><p>Ethereum currently implements a flavor of proof-of-work, but it will eventually switch to proof-of-stake in the future in order to be more energy-efficient.</p><p>In general, in proof-of-work the pool of validators, also called miners, is required to perform complex computations in a race to be the first to solve a cryptographic puzzle. The reward for winning such a computational race is monetary and ensures that the validators are provided with an economic incentive to participate in the consensus mechanism, which safeguards the consistency of the network. Proof-of-work, however, has proven to be extremely wasteful in terms of energy consumption.</p><p>In proof-of-stake the validators, usually called forgers, are also rewarded, but, rather than solving computationally demanding puzzles, they stake part of their tokens as a requirement to participate in the consensus protocol. The likelihood to be the recipient of a monetary reward is roughly proportional to how much tokens have been deposited in the stake.</p><p>An in-depth review of all the various flavors of consensus mechanisms is beyond the scope of our current article. Follow <a href="https://medium.com/brikkapp">our account</a> to be notified when we’ll proceed delving further into the nitty-gritty of consensus protocols, cryptoeconomics and mechanism design.</p><h3><strong>Hyperledger projects</strong></h3><p>The hyperledger project originated when the concept of blockchain started gaining traction among private tech-corporations. It’s not a single blockchain, but an umbrella of projects hosted by the linux foundation in partnership with different companies, which provide modular blockchain architectures and tools tailored for the specific needs of enterprise use-cases. In fact, the hyperledger projects are divided in frameworks, which are the actual blockchain platforms, and tools, which are instruments that aim to streamline the development process of the chosen hyperledger framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUouCHIczlCgShSSkTxoxA.png" /><figcaption><a href="https://cn.hyperledger.org/wp-content/uploads/2019/02/Hyperledger-logo.png">source</a></figcaption></figure><p>In our current article we’ll give a general introduction to the features of the hyperledger project and how it differs from ethereum and other public blockchains. Among the various hyperledger frameworks, the most mature from a development viewpoint is hyperledger fabric, which is one of the reasons why it’s the platform of choice here at <a href="https://brikkapp.com/"><strong><em>BrikkApp</em></strong></a>.</p><p>In the future, we will endeavor in a much more in-depth analysis of fabric’s design and peculiarities and how it distinguishes itself from other hyperledger platforms such as sawtooth, indy and burrow.</p><p><strong>The hyperledger ecosystem</strong></p><p>Each hyperledger’s tool has a different purpose that varies from implementing different deployment models, facilitating the execution of smart contracts and benchmarking the performance of the network to adding new features such as interoperability with other blockchain frameworks.</p><p>The modularity ethos that characterizes the hyperledger project is extended even further: the hyperledger blockchain frameworks are usually partitioned into relatively independent components that can be replaced with alternative modules which serve the same purpose.</p><p><strong>Consensus protocols in hyperledger</strong></p><p>The chosen framework’s consensus protocol is one of the main customizable components. Each enterprise grade blockchain use-case comes with different trust relationships between its specific participants: the pluggable consensus approach is designed exactly to address the nuances of the spectrum of trust in the most tailored way possible. It’s therefore possible to implement both consensus protocols that are similar in nature to public-blockchains, also called pBFT — practical byzantine fault tolerance-, or quasi-centralized.</p><p>Practical byzantine fault-tolerance is designed to survive byzantine failures, but it doesn’t require economic incentives since all the identities of the network’s actors are known.</p><p>Byzantine failures are a particular class of failures in a distributed system, where a single node is an unreliable source of truth on the state of the network and may act in the pursuit of its own self-interest at the expense of the overall network’s consistency. On the other end of the spectrum of failure modes, we have non-malicious failures, where a failure is not caused by the intentional behavior of a node, but due to causes such as hardware crashes and network latency.</p><p>Quasi-centralized consensus is less secure and it’s mostly resilient against non-malicious failures. It is, however, much more efficient and provides better performance. In a quasi-centralized consensus a single entity, or a very restricted pool of actors, is responsible for ordering and broadcasting transactions whose validity is cryptographically checked by other nodes in the network — also called endorsers.</p><p><strong>Channels in the network</strong></p><p>Furthermore, the defined consensus protocol is not as overarching as in ethereum: hyperledger’s networks are further segmented into channels. A channel can be regarded as a partition of the network which is governed by a different rule-set defined by two other fundamental customizable components: the identity service and the policy service. The identity service not only defines the roles played by the various actors in the networks — whether they are validators, endorsers or peers-, but also establishes the memberships to the specific sub-channels. On the other hand, the rule-set that characterizes the aforementioned channels is defined in the blockchain framework’s policy service. One of the use-cases of the identity service and policy service modules is, for instance, the enforcement of private transactions among a subset of network participants.</p><p>The combination between all the different flavor of blockchain frameworks and the vast array of tools empower developers to create customized tech-stacks able to meet the most specific requirements of enterprise solutions.</p><h3><strong>The key differences between the hyperledger projects and ethereum</strong></h3><p>Over the course of the last few years, the word blockchain has been indelibly linked with the idea of cryptocurrency by an often lazy press coverage.<strong> </strong>As much as it is true that cryptocurrency issuance is just one of the numerous applications of blockchain as underlying technology stack, in the case of public blockchains the two concepts are deeply intertwined. As we’ve concluded in the ethereum chapter, public blockchains need economic incentives to ensure the security of their networks. Especially in turing-complete public blockchains, attackers can spam the network with never-ending loop-based computational requests that would halt the flow of transactions. These attacks are a form of the more commonly known DoS — denial of service. Economic incentives aren’t meant solely to make DoS financially infeasible , but also to incentivize desired behaviors in the users of the network, such as, in the case of proof-of-work blockchains, participating in the block generation process as honest miners. So, in a public blockchain, a digital currency is not only its main value proposition, but a vital component of its network governance and security as well.</p><p>In private blockchains, the security concerns are such that cryptoeconomic incentives are not as fundamental, if not superfluous.</p><h4>On-chain assets</h4><p>Therefore, the first noteworthy difference from ethereum is that the hyperledger project has decoupled the notion of distributed ledger from the asset that is built on top of it. Such a currency-agnostic approach allows to perform transactions within the network with no fees and more freedom to model any type of asset on top of the network.</p><h4>Transaction confidentiality</h4><p>Furthermore, as we’ve mentioned previously, hyperledger’s transactions can be confidential, whereas ethereum’s global state, which keeps track of the mapping between all its network’s addresses and respective account balances, is ubiquitously public. While a fully transparent transactions history enables everyone to verify the consistency of its log history and makes possible a trustless financial ecosystem, it doesn’t always sit well with regulatory frameworks and the specific transactional needs of consortiums of corporations. Hyperledger’s capability to compartmentalize the transaction flow into channels with ad-hoc policies and restricted membership allows a more fine-grained control over the underlying consensus protocol and it’s one of the pivotal features that makes it compliant with regulations such as GDPR.</p><h4>Scalability</h4><p>The channelization of the transaction flow makes it so not all nodes need to achieve consensus on the order of a transaction at the same time, but at first only that specific transaction’s involved parties will be required to reach an agreement. This segmentation of a hyperledger framework’s is paired with a permissioned mode of participation to the consensus process where nodes play different roles in the transaction life cycle and maintenance of network consistency. The specificities with which nodes partake in the consensus protocol depend also on the selected hyperledger framework. For instance, in hyperledger fabric these roles are divided in orderers, endorsers and peers. Peers are the recipients of ordered sets of transactions, which they then commit to the network. Endorsers check the cryptographic signatures of a transaction to verify that is consistent with the state of the ledger. Finally, orderers ensure that the same logical order is broadcasted to the peers. Such a permissioned and modular approach benefits the overall scalability of the network, which is the upper bound of transactions that can be processed in a given time-frame. This is different from ethereum, where the roles played by the nodes that partake in the consensus protocol are identical, at the expense of its transaction throughput.</p><h4>Smart contracts and chaincode</h4><p>At the beginning of the article, we’ve stated that both ethereum and hyperledger frameworks are turing complete. In hyperledger, smart contracts are called chaincode and, unlike ethereum’s smart contracts, don’t require fees to be executed. Chaincodes are developed with existing programming languages, whereas in ethereum smart contracts are developed with newly designed domain-specific languages such as solidity and vyper. In the case of hyperledger fabric, the most well-supported language for the development of chaincode is golang. The execution of smart contracts in ethereum is always processed by the ethereum virtual machine, a stack-based runtime environment that executes all the programs broadcasted in the network. Notably, in the hyperledger ecosystem, the framework hyperledger burrow provides a permissioned version of the ethereum virtual machine as one of its main components, so that interoperability with ethereum’s smart contracts is made possible. As for the rest of the hyperledger projects, the instantiation and deployment of chaincode depend on the specific components of that framework’s architectures, and they can be streamlined with hyperledger tools such as hyperledger composer and hyperledger transact.</p><h3>Conclusion</h3><p>In summary, ethereum appears to be the dominant platform for general-purpose applications that are meant to be deployed and used in public pseudonymous networks and, at the moment, can tolerate a relatively low transaction throughput. In the struggle for enterprise adoption, however, hyperledger is the clear winner, thanks to the flexibility and high-performance provided by its modular design philosophy which can satisfy the most nuanced application-specific requirements.</p><p>Nevertheless, what we can most likely expect from the future is that the distributed ledger landscape won’t be dominated by a single hegemonic platform, but it will be a rich and diversified ecosystem of different coexisting technology stacks. In this ecosystem, both hyperledger and ethereum are poised to be key players for distinct use-cases.</p><blockquote>One of those use-cases will be innovating and <a href="https://medium.com/brikkapp/blockchain-and-the-democratization-of-real-estate-investing-7c5822b6d644">democratizing the real estate market</a>. At <a href="https://brikkapp.com/">BrikkApp</a> we’ve decided to leverage the hyperledger technology to boost the transparency of the property investment market and tokenize real estate assets. Follow <a href="https://medium.com/@brikkapp">our medium account</a> to be kept up-to-date on our future platform developments and to read more technical insights on the blockchain ecosystem.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd4cd772c195" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brikkapp/a-comparative-analysis-of-ethereum-and-hyperledger-the-road-to-mainstream-adoption-dd4cd772c195">A comparative analysis of Ethereum and Hyperledger: the road to mainstream adoption</a> was originally published in <a href="https://medium.com/brikkapp">BrikkApp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An introduction to the blockchain ecosystem and its taxonomy]]></title>
            <link>https://medium.com/brikkapp/an-introduction-to-the-blockchain-ecosystem-and-its-taxonomy-f00bc2426608?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f00bc2426608</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[private-blockchain]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Fri, 02 Aug 2019 12:50:49 GMT</pubDate>
            <atom:updated>2019-08-02T13:01:49.911Z</atom:updated>
            <content:encoded><![CDATA[<p>The term blockchain doesn’t refer to a single entity, but to an umbrella of heterogeneous technologies that share some core characteristics.</p><p>In fact, blockchains are themselves a subclass of the larger distributed system category defined as distributed ledger technology.</p><p>The bare-bones anatomy of a blockchain is, essentially, a data structure known as linked list, but with few crucial tweaks that ensure immutability and decentralization.</p><p>A linked list is a linear collection of elements where each element points to the next. The linkage between its elements is achieved through a data type named pointer, which is a reference to the memory location of an object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*F2hTSKI6RAJNWzRrhG6OoA.png" /></figure><p><strong>What is a blockchain?</strong></p><p>A blockchain is a backward linked list whose elements can be viewed as blocks. Each one of its blocks references to its previous block through a hash pointer up to the genesis block, which is the first block in the collection of elements that constitutes the blockchain.</p><p>A hash is the output of a cryptographic hash function, which is a function that takes inputs of any size and returns a fixed-length output. Such a function has three pivotal properties: it is deterministic — the same input will always produce the same output-, it’s pre-image resistant — the returned output doesn’t reveal any information about the input- and, lastly, it’s collision-resistant — two different inputs are extremely unlikely to return the same output-.</p><p>An understanding of these cryptographic properties is not just a marginal technicality, but it’s of essence to have a solid grasp of how the ingenious blockchain design has the potential to revolutionize entire industries across the financial landscape in a world that is becoming more data-driven by the day.</p><p>It’s the concoction between the structure of a<strong> </strong>linked list and cryptography that conjures up one of blockchain’s fundamental properties: immutability.</p><p>Since each block’s hash is computed from its own data and each block’s data contains a hash of the data of the previous block, if a malicious actor were to try to alter the data contained in one of the blocks this would alter the entire chain of hashes. One of the hash function’s properties makes it so that even the smallest change in the function’s input will deterministically return a completely different output. In our example, the attacker, after altering the data inside of the target block and its current block hash, would have to subsequently re-calculate the hashes of all the successive elements from the target block onward. Since the process of generating a valid hash that meets the specific blockchain protocol’s criteria is highly computationally-expensive, recreating a consistent chain of blocks is prohibitive for even the most crafty attackers. The criteria that define the difficulty of computing a block hash strictly depend on the specific consensus protocol of a blockchain implementation and can vary quite widely: public blockchains, which are open networks of anonymous or pseudonymous actors, have more computationally-demanding criteria which, paired with economic incentives, make them designed to enforce immutability even against the most well-funded threat models. On the other hand, private and consortium blockchains, which are comprised of restricted networks with identifiable users, have less challenging block generation criteria, since they’re required to face a less menacing spectrum of threat models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B39AWjqzyMXDwyjZh4ZdcQ.png" /><figcaption><a href="https://commons.wikimedia.org/wiki/File:Blockchain_workflow.png">source</a></figcaption></figure><p>Despite their implementations’ differences, all blockchains are in essence the same data structure: a timestamped peer-to-peer cryptographic fingerprints-based backward linked list which is a ledger of records. Unlike traditional linked lists, where it’s possible to delete elements, a blockchain is an append-only data structure which makes it both tamper-proof and immutable.</p><p><strong>Blockchains and distributed ledgers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*8japqfn-WbWKUzRbtkFzHQ.png" /><figcaption><a href="https://commons.wikimedia.org/wiki/Category:Deterministic_acyclic_finite_state_automaton#/media/File:Trie-vs-minimal-acyclic-fa.svg">Alternative data structures: trie and DAG</a></figcaption></figure><p>The technical underpinnings of the data structure at the core of the blockchain are also what defines it as a very specific type of distributed ledger. Distributed ledgers share the same core characteristics as blockchain’s — immutability, censorship-resistance, full auditability and decentralized storage- but can differ significantly in their data structure implementations. Other data structures that are used to model implementations of different types of distributed ledgers include trees and graphs.</p><p><strong>Public, consortium and private blockchains: degrees of decentralization</strong></p><p>Within the blockchain ecosystem, one of the main benchmarks to distinguish between different types of blockchains and lay down a taxonomy is its degree of decentralization.</p><p>Their implementations can be subdivided in public and private and each one of these compartmentalizations can be either permissionless or permissioned. This allows to build architectures whose level of decentralization is not binary, but lies on a spectrum between distributed and fully decentralized.</p><p>The public and private notions refer to the openness of the network, while the concepts of permissionless and permissioned refer to the level of user-privilege. The modular mixture of these features, specifically public on the network-side and permissioned from a user-privilege perspective, defines the category of consortium blockchains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ElbjCW8Vuzgk6_y37h-19Q.png" /><figcaption><a href="https://commons.wikimedia.org/wiki/File:Blockchain-Process.png#file">source</a></figcaption></figure><p><strong>Public blockchains</strong></p><p>In public blockchains, which are mostly known for the cryptocurrency market, anyone can join, read the network and perform transactions. We’ve previously mentioned the hash function-based block generation process: such a process is commonly known as consensus protocol. Permissionless blockchains allow anyone who meet the criteria defined in the consensus protocol to join the pool of validators, which is the set of users who append new blocks of data to the blockchain and update its global state. Public permissionless blockchains are the most decentralized implementation and, as such and also due to their mostly anonymous nature, are exposed to the largest attack surface. In order to be resilient against it, their consensus protocol is paired with a sybil-prevention mechanism through a set of economic incentives to promote honest behaviour — the sybil attack is a malicious way of overtaking distributed networks by forging a large number of fake identities.</p><p><strong>Consortium blockchains</strong></p><p>This overhead in the consensus protocol makes public permissionless systems quite slow since it decreases its transaction throughput, which is the rate with which new blocks are appended to the chain. More generally, there’s a trade-off between decentralization and scalability.</p><p>However, not all public blockchains are permissionless: some of them only allow a pre-selected pool of participants to either partially or entirely control the consensus process. This increases the scalability of the blockchain framework at the expense of the decentralization of its network. These systems are defined as permissioned, and public permissioned blockchains are also called consortium blockchains.</p><p><strong>Private blockchains</strong></p><p>On the other end of the decentralization spectrum, we now have private blockchains. These too can be either permissionless or permissioned, albeit the latter is more common. Their networks cannot be joined without permission and, depending on the implementation, their state cannot be read by non-participants. Their architecture is more modular and designed with a more granular permission system than public blockchains. Also, at the expense of decentralization, they achieve greater scalability and privacy. All these features make it so that they’re more customizable to enterprise-specific requirements and regulatory frameworks.</p><p>In fact, as mentioned in our previous <a href="https://medium.com/brikkapp/blockchain-and-the-democratization-of-real-estate-investing-7c5822b6d644">article</a>, this approach has turned out so far to be the favorite for public institutions and corporations. In general, closed reputation systems where the identities of the participants are known necessitate a less strict incentive structure than anonymous networks. Nevertheless they still require cryptographic auditability of their data and check and balances among their competing parties, which is where private blockchains come into play.</p><p><strong>Blockchains as decentralized computers: turing-completeness</strong></p><p>The second distinctive feature to categorize blockchains is turing-completeness. As we will see, turing-completeness is also a fundamental property of the programming language that they support to develop applications on top of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*ytr7PapgUMFqfN5zTkIYkQ.png" /><figcaption><a href="https://commons.wikimedia.org/wiki/File:Smart_contracts_in_insurance_policies.png">An example of a smart contract applied to an insurance-policy use-case</a></figcaption></figure><p>If, on the one hand, a blockchain can be regarded as a tamper-proof record-keeping technology, on the other hand it’s also a world computer whose computations are run by many nodes across the globe. These computations are performed in a decentralized fashion through the scripting language supported by the specific blockchain implementation. Turing-completeness is, in a way, a measure of the computational capabilities and expressiveness of that given language. An expressive programming language is able to represent through its syntax constructs a wide compass of ideas and concepts. When a language is turing-complete, it supports iterative constructs — such as <em>for </em>loops- that further broaden the range of computations it can represent.</p><p>Turing-complete blockchains enable the development of smart contracts — programs that run on a distributed ledger- that are expressive enough to replicate complex financial functions, allowing the creation of a whole new economic ecosystem on top of them.</p><blockquote>Here at <a href="https://brikkapp.com/"><strong>BrikkApp</strong> </a>we’re working both on a web-based online property investment aggregator to bolster the transparency of the real estate market and empower investors to make more informed decisions, and on a planned blockchain integration to tokenise real estate property investments.</blockquote><p>In the next article we will delve more into public and private blockchains with a comparison between ethereum and the hyperledger project. Follow <a href="https://medium.com/@brikkapp">our medium account</a> to keep up to date with the next publications!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f00bc2426608" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brikkapp/an-introduction-to-the-blockchain-ecosystem-and-its-taxonomy-f00bc2426608">An introduction to the blockchain ecosystem and its taxonomy</a> was originally published in <a href="https://medium.com/brikkapp">BrikkApp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain and the democratization of real estate investing]]></title>
            <link>https://medium.com/brikkapp/blockchain-and-the-democratization-of-real-estate-investing-7c5822b6d644?source=rss-3e969916e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c5822b6d644</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[tokenization]]></category>
            <category><![CDATA[real-estate-investments]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Riccardo Biosas]]></dc:creator>
            <pubDate>Mon, 29 Jul 2019 14:51:44 GMT</pubDate>
            <atom:updated>2019-07-29T17:19:22.819Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the main indicators of the applicability of blockchain solutions to an industry is the presence of middlemen. In an almost directly proportional fashion, the more the number of middlemen, the more blockchain can positively impact the existing business models.</p><p>Commercial real estate is one of the key legacy sectors that is the most burdened with expensive middlemen, information asymmetry, bureaucratic hurdles and lack of auditable data and overall transparency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DKbd2WIZ1Qh5f8j9" /><figcaption>Photo by <a href="https://unsplash.com/@juvx?utm_source=medium&amp;utm_medium=referral">Vlad Busuioc</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>All these factors, paired with high capital barriers of entry, have defined the real estate market as a speculative investment for the few and a highly stressful once-in-a-lifetime investment for the many.</p><p>As a matter of fact, the real estate sector, despite it being the world’s most valuable asset class with an evaluation that is around <a href="https://www.savills.co.uk/blog/article/216300/residential-property/how-much-is-the-world-worth.aspx">$200 trillion</a>, is also a notoriously illiquid market. Housing market’s higher price point and compliance costs have historically hindered small investors from adding it to their balance sheet as a speculative investment.</p><p>This lack of flexibility won’t stand the test of time as new generational trends are set to shape the market. From millennials to generation Z, the future investors are digital native demographics whose consumer behaviour is deeply intertwined with internet mechanics.</p><p>As it is now, real estate is mostly a slow offline business: from a buyer’s perspective, it requires months to gather an adequate knowledge of the local market and from a seller’s viewpoint, the lack of market liquidity can prolong the transaction for months, if not years.</p><p>Blockchain technology provides a solution to both the information bottleneck and the financial bottleneck.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*DcFitEQpnLwAFA_b2zBjIA.png" /></figure><p><strong>Single source of truth</strong></p><p>Unlike the stock market, real estate assets are a non-fungible commodity which causes the market where they’re traded to be afflicted with information asymmetries. This means that the market is structured in such a way that one party, in this case the seller, possesses a greater wealth of knowledge than the other party, the buyer.</p><p>In fact, potential investors have to familiarize themselves with the specificities of the neighborhood and, eventually, rely on the more accurate knowledge of an intermediary who has also monitored past transactions in the local market. Blockchain is designed to be a tamper-proof record-keeping technology: it enables financial and social ecosystems with mutually distrusting agents or conflictual information to rely on an auditable and publicly accessible single source of truth, therefore boosting the transparency and enforcing an efficient dispute resolution mechanism. Albeit still in the early stages, this use-case has already been tested by state actors to implement nation-wide land registries and more countries are planning to join. Coupled with crowdsourced information and data aggregators, the capability of blockchain to produce immutable records empowers the end-consumer by reducing the gap of information between the seller and the buyer and disintermediating the latter from relying on third-parties, and it proves to be especially useful for markets that are not perfect information systems such as the real estate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*3zB_d8EQu6ASrFHxF7E5gw.jpeg" /><figcaption>source: <a href="https://media.consensys.net/the-purchase-and-sale-of-real-property-on-ethereum-55bdc289a7b5">https://media.consensys.net/the-purchase-and-sale-of-real-property-on-ethereum-55bdc289a7b5</a></figcaption></figure><p>The above diagram is an example of a smart contract-based application to perform transactions of tokenized real estate properties on a blockchain network (specifically, ethereum).</p><p><strong>Tokenization and fractional ownership</strong></p><p>The local and non-fungible nature of properties as an asset class leads to an inefficient price discovery mechanism which has a detrimental effect on liquidity.</p><p>The function of blockchain as an immutable ledger of records makes the financial ecosystem more open and a level-playing field between buyer and seller, but there’s more to blockchain than being a record-management tool.</p><p>Another feature has the potential to stimulate liquidity and empower a much greater pool of investors who lack of significant amount of capital: tokenization.</p><p>Fractional ownership through tokenization allows to encode tokens, units of digital information that are meant to represent and keep track of the ownership of real-world assets, into a set of rules with smart contracts that are deployed on the blockchain network. In this particular case, a token is a measure of the percentage ownership in a property. The allocation of the tokens and the lower bound of this percentage can be as low as encoded in the rules of the smart contract, therefore granting more freedom to the seller. This will in turn lower the capital barriers to have a stake in the housing market since, rather than an entire property, it will facilitate the acquisition of just a fraction of it to a global pool of investors. At the same time, this approach also offers full transparency as the rules of the contract reside on the blockchain and are immutable. The housing market will hence be democratized as both a speculative and long-term asset.</p><p>Thus, the conundrum is not whether a blockchain-type of technology might have a use-case in the real estate sector, but, specifically, which flavour of blockchain is the most suitable. Whereas public blockchains, such as bitcoin and ethereum, are designed with a more adversarial approach in mind, as their users are either anonymous or pseudonymous, consortium and private blockchains, such as the hyperledger project, are designed for mutually distrusting competing actors who are nevertheless identifiable, hence the lesser degree of decentralization. This allows consortium and private blockchains to be more easily regulatory-compliant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g0ecTLvhz2obKof3" /><figcaption>Photo by <a href="https://unsplash.com/@ev?utm_source=medium&amp;utm_medium=referral">ev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>From KYC/AML to privacy-oriented legal frameworks such as GDPR, private and consortium blockchains are architected to be more institutionally-friendly.</p><p>Moreover, their more centralized nature still makes them more flexible than a relational database. Similarly to public blockchains, consortium and private blockchains have their own consensus protocol, but more modular and customizable according to the requirements of their use-case. This allows to embed a set of policies in their network to regulate the business logic among their actors and enforce immutability for record-keeping purposes.</p><p>Lastly, in a financial landscape that will be dominated by demographic cohorts that have been influenced by new economic paradigms, from the attention economy to the sharing economy, traditional industries are poised to face substantial transformation. The new generations are digital natives, demand more flexibility and data transparency and the trend of digitization of offline sectors is bound to expedite with the internet of things. Blockchain is one of the tools with which the fintech and real estate market can adapt to these structural changes.</p><p>In our next articles we will bring you more information about the comparison between consortium and public blockchains, and the rationale behind why here at <a href="https://brikkapp.com/">BrikkApp</a> we’ve decided to adopt such a technology to increase the transparency of the property investment market will be further detailed.<a href="https://medium.com/brikkapp"> Follow us</a> and keep in touch!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c5822b6d644" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brikkapp/blockchain-and-the-democratization-of-real-estate-investing-7c5822b6d644">Blockchain and the democratization of real estate investing</a> was originally published in <a href="https://medium.com/brikkapp">BrikkApp</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>