<?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 Ouziel Slama on Medium]]></title>
        <description><![CDATA[Stories by Ouziel Slama on Medium]]></description>
        <link>https://medium.com/@ouziel?source=rss-7f2a2f50cd26------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WY-VnjblpBdQE0Hcz0_XVw.jpeg</url>
            <title>Stories by Ouziel Slama on Medium</title>
            <link>https://medium.com/@ouziel?source=rss-7f2a2f50cd26------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:20:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ouziel/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[Announcement: Matching Engine Finished]]></title>
            <link>https://medium.com/lgogroup/announcement-matching-engine-finished-a51d8bde2a3?source=rss-7f2a2f50cd26------2</link>
            <guid isPermaLink="false">https://medium.com/p/a51d8bde2a3</guid>
            <category><![CDATA[lgogroup]]></category>
            <category><![CDATA[lgomarkets]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Ouziel Slama]]></dc:creator>
            <pubDate>Tue, 17 Apr 2018 07:37:51 GMT</pubDate>
            <atom:updated>2018-08-21T21:22:16.042Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IpGRqhh3PSvfQay8b2Rr9A.png" /><figcaption>Matching Engine Finished</figcaption></figure><p>We’re happy to announce that we finished the development of the Matching Engine. The Matching Engine is a critical component and we’re quite proud with the result since we overcame major challenges and reached our goal of:</p><ul><li>high performance,</li><li>reliability,</li><li>maintainability,</li><li>high availability and</li><li>disaster recovery.</li></ul><h3>Technical Details</h3><p><strong>High Performance, Reliability and Maintainability</strong></p><p>The Matching Engine takes orders as an input, matches them and produces trades as an output. This first version implements a price-time priority matching algorithm (FIFO): orders are first ranked according to their price; orders of the same price are then ranked depending on when they were entered.</p><p><a href="http://www.cmegroup.com/education/matching-algorithm-overview.html">http://www.cmegroup.com/education/matching-algorithm-overview.html</a></p><p>The Matching Engine was developed in the latest version of Java, Java 10, a very reliable, maintainable and well tested platform. While Java has the reputation of being less performant than other languages, it comes down to how proficient you are in the use of the language and the JVM. We are very satisfied with the performance results.</p><p>For faster and easier integration of the Matching Engine we are using Docker Containers.</p><p><a href="https://blog.docker.com/2018/04/improved-docker-container-integration-with-java-10/">https://blog.docker.com/2018/04/improved-docker-container-integration-with-java-10/</a></p><p>The core is based on the CQRS principle, using the Axon framework</p><p><a href="https://martinfowler.com/bliki/CQRS.html">https://martinfowler.com/bliki/CQRS.html</a></p><p><a href="http://www.axonframework.org/">http://www.axonframework.org</a></p><p>Our CQRS command bus is based on the famous LMAX Disruptor which is basically a ring buffer avoiding blocking and contention in multithreaded environments</p><p><a href="https://martinfowler.com/articles/lmax.html">https://martinfowler.com/articles/lmax.html</a></p><p>The business logic is single threaded. For performance reasons, all live states (order books) are held in memory. Everything is non-blocking, asynchronous and event-driven.</p><p><strong>High Availability &amp; Disaster Recovery</strong></p><p>All business events (eg. ‘trade executed’ or ‘price level changed’) are journaled in a clustered database. In case of a JVM crash, the in-memory state is rebuilt by replaying these events from the most recent snapshot.</p><p>At least two active replica of the matching engine are created for each tradable pair (eg. 2 identical instances for BTC/USD). They process exactly the same inputs (orders) and create the same outputs (trades) in parallel. If a replica is lagging or crashing, then it is restarted and recovered. Front-end modules always read the stream of trades from the fastest running replica.</p><p><strong>Deterministic</strong></p><p>The behaviour of the matching engine is absolutely deterministic. Given a starting snapshot and given the same sequence of events, the business logic ends up in exactly the same state and produces exactly the same output. This is beneficial for testing, recovery, diagnostics, analytics and auditability.</p><h3>Next Steps</h3><p>Our team started to plug the matching engine with the wallet for which the development is progressing fast. An external team will start to audit the code and proceed penetration test next week. Stay tuned! we will post an update regularly.</p><p>Best Regards,<br>Ouziel Slama, CTO</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a51d8bde2a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgogroup/announcement-matching-engine-finished-a51d8bde2a3">Announcement: Matching Engine Finished</a> was originally published in <a href="https://medium.com/lgogroup">LGO Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Lightning Exchange]]></title>
            <link>https://medium.com/lgogroup/the-lightning-exchange-5cf4c2e966cb?source=rss-7f2a2f50cd26------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cf4c2e966cb</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[ico]]></category>
            <category><![CDATA[lgogroup]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Ouziel Slama]]></dc:creator>
            <pubDate>Sun, 28 Jan 2018 22:55:52 GMT</pubDate>
            <atom:updated>2019-02-06T21:30:14.973Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>LGO has been dedicated to resolving two major crypto exchange issues:</p><p>1. Transparency<br>2. Crypto funds security</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*4LMllmiDiTaK6qpEMarGVA.jpeg" /></figure><p>Our whitepaper extensively details our solutions for improving transparency. In the following article we will discuss security issues not mentioned in our whitepaper due to the necessity for research and testing at the time of its writing. Our team can now provide a blueprint of LGO’s vision for security improvement.</p><p>The major security issue with crypto exchanges lies in the fact that these exchanges work two different jobs at once: Custody and Exchange.<br>We intend to separate these two activities. <strong>The exchange will exclusively retain in escrow funds placed in orders.</strong><br>This wasn’t previously possible mainly due to slow and pricey transactions. However there is a solution to these issues: Lightning Network.<br>In this article we will describe how Lightning Network can resolve major exchange issues and enable users to maintain control over funds that aren’t placed in orders.</p><h3>Lightning Network presentation</h3><blockquote><em>“Lightning’s fundamental technology is a local two ­party consensus, known as a payment channel. Two parties send an initial amount of Bitcoin into a multisignature transaction with a local consensus on the current balance allocated between the two participants. Updates to the allocation of the current balance can be made only with the cooperation of both parties, using a new transaction which spends from the funds allocated to the multisignature transaction to each party.”</em></blockquote><p>In other words, Lightning (LN) allows two people exchanging money to agree on each other’s respective balances off-chain while retaining control over signed transactions, enabling balances to become effective on-chain.</p><p>The Lightning Network (LN) as specified in its current version helps solve two limitations of the Bitcoin Network:</p><ul><li>Instant transaction as opposed to waiting for at least one confirmation (six confirmation are recommended)</li><li>Lower fee because fees are collected by LN nodes and not miners as with the Bitcoin Network</li></ul><p>These two advantages of LN can reduce dramatically the need for exchange to control user’s money. Users can send their BTC to the exchange when making an order and remove the need for a BTC account in the exchange itself.</p><h3>Lightning Network limitations</h3><p>The current LN specification limits the amount of BTC that can be sent to the exchange, slightly more than 42000 bits (previously called µBTC) per transaction and a little more than 167000 bits in a LN wallet. However, this limitation can be lifted for transactions between the exchange and its customer only, by using a custom version of LN.</p><p>Currently there are two limits to LN transaction:</p><ol><li>The maximum amount a LN wallet can contain: 2²⁴-1 satoshis (0.16777215 BTC).</li><li>The maximum amount of a LN transaction: 2³²-1 milli-satoshis (0.04294967295 BTC).</li></ol><p>In fact, in the LN specifications, Bob’s LN wallet is a channel between Bob’s LN node and any other node in the LN network. So the wallet amount limit is the maximum amount that can be put in a LN channel between two LN nodes.</p><p>In order to lift these limits, the exchange and its user can run modified LN nodes, that are not connected to the rest of LN network, and:</p><ul><li>Use 5 byte (out of a maximum of 8 bytes) instead of 3 bytes for the funding_satoshis field when creating a channel. With this modification, the maximum amount a LN wallet can contain is raised to more than 10000 BTC</li><li>Use the full 64 bits of the amount_msat when making a transaction.</li></ul><p>In these modified nodes, a special bitfield will be set when creating a channel.</p><h3>Trading workflow using LN</h3><ul><li>Alice (Bob and Carol) has (have) an amount of m_a (m_b and m_c) BTC in her btc wallet</li><li>Alice (Bob and Carol) makes a regular BTC transaction of n_a BTC (n_b and n_c) where n_a &lt; m_a to her LN wallet</li><li>Alice wants to buy USD for a value of p_a BTC where p_a &lt; n_a, she makes an order in the form of a LN payment of p_a BTC to LGO.</li><li>Bob wants to buy bitcoins for a value of p_b BTC where p_b &lt; p_a. He creates a USD order in LGO.</li><li>LGO trading engine finds a match between these two orders and makes the trade.</li><li>LGO deducts the right amount of USD from Bob’s USD account</li><li>LGO sends p_b BTC to Bob’s LN wallet. Now his LN wallet contains n_b + p_b BTC</li><li>LGO adds the USD amount corresponding to p_b BTC to Alice’s USD account held by LGO.</li><li>Bob can decide to transfer part of his LN wallet (containing n_b + p_b BTC) to his BTC wallet using a regular BTC transaction.</li></ul><h3>Conclusion</h3><p>Through Lightning Network, LGO is able to considerably limit theft risk. Indeed, by separating the activity of custody, the volume of funds kept by an exchange is drastically diminished. If the Exchange is attacked, client funds are not at risk.<br>Combined with our front-running proof algorithm, LGO solves two major issues that plague cryptocurrency exchanges: transparency and security. By resolving these two significant problems, LGO offers the community more than an essential tool, it testifies as proof that opacity, insecurity and distrust are not inevitable consequences to crypto/fiat exchanges.<br>The Blockchain offers simple solutions to attain equivalent levels of transparency and security as with a completely decentralized exchange that doesn’t support fiat or cross-chain. We believe all centralized exchanges will eventually use these tools because there will be no longevity without trust.</p><h4>About LGO</h4><p><em>LGO (</em><a href="https://legolas.exchange/"><em>https://lgo.exchange</em></a><em>) is a demonstrably fair, bank-backed premium exchange for institutional investors. It incorporates a decentralized ledger within its proprietary centralized platform in order to guarantee the inalterability, temporality and transparency of the order book and ensure a fair trading environment.</em></p><p><strong><em>Public Sale starts February 1st !</em></strong></p><p><strong>If you like what you read, please don’t forget to like and share the post !</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cf4c2e966cb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lgogroup/the-lightning-exchange-5cf4c2e966cb">The Lightning Exchange</a> was originally published in <a href="https://medium.com/lgogroup">LGO Group</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>