<?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 Mister Ticot on Medium]]></title>
        <description><![CDATA[Stories by Mister Ticot on Medium]]></description>
        <link>https://medium.com/@mister.ticot?source=rss-dc9a197be2a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*TRpD5QGeJr-rCgrR8k8Gfw.png</url>
            <title>Stories by Mister Ticot on Medium</title>
            <link>https://medium.com/@mister.ticot?source=rss-dc9a197be2a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 15:44:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mister.ticot/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[https://codepen.io/cosmic-plus/pen/vYLjgVM]]></title>
            <link>https://medium.com/@mister.ticot/https-codepen-io-cosmic-plus-pen-vyljgvm-4123acd9b6f5?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4123acd9b6f5</guid>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Thu, 08 Jul 2021 20:33:29 GMT</pubDate>
            <atom:updated>2021-07-08T20:33:29.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eK0g0I4i-gYwswczSxjlBg.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fcosmic-plus%2Fembed%2Fpreview%2FvYLjgVM%3Fheight%3D600%26slug-hash%3DvYLjgVM%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fcosmic-plus%2Fpen%2FvYLjgVM&amp;image=https%3A%2F%2Fassets.codepen.io%2F3136744%2Finternal%2Fscreenshots%2Fpens%2FvYLjgVM.default.png%3Fformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D1%26amp%3Bversion%3D1594754991%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cdd21a9a2a854b5cc7db4d1a3047cf1/href">https://medium.com/media/7cdd21a9a2a854b5cc7db4d1a3047cf1/href</a></iframe><p><a href="https://codepen.io/cosmic-plus/pen/vYLjgVM">https://codepen.io/cosmic-plus/full/vYLjgVM</a></p><p>a</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4123acd9b6f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cosmic.vote #1: Introducing Majority Judgment]]></title>
            <link>https://medium.com/cosmic-plus/cosmic-vote-1-introducing-majority-judgment-84a250380695?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/84a250380695</guid>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[application]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 23:01:49 GMT</pubDate>
            <atom:updated>2020-07-24T13:48:07.623Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The ambition of Cosmic.vote is to bring decentralized organizations to Stellar. No wonder that Majority Judgment has been chosen for its first contract: when it comes to decentralized governance, having a well-designed, robust voting system is an absolute game-changer. Let’s see why Majority Judgement is superior in this matter.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Epg3SDEzMeQVJxqAnZdzAw.png" /></figure><h3>Origin</h3><p>Majority Judgment is a voting system invented in 2007 by Michel Balinski &amp; Rida Laraki. Those scientists based their design on decades of studies regarding voting systems — a field known as <em>social choice theory</em>.</p><p>The point of Majority Judgment is to combine the advantages of previous voting systems while avoiding as many flaws as possible. While a perfect voting system has been proven impossible to achieve, Majority Judgment appears to be the closest to an ideal solution.</p><h3>A First Vote</h3><p>With Majority Judgment, voters give a grade to each candidate. The votes are then combined to determine candidates’ ranking. This process determines the winner in a single round of voting.</p><p>As Majority Judgement contracts are now available on Stellar, why not giving it a try:</p><ol><li>Use the poll widget below, or open <a href="https://cosmic.vote/?tab=vote&amp;txHash=0582a51ba2d6f0dcdca5cffa4dc262787a834a9524c9b37e028987ab46bad3d7&amp;network=public">the poll page on Cosmic.vote</a>.</li><li>Pick a grade for each option, then click on Cast Your Vote!.</li><li>Within the signing side-frame, select a wallet to sign with.</li><li>Browse to your wallet by using either Go to (wallet) or the QR Code.</li><li>Sign the transaction.</li><li>Close the signing side-frame &amp; enjoy the results. :)</li><li>Congratulations! You just participated in your first Majority Judgement election!</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fcosmic-plus%2Fembed%2Fpreview%2FvYLjgVM%3Fheight%3D600%26slug-hash%3DvYLjgVM%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io&amp;display_name=CodePen&amp;url=https%3A%2F%2Fcodepen.io%2Fcosmic-plus%2Fpen%2FvYLjgVM&amp;image=https%3A%2F%2Fassets.codepen.io%2F3136744%2Finternal%2Fscreenshots%2Fpens%2FvYLjgVM.default.png%3Fformat%3Dauto%26amp%3Bha%3Dfalse%26amp%3Bheight%3D360%26amp%3Bquality%3D75%26amp%3Bv%3D1%26amp%3Bversion%3D1594754991%26amp%3Bwidth%3D640&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cdd21a9a2a854b5cc7db4d1a3047cf1/href">https://medium.com/media/7cdd21a9a2a854b5cc7db4d1a3047cf1/href</a></iframe><h3>Counting Votes</h3><p>Grades received by the candidates are sorted from the worst to the best. We take the candidate median grade, which we call the “majority grade”, to be the result of that candidate. To break ties, we join the completion of the grade to the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eK0g0I4i-gYwswczSxjlBg.png" /><figcaption>The majority grade &amp; its completion</figcaption></figure><p>Worth noting, each candidate has a score that has a meaning of its own. This is different from most voting systems, where candidates’ scores are relatives to each other.</p><h3>Advantages</h3><p>While studying voting systems, scientists came up with several “qualities” those may have or may not have. Let’s check a few of those, and see how Majority Judgment behave compared to habitual voting systems.</p><p>This will give show how we compare voting systems together, and why Majority Judgment is the better candidate for community governance.</p><h4>Independence to Irrelevant Alternatives</h4><p>A group of friends decides to vote for which food they’ll eat tonight. All agreed that something unhealthy has to be ingested, but the exact format remains subject to debate. We’re facing the classical alternative: Pizzas, Hamburgers, or Hot-Dogs.</p><p>In the Alpha universe, our friends decide to rely on Majority Judgement to take the decision. They end up with these results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T71Eopwe3K1IDF-Hcd6bSQ.png" /></figure><p>In the Beta universe, they’ll go with an ordinary voting system, Plurality Voting. Here’s what they got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*A3oi1wInpk-eZU3F8Mw40w.png" /></figure><p>However, the tricky Alice points out that Pizzas with a creamy base are a meal of its their own sort &amp; deserve a dedicated entry. Our friends decide to take her point &amp; to vote a second time:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*4L-YmS-geQIEDTbALtWPqA.png" /></figure><p>So what happened here? As you can see, adding a new candidate moved Pizzas out of the winning place. While a majority of our friends are pizza lovers, adding a second kind of pizza divided the votes and led to the victory of hamburgers.</p><p>In social choice theory, this flaw is known as <em>“Weakness to Irrelevant Alternatives”</em> and describes a voting system in which adding a non-winning candidate can nonetheless change the election outcome.</p><p>This is considered as one of the nastiest flaw voting systems can have. Indeed, a documented electoral strategy consists of funding oppositions to multiply the alternatives &amp; erode the voting base of a main opponent.</p><p>Majority Judgment dodges this issue elegantly: as each candidate has a score of its own, adding or removing entries won’t change the order of the other candidates:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fduxj5zYjmDnt9F83-iMnw.png" /><figcaption>Superb example of consistent ranking, although here my “irrelevant alternative” actually got the victory (T.T)</figcaption></figure><h4>Resistance to Strategic Voting</h4><p>In the above situation, the Pizza lovers could anticipate the results and decide to all vote for the pizza option that is the more likely to win. Likewise, the hot-dog lovers may decide to unite under the hamburgers — even while this is not their favorite meal — to avoid the unbearable, meat-poor pizzas.</p><p>Voting for a candidate that is not your real favorite in order avoid a candidate that you’d like to reject is generally referred to as <em>strategic voting</em>. While this strategy is well known &amp; widely used, it is a bigger issue than one might think…</p><p>The point of voting, besides generating a clear-cut decision, is to summon something that we could call the “collective will”. But how could we possibly achieve that with a system that pushes people to vote differently than what they actually think? The whole process is doomed to fail!</p><p>Thus, <em>Resistance to strategic voting</em> is a fundamental property for a voting system to have. In practice, this is impossible to achieve fully — but there are degrees of resistance.</p><p>On that matter, Majority Judgment has been shown to perform better than its alternatives. There are several reasons for that. Some are quite technical and would require an entire article, so to let’s stay on the surface here:</p><ul><li>Voters judge every candidate, so they can vote <em>against</em> the candidate they don’t like without having to alter their real preferences.</li><li>Extreme grades, as long as they are in minority, won’t change the median grade — in the words, overshooting won’t impact the results much.</li><li>Giving the best grades to your favorites &amp; dismissal to candidates that don’t fit you is what is expected… There’s not much you can do beyond that.</li><li>Majority Judgement creators proved that, most often than not, giving grades that don’t reflect your real preferences will impact the results in the wrong direction. Thus, voters are incentivized toward integrity.</li></ul><h4>Explicit Consent</h4><p>As I mentioned earlier, the function of voting is sometimes more about making a clear-cut than a good cut. What’s magical with Plurality Voting is that, no matter how bad the candidates are, you’ll always get a winner!</p><p>That’s another point where Majority Judgement makes a massive difference: it allows for rejection of all the candidates, which is a desirable property as <em>it implements the notion of explicit consent</em>.</p><p>Back to our example, you cannot tell, by looking at Plurality Voting results, whether the voters were pleased by the options they had or on the contrary selected the candidate they hate the less.</p><p>On the other hand, here’s what would happen with Majority Judgement in case our buddies were not in tune with the food proposal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*04p9pb8SUruKUeAuo6YXAg.png" /><figcaption>A no-winner case in Majority Judgement</figcaption></figure><p>This property is similar to jury outputs − for example when judging wines or ice skating. With Majority Judgement, candidates are not only ranked: they also receive an explicit (and generally useful) appreciation by the community.</p><h3>Conclusion</h3><p>When it comes to governance, having a well-designed, robust voting system is an absolute requirement. Luckily, people such as Michel Balinksi &amp; Rida Liraki, as well as many other scientists, have covered this problem in great extents.</p><p>Leveraging their work, Cosmic.vote goes to the point by implementing, before anyone else in the industry, the best available solution on that matter. As to know if this will turn into a successful adventure &amp; definitive advantage for Stellar… Well, I guess that’s a community decision ;)</p><blockquote><strong>Pedagogic Content</strong></blockquote><blockquote>− <a href="https://www.youtube.com/watch?v=vfTJ4vmIsO4&amp;cc_load_policy=1">Mr President, did you won this election? [fr/en subtitles]</a> − Shows that an election’ result may depend as much on the voting rules than on the votes.</blockquote><blockquote><strong>Scientific Content </strong>(Publications of M. Balinski &amp; R. Liraki)</blockquote><blockquote>− [2011, Book] <a href="https://mitpress.mit.edu/books/majority-judgment">Majority Judgment: Measuring, Ranking and Electing</a></blockquote><blockquote>− [2007] <a href="https://sites.google.com/site/ridalaraki/xfiles/BalinskiLarakiPNAS.pdf?attredirects=0">A theory of measuring, electing and ranking</a><br>− [2010] <a href="https://sites.google.com/site/ridalaraki/xfiles/ElectionByMajorityJudgment%28ExperimentalEvidence%29Final.pdf?attredirects=0">Election by Majority Judgment: Experimental Evidence</a><br>− [2013] <a href="https://sites.google.com/site/ridalaraki/xfiles/HowToRankWines.pdf?attredirects=0">How Best to Rank Wines: Majority Judgment</a><br>− [2014] <a href="https://sites.google.com/site/ridalaraki/xfiles/BalinskiLaraki%28ElsterBook%292014.pdf?attredirects=0">What Should “Majority Decision” Mean?</a><br>− [2020] <a href="http://crest.science/RePEc/wpstorage/2018-15.pdf">Majority Judgment vs Approval Voting</a></blockquote><blockquote><strong>About Majority Judgment Inventors:</strong></blockquote><blockquote>Michel Louis Balinski was emeritus director of research of the CNRS at the Ecole Polytechnique (Paris). He was the Founding Editor of <em>Mathematical Programming</em> and a former President of the Mathematical Optimization Society. In 2013 he was awarded the John von Neumann Theory Prize by INFORMS for “fundamental, sustained contributions to theory in operations research and the management sciences.” <a href="https://sites.google.com/site/michellbalinski/">[More…]</a></blockquote><blockquote>Rida Liraki is director of research CNRS in computer science at LAMSADE (University of Paris Dauphine) since 2013 (and researcher at the CNRS since 2001). From 2006 to 2017, he was professor at the École Polytechnique and since September 2017, he is professor at the University of Liverpool (computer science department, part-time). <a href="https://sites.google.com/site/ridalaraki/">[More…]</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84a250380695" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/cosmic-vote-1-introducing-majority-judgment-84a250380695">Cosmic.vote #1: Introducing Majority Judgment</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Two Years Later: Wallet-Independent Applications Are There]]></title>
            <link>https://medium.com/cosmic-plus/two-years-later-wallet-independent-applications-are-there-469043edb3d4?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/469043edb3d4</guid>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Fri, 24 Jan 2020 00:31:15 GMT</pubDate>
            <atom:updated>2020-01-24T00:31:15.075Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tr2Qc4KQI9S6TOGB4AKVRQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cristian1?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Cristian Escobar</a></figcaption></figure><p><em>Two years ago, </em><a href="https://medium.com/cosmic-plus/a-standardize-way-of-handling-stellar-transactions-4dd35382eda1"><em>I introduced Cosmic.link to the Stellar community</em></a><em> and last year, </em><a href="https://medium.com/cosmic-plus/one-year-later-walletless-stellar-applications-are-finally-coming-238a8aa368b2"><em>I summed up the progress made so far</em></a><em>.</em></p><p><em>I went briefly over the concept of Cosmic.link and delegated signing, and announced the first app to use this technology on Stellar. I concluded on the challenge ahead: bootstrapping adoption.</em></p><p><em>By the time, the number of wallet-independent applications on Stellar was 0. Let’s see what developers have accomplished since then.</em></p><h3>Brief Remainder</h3><p>Cosmic.link makes it possible for applications to communicate with your software wallet the same way they do with Ledger wallets. In other words, it makes it possible to login &amp; sign transactions from multiple Stellar applications using only one wallet — without ever granting any form of control over your accounts.</p><p>The present article is a summary of the 2019 developments on that matter. If you want to dig about delegated signing itself, please refer to:</p><ul><li>The <a href="https://cosmic.link/#about">Cosmic.link about page</a>,</li><li>The <a href="https://medium.com/cosmic-plus">Cosmic.plus blog</a>,</li><li>The <a href="https://www.insidestellar.co/e/inside-stellar-with-antoine-bodin/">Interview with Brian Goldberg of InsideStellar.co</a>.</li></ul><h3>2019 / Quarter 1</h3><ul><li><em>First wallet-independent application on Stellar: </em><a href="https://equilibre.io/">Equilibre.io</a>, a portfolio balancer for the Stellar DEX, is released for the first Cosmic.link birthday, the Feb 16th 2019. (A<a href="https://medium.com/cosmic-plus/beta-release-equilibre-io-portfolio-balancer-b6995493fa55">nnouncement</a>)</li></ul><h3>2019 / Quarter 2</h3><ul><li><a href="https://equilibre.io/">Equilibre.io</a> is among <a href="https://medium.com/stellar-community/stellar-community-fund-round-1-winners-1957314d15cc">Stellar Community Fund #1 winners</a>.</li><li><a href="https://galactictalk.org/d/2099-cgig-peer-to-peer-marketplaces-for-stellar">CGIG</a>, a market-place for Stellar, implements Cosmic.link.</li><li><a href="https://galactictalk.org/d/1977-stellarauth-authenticate-using-your-stellar-account">StellarAuth</a>, which show-case a new authentication mechanism based on Stellar, makes use of Cosmic.link for its first iteration.</li></ul><h3>2019 / Quarter 3</h3><ul><li><a href="https://cosmic.plus/">Cosmic.plus</a> opens as a hub that provides applications &amp; resources related to Cosmic.link.</li><li>A <a href="https://cosmic.plus/#view:js-trezor-wallet">Trezor library</a> is released by Cosmic.plus &amp; Trezor support is added to Cosmic.link. Joint work leads to several improvements in the Stellar app for Trezor.</li><li><a href="https://lumenthropy.com/">Lumenthropy</a> implements donations through Cosmic.link.</li><li>Among the <a href="https://medium.com/stellar-community/stellar-community-fund-2-the-results-69b3f6a6040e">Stellar Community Fund #2 winners</a>, 3 out of 8 support delegated signing.</li><li><a href="https://lobstr.co/">Lobstr</a> implements partial support for it.</li><li><a href="https://stellarauth.com/">StellarAuth</a> proposes a proof-of-concept for an alternative delegated signing solution.</li><li>StellarPay released a <a href="https://checkout.stellarpay.io/demo/">demo showcasing the newly developed Cosmic.link widget</a>. Unfortunately, the author stopped working as soon as he received the funds from SDF — a recurrent issue with this kind of contest.</li></ul><h3>2019 / Quarter 4</h3><ul><li><a href="https://publicnode.org/">PublicNode.org</a> implements donations through Cosmic.link, using the new customizable widget.</li><li><a href="https://www.reddit.com/r/Stellar/comments/e1mek9/rstellar_community_points_on_stellar_blockchain/">r/stellar Photons</a> relies on Cosmic.link to embark users into its project of on-chain migration.</li><li><a href="https://nicetrade.co/">NiceTrade.co</a> uses Cosmic.link to become the first Stellar exchange front-end to support delegated signing and <a href="https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md">SEP-0010 login</a>.</li><li><a href="https://keybase.io/">Keybase</a> fixes its support of delegated signing &amp; becomes available as a Cosmic.link signing method.</li><li>Cosmic.plus gets in touch with <a href="https://tangemcards.com/">Tangem</a> to explore opportunities for integration.</li><li>Cosmic.link is among the <a href="https://medium.com/stellar-community/stellar-community-fund-round-3-results-9d99e7cfec32">Stellar Community Fund #3 winners</a>, as well as two other projects that use delegated signing (PublicNode and StellarTerm).</li></ul><h3>Today’s Challenge: Raising The Level</h3><p>In an industry where over-promising became the norm, one easily forgets that filling the gap between marketing and reality is about achieving one technical step after another.</p><p>We won’t go &amp; disrupt those multi-billions markets everyone is talking about with a fragmented ecosystem, half-secured vendor wallets &amp; <a href="https://medium.com/cosmic-plus/never-ever-copy-paste-your-secret-key-1847f7f7e89a">copy/pasting private keys around</a>.</p><p>“Raising The Level” — that is, the fundamentals — is not only about making one’s software better than others but about establishing new industry-wide standards that upgrade developers ambitions &amp; user’s expectations.</p><p>Two years after its first steps, delegated signing for Stellar is proven &amp; well-tested. Let’s make 2020 the year where it becomes the norm, and where one user, from one wallet, can securely access the whole constellation of Stellar applications.</p><p><em>Application: </em><a href="https://cosmic.link/"><em>Cosmic.link</em></a></p><p><em>Organization: </em><a href="https://cosmic.plus/"><em>Cosmic.plus</em></a><em> | </em><a href="https://git.cosmic.plus/"><em>GitHub</em></a><em> | </em><a href="https://www.npmjs.com/search?q=cosmic-plus"><em>NPM</em></a></p><p><em>Weekly updates: </em><a href="https://reddit.com/r/cosmic_plus"><em>Reddit</em></a><em> | </em><a href="https://twitter.com/cosmic_plus"><em>Twitter</em></a></p><p><em>Talk: </em><a href="https://keybase.io/team/cosmic_plus"><em>Keybase</em></a><em> | </em><a href="https://t.me/cosmic_plus"><em>Telegram</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=469043edb3d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/two-years-later-wallet-independent-applications-are-there-469043edb3d4">Two Years Later: Wallet-Independent Applications Are There</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serve Your Own CosmicLink Front-End]]></title>
            <link>https://medium.com/cosmic-plus/serve-your-own-cosmiclink-front-end-cfdcf74c55b?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfdcf74c55b</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[application]]></category>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Fri, 20 Dec 2019 22:23:58 GMT</pubDate>
            <atom:updated>2019-12-20T22:23:58.497Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUItmMX1gdBLya0AwsIW_Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@clarktibbs?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Clark Tibbs</a></figcaption></figure><p><em>What makes CosmicLink different from most Stellar-related services is that it is an open solution. In other words, instead of jailing users for growth &amp; profit, it gives the keys to everyone. Let’s dig together into one of the greatest feature of such an open system: forks.</em></p><h3>Why?</h3><p>CosmicLinks offers applications to send transaction requests to user wallets, where the transaction can get signed without compromising private keys. The flow is as follows:</p><p><strong>User wallet is known:</strong></p><ol><li>The application passes the transaction request directly to the user wallet.</li><li>The user signs the request which is then submitted to the network.</li></ol><p><strong>User wallet is not known:</strong></p><ol><li>The application passes the transaction request to a CosmicLink front-end.</li><li>The CosmicLink front-end passes the transaction request to the user wallet.</li><li>The user signs the request which is then submitted to the network.</li></ol><p><strong>Problems:</strong></p><ul><li>Cosmic.link being the only production-ready service relaying transactions request, it creates a single point of failure.</li><li>Companies such as exchanges may no be willing to depend on external services for sensitive operations.</li><li>Applications using Cosmic.link need the guarantee that they can switch to an alternative in case Cosmic.link goes down or rogue (e.g: tracking users, advertisement, …).</li></ul><p><strong>Solution:</strong></p><p>Providing an easy way for anyone to host their own CosmicLink front-end.</p><p>Cosmic.link has been designed in such a way that this can be achieved in a few clicks − at no cost − by whoever own a GitHub account. Yeah!</p><h3>Who?</h3><p>This solution is mainly intended for services that have many users regularly signing transactions, and that need to enforce the highest security standards. Serving your own front-end induce additional friction: Cosmic.link users already set up their public keys &amp; wallets of choice, but will have to do so again when using a front-end served from another domain.</p><p>If you expect your users to use the signing interface dozens of times on average, then it may be for you. If you expect them to use it only once or a few times, or if you don’t intend to audit code updates, you better stick with Cosmic.link.</p><p>In any case, you are welcome to try the forking process as it is easy, fast and educational. :)</p><h3>How?</h3><h4>Step 1 − Fork from the parent repository</h4><ol><li>Browse to <a href="https://git.cosmic.plus/https-cosmic-link">git.cosmic.plus/https-cosmic-link</a>: this is the repository from which Cosmic.link is served.</li><li>Click on Fork.</li><li>Select a location if prompted for one.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V1IJyD3rIdTPHCaQXT9VQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X_dhFqCAArCTOocrdnATVg.png" /></figure><h4>Step 2 − Serve your fork on GitHub pages</h4><ol><li>From the forked repository, click on Settings.</li><li>Scroll down until the GitHub Pages section.</li><li>Set Source as master branch.</li><li>Reload the page, and copy the GitHub page address from the same section.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KdAm-ZrnIvt93Kjvt8lTeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1YXfeybr5bZiO5l01RAmvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ul-e9OWNkyNQyA_9loNl1A.png" /></figure><h4>Step 3 − Test your fork</h4><ol><li>Wait a couple of minutes for GitHub to generate the page.</li></ol><p>2. Go to the copy/pasted address. (https://${username}.github.io/https-cosmic-link)</p><ol><li>Check that the page displays &amp; is functional.</li><li>Append this transaction request to the address and browse: ?type=payment&amp;amount=10&amp;asset=GILS:gils*cosmic.plus&amp;destination=tips*cosmic.link</li><li>Check that the transaction displays properly.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7FzdjsDlFRPatc7WSLpBZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrSOXUqmZZmX9apU59GqWQ.png" /></figure><h4>Step 4 − Link it with your domain</h4><p>You can link this page with a domain of yours. The instruction bellow works for domain providers supporting CNAME records. If you need a more generic explanation, please <a href="https://help.github.com/en/github/working-with-github-pages/configuring-a-custom-domain-for-your-github-pages-site">see GitHub instructions</a>.</p><ol><li>Edit the CNAME file at the root of your repository, and set it as the domain of your choice.</li><li>In the DNS configuration of that domain, add a CNAME record that points to ${username}.github.io.</li><li>Check that the page is indeed served at your domain. Depending on your configuration, changes make take more or less time to propagate.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LqRZNP4xk6inEkkktQ34fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCCgt86VBmfSVVHmtN2vng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvIZYA-GEVEMxrNzuqB2WQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rU_T_hMVrH1Ccdfnm7RpoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLhHqJKHo5NaQlpBDXiXyA.png" /></figure><p>The example fork I created while writing this article is available at <a href="https://tifa.cosmic.plus/">tifa.cosmic.plus</a> (and will not get updated).</p><h4>Step 5 − Update your fork</h4><p>This part is slightly more technical. GitHub doesn’t provide a way to do it, so we’ll go for some command line.</p><p><strong>Setup:</strong></p><pre># Clone your repository.<br>git clone <a href="https://github.com/$%7Busername%7D/https-cosmic-link">https://github.com/${username}/https-cosmic-link</a><br>cd https-cosmic-link<br># Add parent remote.<br>git remote add parent <a href="https://git.cosmic.plus/https-cosmic-link">https://git.cosmic.plus/https-cosmic-link</a></pre><p><strong>Update:</strong></p><pre># Pull new commits.<br>git pull parent master<br># Merge new commits.<br>git merge parent/master<br># Push updates to your repository.<br>git push --follow-tags</pre><h3>Extras</h3><h4>More Testing</h4><ol><li>Go to the <a href="https://www.stellar.org/laboratory/#txbuilder">Stellar Laboratory transaction editor</a>.</li><li>Create a transaction.</li><li>Copy the XDR at the end of the page.</li><li>Go to the <a href="https://cosmic.plus/js-cosmic-lib/web/demo">cosmic-lib demo page</a>.</li><li>Paste the XDR in the dedicated field.</li><li>Set the page field, under Meta Parameters, to your fork URL (including thehttps:// prefix).</li><li>Click on Open in side-frame. Enjoy. :)</li></ol><h4>Federated Server</h4><p>Setup your federated domain by editing the .well_known/stellar.toml file of your forked repository. Cloudflare users can use this <a href="https://cosmic.plus/#view:cloudflare-federation-server">minimalist federated server implementation</a>.</p><h4>Custom Stylesheet</h4><ol><li>Fork the sources repository from <a href="https://git.cosmic.plus/webapp-cosmic-link">git.cosmic.plus/webapp-cosmic-link</a>.</li><li>Edit stylesheet sources in the style/ directory.</li><li>Build the css stylesheet using npm run build-css</li><li>Copy the stylesheet atweb/index.css into your served repository.</li></ol><h3>Going Further</h3><p>The point of this article was to explain how to fork https-cosmic-link, which is the repository from which Cosmic.link is served.</p><p>Forkers who want to edit the sources, or to audit updates before serving, have to fork the <a href="https://git.cosmic.plus/webapp-cosmic-link">source repository</a> &amp; build the served repository on their own.</p><p>While this is possible to do right now (as of Dec 2019), those sources, as well as the related documentation, are about to get rewritten &amp; the whole code base will be made easier to deal with. I’d advise waiting for Cosmic.link v2 before going through that task.</p><p>And yes… this is an announcement. ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfdcf74c55b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/serve-your-own-cosmiclink-front-end-cfdcf74c55b">Serve Your Own CosmicLink Front-End</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Never (Ever) Copy/Paste Your Secret Key]]></title>
            <link>https://medium.com/cosmic-plus/never-ever-copy-paste-your-secret-key-1847f7f7e89a?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1847f7f7e89a</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[essay]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 20:12:52 GMT</pubDate>
            <atom:updated>2019-12-06T20:23:31.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cTMg5_SJG8BKz7wqMk_yIA.jpeg" /></figure><p><em>20 years ago, people made their first steps with email and online payments. Many of them learned the hard way. For scammers, it was an age of abundance. Things improved thanks to two keys: education and better software design. Today, that’s exactly what crypto needs and, users are fortunate, the rules are simple. Rule 1. Keep your secret key secret / Rule 2. Never (ever) break rule 1. Let’s talk about it.</em></p><h4>Public-key Cryptography</h4><p>When coming across a title such as “Public-key Cryptography”, some of you may feel like they clicked on the wrong link… Rest assured you did not. Cryptography is indeed a complicated matter, but what one needs to know to use it safely is definitely within reach. Here’s the <a href="https://en.wikipedia.org/wiki/Public-key_cryptography">Wikipedia introduction</a> about it:</p><blockquote>Public-key cryptography, or asymmetric cryptography, is a cryptographic system that uses pairs of keys: public keys which may be disseminated widely, and private keys which are known only to the owner. […] Effective security only requires keeping the private key private; the public key can be openly distributed without compromising security.</blockquote><p>In Stellar, the private key is generally referred at as the “secret key”, and starts with an S. The public key starts with a G. Sometimes, we use addresses such as MisterTicot*keybase.io instead of G keys − but under the hood, it is turned into a G key again.</p><h4>The Dos and Don’ts</h4><p>To keep things simple, you can see your public key (G) as your account number − that&#39;s what you share to receive payments. You can see your private key (S) as your account password − it grants full control over your money. This comparison is not perfectly correct, but almost.</p><p>Then the rules are simple: as long as your private key stays secret, and assuming your wallet is well-secured, no one other than yourself can move your funds. As soon as you share it with someone, and this includes any application out there, you are not the only one who can spend those coins any more.</p><p>That’s not something you want to happen and, if you’re not convinced about it, let’s look at a few facts together.</p><h4>Fact #1: Sharing Secret Makes Scams Easy</h4><p>Unfortunately, when it comes to Stellar, many application developers feel perfectly fine asking for your secret. Worse, they don’t let you know about the consequences and often make it look like something casual.</p><p>This unsafe trend has been initiated by the Stellar Development Foundation itself, as its <a href="https://www.stellar.org/account-viewer/">official account viewer</a> offers to “sign-in” with secret keys.</p><p>Feeding such a habit led many users to lose money. In fact, redirecting people to an imitation of that account viewer has proven to be one of the most effective ways to harvest Lumens at people’s expense. If scammers were the only ones to ask for private keys, few people would fall into the trap.</p><p>However, scammers are not the only threat out there, and you face risks even when pasting that secret into reputable applications.</p><h4>Fact #2: Your Clipboard Is Not Secure</h4><p>The clipboard is the shared interface where data gets stored when copy/pasting. It works by making anything that gets copied visible to each &amp; every software on your machine, so they can implement their paste function. In other words, as soon as you copy it, your secret is not secret anymore.</p><p>In terms of difficulty, peeking at the clipboard to retrieve private keys is within the 3~10 lines of codes range. It uses a system functionality the intended way, so application stores and security software are unlikely to flag that code as malicious.</p><p>That’s also a concern for the passwords, so if you took that habit of copy/pasting them I recommend that you switch to a well-designed password manager instead.</p><h4>Fact #3: The Application You Use Is Not As Secure As You Think</h4><p>Let’s be honest. If a software asks you for your private key, there are two options:</p><ol><li>The developers don’t understand public-key cryptography.</li><li>The developers understand it but don’t care.</li></ol><p>In both cases, you can legitimately assume they won’t do good at protecting your secret. But that’s the very thing with secrets: as soon as you leak them, how can you expect others not to do the same?</p><p>For the most part, people writing cryptocurrency-related applications are not security experts. In a few cases, they did not educate themselves about security at all.</p><p>While one should expect a cryptocurrency wallet to have strong security, it is unrealistic to ask the same for every crypto-related application out there.</p><h4>Fact #4: You Are Responsible for the Security of Your Account</h4><p>The same way that you are responsible for locking your car or hiding your credit card pin-code, you are the one responsible for keeping that private key secret.</p><p>The very point of cryptocurrency is to get rid of untrustable third-parties. It puts the power in your hands &amp; makes you the only one in control of your account. But everything worth doing comes with a learning step: driving a vehicle, cooking some meal and even playing a game.</p><p>Don’t listen to whoever wants you to believe that you can use that new fancy technology without any effort — or conversely, that you can’t use it at all because it would be too complicated.</p><p>Learning is power and should not be seen as an inconvenience. Cryptocurrency simply requires a little understanding to be able to make sound choices.</p><h4>Fact #5: You Have Friends Out There</h4><p>It is the developers responsibility to provide you with the well-though software you need to explore that space.</p><p>A growing number of applications are using solutions such as Sep7 or your servitor’ <a href="https://cosmic.link/#about">Cosmic.link</a> to make things safer &amp; easier. I could also mention <a href="https://github.com/stellarport/stellar-keystore">StellarPort’s keystore</a>, which is a well-designed way to store and use a secret key (but not to share it between apps!).</p><p>Of course, people who have significant amounts in crypto should use a hardware wallet as they are the most secure solution(Ledger or Trezor). I’d say that anybody involved over $500 should have one.</p><p>Ultimately, you are the one who chooses which software you trust in. Ultimately, you are the one who chooses which software will be successful. Keep focus &amp; make a good call!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1847f7f7e89a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/never-ever-copy-paste-your-secret-key-1847f7f7e89a">Never (Ever) Copy/Paste Your Secret Key</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Equilibre.io: In-Depth Analysis After One Year of Rebalancing]]></title>
            <link>https://medium.com/cosmic-plus/equilibre-io-in-depth-analysis-after-one-year-of-rebalancing-bdae5de06449?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdae5de06449</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[application]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Fri, 21 Jun 2019 06:14:32 GMT</pubDate>
            <atom:updated>2019-06-26T04:05:54.377Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://equilibre.io/">Equilibre.io</a> 0.10.0 came with a way to compute the full historical value of any Stellar account, in fiats. After entering using the account public key, it is under “Portfolio” =&gt; “History”. In this article, I’ll use this data to analyze the performance of an account that I rebalanced using Equilibre.io’s algorithms since over a year.</p><blockquote><strong><em>Disclaimer:</em></strong></blockquote><blockquote>Please remember that past performance may not be indicative of future results. Different types of investments involve varying degrees of risk, and there can be no assurance that the future performance of any specific investment, investment strategy, or product will be profitable, equal any corresponding indicated historical performance level(s), or be suitable for your portfolio.</blockquote><blockquote>This article is a performance analysis and cannot serves as an investment advice, financial advice, trading advice, or any other sort of advice, and you should not treat any of the article content as such.</blockquote><blockquote>Please conduct your own due diligence and consult your financial advisory before making investment decisions.</blockquote><blockquote>Don’t assume this disclaimer is merely a legal protection. Uninformed investment decisions are known to lead to dramatic situations. For your own sake, always make sure you understand what you’re doing before putting your money at risk.</blockquote><h3>How Equilibre.io Works?</h3><p>Equilibre.io is a portfolio balancer:</p><ol><li><strong>Select the assets</strong> you want to own.</li><li><strong>Set how much</strong> of those you want (i.e.: 50% USD, 25% BTC, 25% XLM).</li><li><strong>Sign a transaction</strong> that passes the required trades.</li><li><strong>Repeat</strong> regularly (every day, week or month).</li></ol><p>Equilibre.io doesn’t pass trades on your behalf: you are the only one in control, as it is meant to be.</p><h3>Equilibre.io “demo” Account</h3><p>The account analyzed here is “GAWO2C52D57XBT7SQL6YB3XPHFLFD2J4Z5RN7HPFZSHXJMXH72HRXNV3”, shortened as “GAWO…XNV3”.</p><p>I used it to test my algorithms &amp; strategies since April 2018, and I rebalanced it nearly every day since then.</p><p>Its history is publicly available: simply go to <a href="https://equilibre.io/">Equilibre.io</a> and click on “Demo” in the footer. Then go to “Portfolio” =&gt; “History”.</p><p>If you need the daily data, you’ll find it in the web console among other things.</p><h3>Portfolio History</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QsWmQ_QWy-CS9LiVUlpM9Q.png" /></figure><p>This graph may seem a bit hard to read at first. It shows the asset distribution of the portfolio over time, as well as its total value.</p><p>Each color band represents an asset, and the whole stack represents the portfolio total value at any given time.</p><p>What we see at first glance is that I changed the portfolio composition a few times and that it recovered from the autumn 2018 crash. On average, it seems to sit to higher than mid-2018.</p><p><strong>Relevant Facts:</strong></p><ul><li>The exposure always has been 50% fiats, 50% crypto.</li><li>20 Jun 2018: The rebalance setup was 1/4 CNY, 1/4 USD, 1/4 BTC, 1/4 XLM.</li><li>26 Jul 2018: Yearly high at $240.86.</li><li>Nov 2018: Developing Equilibre.io becomes my main activity and I started to improve rebalancing algorithm significantly from there.</li><li>12–21 Nov 2018: Switch to 1/6 USD, 1/6 CNY, 1/6 EUR, 1/6 BTC, 1/6 ETH, 1/6 XLM.</li><li>20 Nov 2018: Autumn 2018 crash starts.</li><li>16 Dec 2018: Yearly low at $145.73, drawdown: 39,5%.</li><li>12–14 Feb 2019: Switch to 1/6 USD, 1/6 CNY, 1/6 EUR, 1/8 BTC, 1/8 ETH, 1/8 XLM, 1/8 native tokens.</li><li>3 Jun 2019: Latest high at $232.64, 96.5% of yearly high.</li></ul><h3>Yearly Analysis</h3><h4>Comparison Against the Market</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_8RXmxBcYSeEm74FzWzpQ.png" /></figure><p>The main way to benchmark a portfolio performance is to compare it against market indexes. The key concept here is “outperforming the market”.</p><p>This is very difficult to achieve with consistency, to the point that in the financial spheres it is often considered to be the mere consequence of luck.</p><p>However, GAWO…XVN3 did just that. For the whole period, it clearly outperformed both the market, the <a href="https://thecrix.de/">CRypto IndeX</a> and <a href="https://crypto20.com/en/">Crypto20</a>.</p><p>This is an excellent result!</p><p>Worth noting, Crypto20 is an indexed crypto fund that you can buy into. As of today, the total fund value is estimated to be over 31 million USD.</p><h4>Comparison Against Non-Balanced Portfolios</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CB5ZY01kpQ6DZBW66shu8Q.png" /></figure><p>This chart shows a comparison of the performance of GAWO…XNV3 against two non-balanced portfolios.</p><p>The first one (BTC/XLM) is initially made of 1/2 USD, 1/4 BTC, and 1/4 XLM.</p><p>The second one (BTC/ETH/XLM) is initially made of 1/2 USD, 1/6 BTC, 1/6 ETH and 1/6 XLM.</p><p>We can see that GAWO…XNV3 outperformed both of them, which is an expected result when it comes to rebalancing.</p><h4>Comparison Against Its Main Assets Performance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptKNbIdvnlqsfLGv4T1zxQ.png" /></figure><p>This chart compares the performance of GAWO…XNV3 against the three main assets composing it. We notice that the portfolio has a tendency to perform nearly as good as the best asset.</p><p>However, this comparison is biased because the portfolio wasn’t composed by those three assets all the time.</p><p>For instance, Ethereum was not yet part of the portfolio while it first crashed in August 2018. Also, since February 2019 a number of native Stellar tokens have been added to the portfolio.</p><h3>Sequential Analysis</h3><p>We can get a more detailed view of Equilibre.io performance by analyzing GAWO…XNV3 against its own assets on 3 smaller sequences.</p><h4>Range Market: 19 Jun 2018–11 Nov 2018</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNrkc2tVsE_4tS0Llt6TQA.png" /></figure><ul><li>GAWO…XNV3 balance for that sequence was 1/4 USD, 1/4 CNY, 1/4 BTC, 1/4 XLM.</li><li>During that sequence, I used un-optimized rebalancing algorithms.</li><li>Nonetheless, GAWO…XNV3 slightly outperformed the average.</li><li>Range is generally where portfolio balancers deliver the best results over the average.</li></ul><h4>Bear Market: 21 Nov 2018–11 Feb 2019</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qtk7I1JzKhxjGTgs-ykdug.png" /></figure><ul><li>GAWO…XNV3 balance for that sequence was 1/6 USD, 1/6 CNY, 1/6 EUR, 1/6 BTC, 1/6 ETH, 1/6 XLM.</li><li>I had to cut the beginning of the bear market because of GAWO…XNV3 being in the middle of a change of setup.</li><li>During that sequence, I wrote Equilibre.io web interface &amp; improved the rebalancing algorithms.</li><li>GAWO…XNV3 performed on par with the average.</li></ul><h4>Bull Market: 14 Feb 2019–19 Jun 2019</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYeo-xM-gNbj3oj_HzqIcQ.png" /></figure><ul><li>The portfolio balance was 1/6 USD, 1/6 CNY, 1/6 EUR, 1/8 BTC, 1/8 ETH, 1/8 XLM, 1/8 native tokens.</li><li>During that sequence, I improved price picking algorithm &amp; implemented a way to use several anchors for the same asset.</li><li>For representing native tokens performance, I used a weighted average of REPO, SLT, TERN, PEDI. This is a rough estimation of the portfolio content over the period.</li><li>GAWO…XNV3 seemingly performed a bit under average, but...</li></ul><p>It should be noted that the average for this sequence is probably overestimated by a couple of percents. The reason is, price statistics have been inflated by market manipulations.</p><p>At some points, exchanges such as Bitmart &amp; Bitforex reported prices twice as high as the ones really available in the market. Recently, Coingecko had to tweak its algorithms to cope with that very problem.</p><p>What I could do to get more faithful data is to rely directly on Stellar DEX trades history, which I will probably do the next time.</p><h3>Possible Improvements</h3><p>The following factors weighted negatively on the performances against the average and some could get mitigated:</p><ul><li>During the test phase, algorithms used to contain flaws that noticeably led to several losses that would not happen using the current algorithms.</li><li>Sometimes, offers are not picked due to low liquidity. In particular, the portfolio heavily relied on WSD &amp; EURT which are difficult to sell in time.</li><li>The average is computed against USD, but the balanced portfolio had 33% of CNY+EUR which happened to lower by about 8% against the dollar over the year.</li><li>For the last sequence, the average is arguably over-evaluated by a couple of percents.</li></ul><h3>Conclusion</h3><p>To conclude, we can see that Equilibre.io has been able to deliver consistent results over the whole period.</p><p>For a complete year, even during the early development stage, no obvious flaw hurt its performance.</p><p>Those results are on par − and in some case better − than professional tools currently available on the market.</p><p><em>… To be continued …</em></p><blockquote><strong><em>About the Charts</em></strong></blockquote><blockquote>Most of the charts in this article can’t be found directly on Equilibre.io: I coded new tools especially for the present analysis. Eventually, they’ll make their way into the publicly available interface.</blockquote><blockquote>All historical prices are from <a href="https://coingecko.com/">Coingecko</a> open API. I halved assets &amp; indexes performances to scale with the fact that GAWO…XNV2 only has a 50% exposure to crypto.</blockquote><blockquote>For example, an asset that had a performance of -30% is drawn at -15%, and an asset that had a performance of 20% is drawn at 10%. This scaling is meant to ensure the consistency of the figures &amp; their graphical representation.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdae5de06449" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/equilibre-io-in-depth-analysis-after-one-year-of-rebalancing-bdae5de06449">Equilibre.io: In-Depth Analysis After One Year of Rebalancing</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beta Release: Equilibre.io Portfolio Balancer]]></title>
            <link>https://medium.com/cosmic-plus/beta-release-equilibre-io-portfolio-balancer-b6995493fa55?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6995493fa55</guid>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[application]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Sat, 16 Feb 2019 21:08:39 GMT</pubDate>
            <atom:updated>2019-02-16T21:08:39.721Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the 1-year birthday of Cosmic.Link &amp; Stellar Authenticator! For this event, I invite you to discover the first </em><a href="https://medium.com/cosmic-plus/one-year-later-walletless-stellar-applications-are-finally-coming-238a8aa368b2"><em>wallet-independent</em></a><em> software for Stellar − which is the goal I’m aiming at </em><a href="https://medium.com/cosmic-plus/a-standardize-way-of-handling-stellar-transactions-4dd35382eda1"><em>since I joined</em></a><em> the Stellar developer community.</em></p><p>Equilibre.io is a portfolio balancer: it let you define how you want to distribute an investment over various assets, and help you passing the required transactions. This is the first of its kind to be released on Stellar DEX.</p><p>I wrote the first version of the rebalancing algorithm for my own needs in April 2017 &amp; fined-tuned it since then. This is a very convenient tool to manage long-term positions. I hope you’ll enjoy it as much as I do :)</p><p>Let’s take a tour together!</p><p>Direct Link: <a href="https://equilibre.io/">https://equilibre.io</a></p><h3>Step 0: Acknowledge that this is a beta release</h3><p>Beta means the software is not fully stable yet, and is still under testing &amp; development. The core features are available and are ready to be used. However, I’ll ask you to double-check the transactions before signing them, and to let me know any issue you may encounter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwPOaditC0y1aZW-1kyTbw.png" /></figure><h3>Step 1: Login</h3><p>You log-in with your public key, your federated address (user*example.org) or your Ledger Walllet. A wallet-independent software such as Equilibre.io let you use your usual Stellar account: no need to create a new one.</p><p>If you don’t have a Stellar account yet, you can take a look at the interface using mine: simply click “demo” in the footer of the page. Of course, you won’t be able to validate your changes: this is a read-only mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GjFHf_VAnsQQ88eI_EowMw.png" /></figure><h3>Step 2: Check your balances</h3><p>The first tab of the application let you check your balances. You can display them as a pie chart, and historical prices chart appears when you click on an asset.</p><p>Note that if you have several anchors for a given asset (e.g.: BTC), it will get aggregated under one entry. For your comfort, Equilibre.io will transparently aggregate orderbooks &amp; pick the best trades for your asset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tkPlLF3VzdSEXfX7KZf8w.png" /></figure><h3>Step 3: Re-balance your portfolio</h3><p>The second tab is were the magic happens. Select each of your asset, and set it to balance as an “Equal Share”. The algorithm compute a transaction that convey your order in a blink.</p><p>Now, tweak percentages until you find what you think is perfect balance. “Apply” your template then “Rebalance”. The Cosmic.Link side-frame pop &amp; invite you to validate the transaction that will re-balance your portfolio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G5wbvWKfOLYCZfGQAEfHNQ.png" /></figure><p>Here, there are four possibilities:</p><ul><li>You use Stellar Authenticator or Ledger Wallet: it’s as simple as signing the transaction.</li><li>Your wallet can sign a transaction XDR: Select “copy/paste XDR” in the signing method form to get the transaction XDR.</li><li>You know your private key: You can sign with it using Stellar laboratory. Or you can create a Stellar Authenticator account and import your private key in it.</li><li>You can’t access your private key: I advice you get another wallet ;)</li></ul><p>Giving your private key goes against the philosophy of a wallet-independent application. The whole point of this solution is that you can use various softwares without having to take the unacceptable risk of allowing full control over your account. However, if the wallet you’re using doesn’t let you sign arbitrary transaction, the alternative is taking risks, staying jailed, or changing wallet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84XBbcIHHljxN7yktpLLDQ.png" /></figure><h3>Step 4: Check that offers were validated correctly</h3><p>The third tab let you check the pending rebalancing operations. Indeed, most trades will not get completed right away.</p><p>Most of the trading pairs on the Stellar Decentralized EXchange are illiquid. If Equilibre.io were programmed to buy assets at market price, we would pay significant fees due to the market spread (the difference between buyer &amp; seller price). To avoid that pitfall, Equilibre.io pass offers at fair prices, and you then need someone to take them.</p><p>If an offer is not taken after a day, it will be marked as “outdated” and the next rebalancing operation will replace it. To take full advantage of the rebalancing process, I advice that you run it on a regular basis: daily, weekly or monthly for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FeYckyNDBrj1ftED1u0Xg.png" /></figure><h3>Step 5: Feedback &amp; Donations</h3><p>The whole point of publishing a beta version of a software is to receive early feedback. Please let me know about your experience with Equilibre.io. The footer of the application provide links to various social media were you can reach me.</p><p>You’ll also see a donation icon. While Equilibre.io is free-of-charge, its development isn’t. It took me a year at full-time to create the various components that made this application possible (including Cosmic.Link &amp; Stellar Authenticator). Coding great tools is up to me, keep the groove going is up to you ;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*uIjOCtgx4-1T7Upipthl0g.png" /></figure><h3>Thank You For Testing!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6995493fa55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/beta-release-equilibre-io-portfolio-balancer-b6995493fa55">Beta Release: Equilibre.io Portfolio Balancer</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Year Later: Walletless Stellar Applications Are Finally Coming]]></title>
            <link>https://medium.com/cosmic-plus/one-year-later-walletless-stellar-applications-are-finally-coming-238a8aa368b2?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/238a8aa368b2</guid>
            <category><![CDATA[events]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Wed, 23 Jan 2019 15:00:16 GMT</pubDate>
            <atom:updated>2020-01-23T20:35:03.298Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbCHW_kDI0JqugB-kRmCdg.jpeg" /><figcaption>(Photo by <a href="https://unsplash.com/photos/ha56hDUZuik?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Frame Harirak</a>)</figcaption></figure><p>Exactly one year ago, I wrote an article called <a href="https://medium.com/cosmic-plus/a-standardize-way-of-handling-stellar-transactions-4dd35382eda1">“A Standardized Way Of Handling Stellar Transactions”</a>. It was the synthesis of several ideas floating around in the community &amp; described a secure way for independent applications to interact with Stellar wallets. You can think about it as a way to give Metamask-like capabilities to any Stellar wallet.</p><p>I think now is a good time to sum up &amp; give a hint about what’s coming.</p><h3>What Happened Since A Year?</h3><p>Back when I wrote that article, I hoped that someone would take on the job. Some interested developers helped me to refine the concept, which was great. However, no one showed up to code that thing. I decided to put myself at work. One month later I released the <a href="https://stellar-authenticator.org/">Stellar Authenticator</a> wallet &amp; the Cosmic Link <a href="https://medium.com/cosmic-plus/understanding-cosmic-links-ee2ace259671">transaction request protocol</a>. At first, it was a simple proof-of-concept, but it won a prize in Stellar Build Challenge #6 that gave me room to go ahead improving it.</p><p>It was not a trivial task, mainly because I had to teach myself JavaScript first (v_v). Fortunately, I’m a seasoned coder and all went perfectly fine after dozens of hours of research and a few complete rewrites :).</p><p>The definitive design is a bit different from what I proposed in the original article, mainly on two points:</p><ul><li>Query strings &amp; real URLs (https://example.org/?payment...) are used instead of custom URI scheme (stellar:payment?…); This is a general trend in web technologies. It is more secure, decentralized and allows to support web wallets as well as native ones.</li><li>The idea of a unique ultra-secure wallet has been abandoned for an implementation that allows any existing wallet to implement the protocol; Trying to compete against existing wallets would have raised too much friction, while the priority was to make walletless applications available as soon as possible.</li></ul><p>I released a fully functional beta version for both software that summer and I earned another SBC prize. While I initially planned to publish the stable versions by the end of 2018, I’m not there yet because I had to delay the few last missing pieces to focus on… Well, I guess we’ll talk about it later.</p><p>In practice, however, everything is already stable since several months. Signing into Lumenaut inflation pool with a compatible wallet needs no voodoo:</p><blockquote><a href="https://cosmic.link/?setOptions&amp;inflationDest=GCCD6AJOYZCUAQLX32ZJF2MKFFAUJ53PVCFQI3RHWKL3V47QYE2BNAUT"><em>https://cosmic.link/?setOptions&amp;inflationDest=GCCD6AJOYZCUAQLX32ZJF2MKFFAUJ53PVCFQI3RHWKL3V47QYE2BNAUT</em></a></blockquote><h3>Alternatives</h3><p>As I said ideas that led me there were already floating around. Even while nobody initially showed up to implement them, a few alternatives popped out later that year. I think some of them are worth mentioning here:</p><p><a href="https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0007.md"><em>SEP-0007</em></a> is a CosmicLink alternative that has been proposed shortly after SBC#6 by Nikhil Saraf from Inter/stellar (ex lightyear.io). I think that this happened mostly because back then CosmicLink was perceived as a centralized (= under control) protocol. In fact, this is not the case but the way the whole thing would work was not so clear yet.</p><p>SEP means Stellar Ecosystem Proposal, and it is a kind of official standard. This is definitely something we need here. However, this alternative suffers from consequent drawbacks. The more obvious one being that is can’t properly support web wallets. Hopefully, that’s going to get solved in a new iteration.</p><p><a href="https://id.stellar.expert/"><em>Stellar Expert ID</em></a> is a wallet by OrbitLens that pushed the challenge further by implementing login &amp; message signing capabilities. While being a proof-of-concept, it won an impressive prize at SBC#7. I think there are a few ideas there that are going to make a long way, and I guess you’ll hear about it before long…</p><h3>Non-Competitive Strategy</h3><p>I figured out that if I wanted my marathon to success, I had to go for a non-competitive strategy. The goal of all this work is to enable users to access different Stellar applications without putting their funds at risk. In the end, it doesn’t really matter if they do so using this or that wallet or protocol.</p><p>That’s why the <a href="https://cosmic.link/">Cosmic Link website</a> and the <a href="https://github.com/cosmic-plus/node-cosmic-lib">underlying library</a> can support any wallet that comes to accept arbitrary transaction requests. In case it requires an alternative protocol, I’ll get you covered. In fact, full compatibility with Ledger Wallet, SEP-0007 and Stellar Laboratory is already achieved.</p><p>All the software I released are under the MIT permissive license, which makes it possible for everybody to read, copy, edit and distribute. When it comes to improving the whole “ecosystem”, I think cooperation is the key.</p><h3>Today’s Challenge: Bootstrapping Adoption</h3><p>Initially, I expected the developer community to add CosmicLink support as soon as it would become stable enough and documented. After all, this is a unique piece of code that brings a level of safety that no other blockchain project proposes.</p><p>However, a protocol such as Cosmic Link is subject to the famous network effect − nobody has the incentive to use it as long as nobody uses it. Walletless Stellar services are now possible, but there’s a missing piece: a first application that demonstrates it.</p><p>Hence this is my duty to provide you with such software. This is called Equilibre.io. This is a portfolio balancer for the Stellar DEX. This is going to be beta-released for the birthday of Cosmic Link’s proof of concept, February the 16th.</p><p>And I hope you’ll find it awesome :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=238a8aa368b2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/one-year-later-walletless-stellar-applications-are-finally-coming-238a8aa368b2">One Year Later: Walletless Stellar Applications Are Finally Coming</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Standardized Way Of Handling Stellar Transactions]]></title>
            <link>https://medium.com/cosmic-plus/a-standardize-way-of-handling-stellar-transactions-4dd35382eda1?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4dd35382eda1</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[essay]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Wed, 23 Jan 2019 10:55:39 GMT</pubDate>
            <atom:updated>2019-01-23T11:20:08.851Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published the 22 January 2018 on Steemit, this article led to the creation of Stellar Authenticator and Cosmic Links.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1shYJoeAaRbk5LpTTlvTw.jpeg" /><figcaption>Just an idea… (photo by Fachy Marín)</figcaption></figure><p>I’m trying here to wrap up my thought about the issues discussed here: <a href="https://galactictalk.org/d/803-idea-default-link-protocol-handler-in-stellar-applications">https://galactictalk.org/d/803-idea-default-link-protocol-handler-in-stellar-applications</a> And there: <a href="https://galactictalk.org/d/806-about-web-wallet-and-security">https://galactictalk.org/d/806-about-web-wallet-and-security</a></p><p>Although I’m quite affirmative in this paper, I invite you to read it as a work in progress and a proposal. You’re very welcome to contribute and critic on our board: <a href="https://galactictalk.org/d/819-a-standardized-way-of-handling-stellar-transactions">https://galactictalk.org/d/819-a-standardized-way-of-handling-stellar-transactions</a></p><p>Basically, there’s two different ideas:</p><ul><li>We need a standard protocol to allow stellar payment through an URI scheme similar to mailto:<a href="/service/mailto:me@example.org">me@example.org</a></li><li>We need a secure way to sign transactions instead of relying on multiple web interfaces and applications for security reasons.</li></ul><p>I actually did bring the second point, and while reading the first post I found both things go very well together.</p><h3>Default link protocol</h3><p>Torkus showed that we don’t even need to define a new standard: what we need to do is simply translating a Stellar transaction definition in a URI semantic:</p><blockquote><em>stellar:{operation}?{parameters}</em></blockquote><p>So here’s how you would ask for payment on your website:</p><blockquote><em>stellar:payment?destination=me*mysite.org&amp;amount=10.00</em></blockquote><p>Torkus showed that this simple solution allowed us to handle any kind of Stellar transaction. For instance, you could invite for inflation votes:</p><blockquote><em>stellar:setOptions?inflationDest=mysite</em></blockquote><p>I really enjoy this kind of simple and elegant solution. Now, I wonder how this could be made real.</p><h3>Standard transaction signing</h3><p>The issue revolve around the fact that you should never give your seed. Putting it in a web page — even if promised that it won’t be actually sent — is a weak design as getting accustomed to this will undoubtedly open the possibility of very profitable cracks or simply reward dishonest wallet provider for cheating their customers.</p><p>We can’t fully rely on hardware wallet aswell as this is costly Stellar aim to bring inclusion to the unbanked.</p><p>All this lead me to a simple idea: we need a standard little piece of software that allow us to sign transaction and to keep the seed safe. Because it would be its only purpose, the actual code could be light and as such easily reviewable. Because it would be standard, a growing number of competent service would rely on it and as such will eventually review it. Such program could ideally be developed by the Stellar Developer Foundation, or maybe someone trusty central to the project.</p><p>I actually got a Ledger nano S, and to use it on my phone I had to download a little piece of software that make the USB bridge functional. Then I can go on myetherwallet and sign transactions and so on.</p><p>I would imagine this new program I’m talking about as a software equivalent of this process. As phones are the most widespread computers in the world, I would assume it would be a platform of choice to handle such software. I assume google/apple cloud sync are safe enough to backup the seed encrypted and allow users to simply sign with a pin code the same way I do with exchange applications for instance. Keypoints here is protect the seed over phone loss and pin signing. A kind of Authy for Stellar network. This would simplify further the process by keeping it secure enough, which’s critical for mass adoption.</p><p>As for insecure-by-design platforms such as Windows, maybe it should somehow be configured to transmit the transaction to be signed to your own cellphone.</p><h3>Combining the two ideas</h3><p>Now that we have our default URI scheme and our standard signing program, let’s see why it goes so well along.</p><p>Any website could now propose various transaction or payment without putting users security at risk; without even having to think about it: what a comfort! Confidence is the keyword here, a major issue to get solved isn’t it?</p><p>Imagine an ICO selling token this way:</p><blockquote><em>stellar:manageOffer?selling=XLM&amp;buying=TOKEN&amp;amount=1&amp;price=50</em></blockquote><p>Note that this refer to the transaction the user will actually emit.</p><p>All you need is a form were user input the amount and that return the proper URI for the transaction :) A very explicit window would write in big letters and in human language the actual transaction to be made, and would ask for your pincode to confirm.</p><p>But there’s more :)</p><p>Nowadays, a lot of energy and part of Stellar funding go to the creation of multiple wallet application and exchange service that all need to implement their own way to sign transaction.</p><p>Now, we’ve discussed how this is actually flawed design at a safety level. The beauty of this fix is not only we can bring back safety and confidence: it changes the very idea behind wallet and service provider as they would truly become what they should be: front-ends for the low-level secure-by-design Stellar protocol.</p><p>As programmers will be freed of the hassle to implement a secure signing solution, they would actually get more time to implement what will actually make their service shine.</p><p>For instance, exchange platform job would be to get and organize market data in the best possible graphical way, and to generate for us the adequate Stellar transaction link when we want to place an order. Doesn’t it feel fresh and elegant?</p><p>What I’m pointing here is that this solution wouldn’t actually cripple service expansion, on the contrary it would fuel them by making their job easier and their production secured by design.</p><p>As for the user, it would allow direct authentication on any such service using the signing program directly. No more need to create multiple account to discover this and that, or to screw around with mails and stuff. You just get your entry card to every service at once, putting aside customer retention and allowing the competition/cooperation game to perform its best.</p><p>Last but not least, as all those service would rely on the signing program, they would have both an incentive and enough skill to review its code. Our safety will be secured by the very same social mechanism that secure the blockchain itself: giving incentive to each node to make it work the best.</p><p>:)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4dd35382eda1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/a-standardize-way-of-handling-stellar-transactions-4dd35382eda1">A Standardized Way Of Handling Stellar Transactions</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Cosmic Link]]></title>
            <link>https://medium.com/cosmic-plus/understanding-cosmic-links-ee2ace259671?source=rss-dc9a197be2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee2ace259671</guid>
            <category><![CDATA[stellar]]></category>
            <category><![CDATA[application]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Mister Ticot]]></dc:creator>
            <pubDate>Thu, 26 Jul 2018 23:26:29 GMT</pubDate>
            <atom:updated>2020-07-15T14:19:08.281Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*l_7vwDdT-5eAx90C_rAl8Q.png" /></figure><p><em>In this article I’ll explain the motivation behind the creation of cosmic links and how it can improve the Stellar ecosystem as a whole. I’ll then cover the minimal requirements to support them. I’ll describe how we could implement a login interface to complete this scheme. Finally I’ll talk briefly about possible additional steps to secure better the whole thing.</em></p><h3>Why Cosmic Link ?</h3><p>The Stellar ecosystem is constantly growing and is now made of dozens of services, soon to become hundredth. As creativity and innovation unfold, we can note a few things:</p><ul><li>A lot of services implement their own wallet, mostly because they somehow require the user to sign a significant amount of transactions. While this could make senses for some of them, like sophisticated wallets with DEX access, we may question whether this is generally a desirable thing. If we think about it, having 50 different “light wallets” — and having to create a new accounts / new wallets each time we want to try a new service — leads to a sub-optimal user experience. And to a fragmented ecosystem. Ideally, I would create one wallet and I would access to the whole thing.</li><li>Some are “solving” this by asking for our private keys. This is bad: we all know it. One should <strong>never</strong> share its private keys. Spreading this habit leads to dramas each time scammers enter the place. Won’t do well with public adoption. I’d like to underline here that the Stellar very official account viewer actually asks for private keys; So unfortunately they gave the wrong example here.</li><li>A few other services are using XDRs. Now this is good, but we know that this is not really user friendly. Hopefully we can make the experience a bit more pleasant.</li></ul><p>My point is not to judge or criticize anybody for its design choice. In the current context, those are basically the tree options you have to deal with. I’m simply trying to consider the situation at an higher scale, and look at what can be done to make it better.</p><p>So. Three things are limiting our ecosystem potential here : first, we end up coding the same thing again and again (wallets) — second, it may not be safe and easy enough for public adoption to follow — third, users are getting jailed. Now, securing your userbase is certainly a good thing to do. But you want them to stay because you got an innovative high-quality service, not because the ecosystem is fragmented by entry/exit frictions, right?</p><p>If you don’t get me here’s the thing: When people are sharing their new wonderful SBC projects, I get curious and click on the link. Then it asks me to create an account. Then I close the tab. I guess you know what I’m talking about. And the same thing likely happens at your door until the day you offer a fully-functional service built on top public key logins. That is, you allow anybody to use your service whichever wallet she have.</p><h3>Let’s open the door</h3><p>The Cosmic Link protocol have been specifically designed to bypass those limits. How? By allowing you to pass on transaction to other services, and to receive them as well. It is utterly simple: you take a transaction object and you rewrite it as an URI query. Everybody can handle it. The implementation had to be that straightforward, because we’re talking about establishing a common language here. So you get something like:</p><blockquote><a href="https://cosmic.link/?payment&amp;amount=100&amp;destination=tips*cosmic.link"><em>https://cosmic.link/?payment&amp;amount=100&amp;destination=tips*cosmic.link</em></a></blockquote><p>Or maybe like:</p><blockquote><a href="https://cosmic.link/?transaction&amp;operation=manageData&amp;name=migrated&amp;value=true&amp;operation=setOptions&amp;homeDomain=anywallet.org"><em>https://cosmic.link/?transaction&amp;operation=manageData&amp;name=migrated&amp;value=true&amp;operation=setOptions&amp;homeDomain=anywallet.org</em></a></blockquote><p>And sometimes it is like this:</p><blockquote><a href="https://cosmic.link/?xdr=AAAAAL2ef/Z7FpGtgUvkKaEg3uvy9IH+T9chWSUhQILKTk/NAAAAZAEMX34AAAADAAAAAAAAAAAAAAABAAAAAAAAAAUAAAABAAAAAIQ/AS7GRUBBd96ykumKKUFE92+oiwRuJ7KXuvPwwTQWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==&amp;network=public"><em>https://cosmic.link/?xdr=AAAA...AA==&amp;network=public</em></a></blockquote><p>It’s simply following the way we already write transactions in other libraries. What is important is that everything is in the query part of those URL. The domain could be anything else. Note that in some cases the source account is not specified, which means the link can be signed by anybody. It also means that we need some way to find out the public key and the right wallet after the link is clicked.</p><p>Around those simple links, we can build three different kind of applications:</p><ul><li>Wallets: allow users to sign those transactions.</li><li>Non-wallet services: are issuing transactions to be signed in wallets.</li><li>Relay: may act as an articulation between those two.</li></ul><p>So we can secure each one private key in one and only one wallet, while the whole ecosystem of applications remains available to everybody. We may login using public keys and any transaction to be signed would be relayed back to our wallet. Simple, elegant and ahead of the industry standards.</p><p>Relays are website like <a href="https://cosmic.link/">https://cosmic.link</a> that exclusively focus on accepting a transaction-as-query and setup redirection toward each one wallet. This solve the cases were the link issuer have no idea which wallet they should point to. At first, I envisioned the system to work like this:</p><p><em>(Warning: this may hurt your eyes)</em></p><pre>Non-wallet service 1 — — \        / — — -&gt; Wallet 1<br>Non-wallet service 2 — — — -&gt; Relay — — — — -&gt; Wallet 2<br>Non-wallet service 3 — — /        \ — — -&gt; Wallet 3<br>Static documents — — — -/<br>Social medias — — — — — /<br>Emails — — — — — — — — /</pre><p>Of course you immediately get the problem here: we got a single point of failure. Fortunately in most cases we won’t need a relay at all. The simple solution is to offer to select your wallet at login time. Eventually, this may be done automatically, for example by asking the relay to contact the wallet the very first time in order to enable a direct connection afterward.</p><pre>Non-wallet service 1 — — -+ — — -&gt; Wallet 1<br>Non-wallet service 2 — — -+ — — -&gt; Wallet 2<br>Non-wallet service 3 — — -+ — — -&gt; Wallet 3<br>                         /<br>                Relays -/<br>First login ever — -/<br>Static documents — /<br>Social medias — — /<br>Emails — — — — — /</pre><p>As <a href="https://cosmic.link/">https://cosmic.link</a> and all the related code is open-source, we can assume that multiple relays will popup over time. Maybe not hundred of them, because it would be self-defeating, but likely a dozen or so. Actually, it’s part of the road map to make it easy to do. It’s not unrealistic to imagine big player setting up their own home-secured relay, for instance.</p><h3>Implementation</h3><p><strong>XDR Links</strong></p><p>Cosmic links offer two level of implementation, which makes them more likely to spread around. The first level is using the XDR encoded links. Those are the most easy to handle for a wallet, but the more difficult to emit because it needs a stellar library and some technical knowledge to do so:</p><blockquote>…?xdr={XDR}&amp;network={public|test}</blockquote><p>You’re likely already working with them as it is a standard way to encode Stellar transaction in all official libraries. Now I added three options, that a wallet could eventually accept:</p><ul><li>&amp;stripSignatures: Remove the signatures when parsing the transaction.</li><li>&amp;stripSequence: Remove sequence number when parsing the transaction. Meaning it can be signed anytime in the future, possibly several times. Imply &amp;stripSignatures.</li><li>&amp;stripSource: Remove the source account when parsing the transaction. Meaning it can be signed by anybody, possibly several times. Imply &amp;stripSequence and &amp;stripSignatures.</li></ul><p>This is easy to implement and it opens up a bit the field of possibilities: for example if I am an exchange I could emit ‘&amp;stripSource’ links for an user who didn’t logged in at all and let the relay do the work. This simple syntax allows to write virtually any possible cosmic link using XDR only. This way, non-wallet services which already deal with Transaction objects can implement cosmic links cheaply, and wallet can accept them cheaply as well.</p><p><strong>Readable Links</strong></p><p>The second format is now implemented in JavaScript with <a href="https://github.com/MisterTicot/js-cosmic-lib">js-cosmic-lib</a>. This is not such a trivial task, as it’s around 4000 lines of code including comments. The lib is under 80KB, though. While it depends on js-stellar-sdk, this dependency will become optional at some point in the near future.</p><p>There’s a huge benefit having a simple syntax, accepting federated address and covering all the possible transaction one would like to write: it’s easy to use, and it’s way shorter. You need it for smaller QRcodes. You need it in your JavaScript widgets. You need it anywhere the URI is actually going to show its face. Mail, Twitter, Facebook and so on. It also allows to show the transaction description directly in the social medias. In fact, it is bound to become viral:</p><h3>Mister Ticot on Twitter</h3><p>https://t.co/5Gw1iirHxH</p><p>Now for a wallet it’s an optional thing. If you don’t implement it, a relay will translate into XDR links for you. We don’t loose so much decentralization here, as most transaction-heavy services are likely to use XDR links, and social medias and static documents links are not going to point to any particular wallet anyway.</p><p>I expect the second syntax to be implemented in wallets more gradually, while the first format them to enter the game as soon as now.</p><h3>Toward a standard login interface</h3><p><em>Note: while the Cosmic Link protocol is fully implemented, the login interface is still a proposal at that time.</em></p><p>The minimal requirement upon which a we can build a standard login system into non-wallet services is:</p><blockquote><a href="https://nonwallet.io/?publicKey=...&amp;walletUri=...&amp;protocol=">https://nonwallet.io/?publicKey=...&amp;walletUri=...&amp;protocol=</a>...</blockquote><p>The transaction query will simply have to be passed to ‘walletUri’. Again, this is only a few lines of code away. Some one-liner made available from the lib would certainly help, though.</p><p>The protocol field allow to define if a wallet supports only XDR format or both formats. It’s also here for the future implementation of SEP-0007 links, which’s an alternative that quickly followed cosmic links. While it is a bit tricky to implement, it’s the Stellar official thing and it’s going to get fully supported by js-cosmic-lib in the following months for compatibility purpose.</p><p>Now let’s see the login interface for the wallet:</p><blockquote><a href="https://wallet.io/?sharekeys&amp;url=nonwallet.io">https://wallet.io/?sharekeys&amp;url=nonwallet.io</a></blockquote><p>Would lead to a page where the user would have to confirm that he wants his public key to be shared. After that the value is passed to non-wallet which would hopefully record it for future usage, effectively short-cutting the relays.</p><p>It is also possible that various wallets start to offer direct links to partner/most interesting third-party services, making the process even simpler.</p><p>As a side-note: the term login here refer to the well-known user interface. Technically, this is <em>not</em> a login, as the user is not formally identified as the owner of a given Stellar account. This is only a way to pass a public key. A true login would consist of signing an unique piece of data with the private key and pass it back. Maybe a different name could help underline this important distinction.</p><h3>Security</h3><p>What we’re trying to achieve here is of course a more friendly and more secure environment. There’s not point in the protocol I’m describing if it doesn’t achieve that. Clearly, I don’t feel like accepting the never-ending stream of wallet breaks and private keys thefts as something that have to happen in our space.</p><p>The present protocol already allow to secure one’s private keys, and to remove any risk from using non-wallet services. And the whole implementation is open-source. This is greatly reducing the surface attack. Now we’ll have to address a few more situations:</p><ul><li>Server crack / DNS attacks : Get the private keys by cracking into wallets server, redirecting to wrong transactions and so on.</li><li>Phishing attacks: A link looking familiar brings you to a copy of a website and tries to trick you into signing the wrong transaction.</li><li>Spam, scam, good old tricks: Luring people into signing wrong transactions by promising various things and so on.</li><li>Self-hacked wallets: ==(G_G)==</li></ul><p>To begin, one will notice that the luring part have a lot to do with education. It is easier to lure a naive uneducated user into signing something inappropriate. When talking about massive adoption, one should remember we should not ask too much either, but having clear and informative interface, some educative information here and there and promoting good habit is certainly important and have to be mentioned here.</p><p>A lot of thefts that went with the internet rise were actually related to abusing naive new users. Obviously we can expect the same thing to happen here.</p><p>Now whatever way we put it relays are going to one of the a prime target. The cosmic.link website have to offer the highest level of robustness, not only to resist attacks but also to set a high level of expectation among the ecosystem. The service is open-source, and the code is directly served from the GitHub repository through CloudFlare. It complies with coding good practices and web standard of security (SSL, HSTS, 2-FA).</p><p>My strategy is to implement various layers of protection as adoption grows. Along the way I intend to bring a few new tools into our toolboxes.</p><p>My first experiment was the little robot you see on the website. This is uniquely generated for your browser, and a phisher have no chance replicating it successfully. The feature actually need to be improved with the option of setting up some piece of text, but you get the idea. Hopefully we can build some good habit out of that kind of stuff.</p><p>The layer being currently implement is trivial: it involves the service being available offline and being installable and served locally.</p><p>The next layer is more ambitious. This will implement integrity checks and auditing contracts. The functionality will be made available stand-alone to the whole ecosystem. I’m not going to much into that as another article will follow along the release of a proof-of-concept this autumn. Basically, this will block links toward relays/wallets when they are not serving the files they are supposed to. This is a kind of a new thing and I can’t wait to having time to work on it :).</p><p>I’d like to name two security features on my short-term TODO list for js-cosmic-lib: DKIF and StellarGuard. Those are great tools and I’ll be happy to contribute to their propagation. The first one allows to have federated addresses served by third-party without security risk, thanks to address signing. The second one basically implement two-factor authentication into the ecosystem. So hopefully js-cosmic-lib will become a diffusion vector for that kind of clever innovations.</p><h3>Conclusion</h3><p>In this article, I tried to convey my vision of a more secure, more open and more accessible ecosystem. I know a lot of us are working toward this direction by various means, as this is obviously what will makes us successful as a group. I’d to see some reactions and hopefully some services jumping in. I’ve been working dedicate half of this year for this to happen. I expect the whole protocol to become widely supported by the end of the year. At least, it’s the delay I put on myself to have the implementation being fully polished.</p><p>While the protocol is complete, there’s a few more things to achive. The wallet-part of the library is already complete, that is converting/displaying/signing/sending. The non-wallet part, that is login and links generation routines, require further work. I’d like to make it as simple as possible to implement on that side.</p><p>Nothing is fixed, and I’m always willing to listen to feedback. Please feel free to step in and comment, criticize, challenge, ask for more information. If the whole thing is still blur for you, I’d like to know it so I can explain myself better in the future. I’m also available to help whoever needs support for implementing cosmic links in its service.</p><p>So. Let’s raise the level :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee2ace259671" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmic-plus/understanding-cosmic-links-ee2ace259671">Understanding Cosmic Link</a> was originally published in <a href="https://medium.com/cosmic-plus">Cosmic.plus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>