<?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 Ignacio Baixas on Medium]]></title>
        <description><![CDATA[Stories by Ignacio Baixas on Medium]]></description>
        <link>https://medium.com/@iobaixas?source=rss-45911e904404------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*t-49irSwB4lHERrKGVIgNg.jpeg</url>
            <title>Stories by Ignacio Baixas on Medium</title>
            <link>https://medium.com/@iobaixas?source=rss-45911e904404------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:02:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@iobaixas/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[The Inherently Centralized Nature of XRP Ledger]]></title>
            <link>https://medium.com/@iobaixas/the-inherently-centralized-nature-of-xrp-ledger-2dcb4f63e93c?source=rss-45911e904404------2</link>
            <guid isPermaLink="false">https://medium.com/p/2dcb4f63e93c</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[ripple]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Ignacio Baixas]]></dc:creator>
            <pubDate>Thu, 23 Aug 2018 19:51:50 GMT</pubDate>
            <atom:updated>2018-08-23T19:51:50.628Z</atom:updated>
            <content:encoded><![CDATA[<p>In his article <a href="https://ripple.com/insights/the-inherently-decentralized-nature-of-xrp-ledger/">The Inherently Decentralized Nature of XRP Ledger</a>, David Schwartz attempts to convince us all that XRP is more decentralized than Bitcoin and Ethereum. Basically the argument is <em>miners are centralized, we have many validators now, I began working on XRP Ledger more than six years ago</em>.</p><p>The post is well written and has nice charts, but is full of misleading information. Like comparing miners to validators without talking about bitcoin nodes, or talking about how good the “Ripple recommended UNL list” is in a post about decentralization… LOL.</p><p>There are many centralization related problems with Ripple: initial token allocation, blockchain size (well maybe thats a security feature), code repository control, to name a few. In this post I just want to address the one related to its mechanism design:</p><h4><strong>No skin in the game</strong></h4><p>The only incentive Ripple validators have is that they want XRP to succeed. This may be enough for a good actor (not very sustainable though), but it is far from real ‘skin in the game’. If you are an attacker that doesn’t care about the network, then the downside of a failed attack is not that high.</p><p>Because there is no cost to attack besides running a node, and we are told this is a real <em>decentralized</em> system, then an attacker should be able to summon a validator group and break consensus with a 21% attack (because Ripple requires 80% consensus). This shouldn’t be very difficult, at the time of this writing, there are only 737 validators registered at <a href="https://data.ripple.com/v2/network/validators">https://data.ripple.com/v2/network/validators</a>. Spawning 300 amazon medium instances plus storage costs about 10000 US monthly. But this can’t happen because how validators are chosen, more on that later.</p><p>In Bitcoin, the 51% attack Schwartz talks about means the attacker needs to put in stake enough energy to allocate more than half the hash rate, that’s about 35 TWh. Even if he manages to allocate that hashrate for enough time to do any damage, he risks users (nodes) not to relay his blocks, leaving the attacker empty handed and a huge electricity bill. It was shown in 2017 attempted Segwit2X fork that by selecting which blocks to accept and relay, user nodes can influence miner behavior. This is a simplified explanation, but basically any attack means a huge downside for the attacker and practically no cost for the defender.</p><h4><strong>Single point of failure</strong> (but don’t worry, you are safe… apparently)</h4><p>From Ripple consensus process explanation: <a href="https://ripple.com/build/xrp-ledger-consensus-process/">https://ripple.com/build/xrp-ledger-consensus-process/</a></p><blockquote>Validators are chosen based on the expectation they will not collude in a coordinated effort to falsify data relayed to the network</blockquote><p>So, Ripple relies in a validator selection process done by a third party… an error prone, easy to coerce third party. Currently the Ripple validator registry is the only trusted source of validators. The attacker could attempt to register the evil validators in there but, most likely, it will be rejected by Ripple Co. You can select any validator set you want, but you will probably won’t connect to a set validators from a source you don’t trust.</p><p>So, we are safe because we trust the validator source, this is because it is controlled by a trusted entity. We are safe because Ripple is a centralized solution at it’s core, and since it does not have a proper mechanism to incentivize good behavior in their validators, it will never be decentralized.</p><p>In Bitcoin, the node is encouraged to connect to as many nodes as it can, because the more nodes it connects, is less likely to get isolated inside a bad network. The whole network is incentivized to include the most validating actors it can, and there is no need for curating the validator set, because punishing bad actors is part of the design of the system.</p><h4><strong>The performance fallacy</strong></h4><p>Ripple falls for the same performance vs centralization fallacy as Bitcoin Cash, they believe that better performance at cost of lower validator/node adoption is ok.</p><p>Bitcoin it’s in the earlier stages of providing high transaction throughput via Lightning, a solution built as a second layer, that doesn’t compromise the core feature that is decentralization.</p><p>This is probably a personal preference, but I think that in cryptocurrencies, everything is second to decentralization. Cryptos are all about exiting the current system, for everything else there is Mastercard.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dcb4f63e93c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using restmod with ui-router]]></title>
            <link>https://medium.com/platanus/using-restmod-with-ui-router-e4e28cbddd77?source=rss-45911e904404------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4e28cbddd77</guid>
            <category><![CDATA[angular-ui-router]]></category>
            <category><![CDATA[angular-restmod]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Ignacio Baixas]]></dc:creator>
            <pubDate>Thu, 18 Dec 2014 05:00:00 GMT</pubDate>
            <atom:updated>2016-10-12T03:11:04.944Z</atom:updated>
            <content:encoded><![CDATA[<p>Here at Platan.us we love <a href="https://github.com/angular-ui/ui-router">ui-router</a>, it makes a great backbone for most angular applications.</p><p>One of the ui-router core features is resolve, resolve is an optional map of dependencies which should be injected into the controller. If any of these dependencies are promises, they will be resolved and converted to a value before the controller is instantiated. (see <a href="https://github.com/angular-ui/ui-router/wiki#resolve">ui-router Resolve</a>)</p><pre>angular.module(&#39;MyApp&#39;).config(function($stateProvide) {<br>  $stateProvider.state(&#39;myState&#39;, {<br>    resolve:{</pre><pre>// Example using function with returned promise.<br>      // This is the typical use case of resolve.<br>      // You need to inject any services that you are<br>      // using, e.g. $http in this example<br>      promiseObj:  function($http){<br>        // $http returns a promise for the url data<br>        return $http({method: &#39;GET&#39;, url: &#39;/bikes&#39;});<br>      },</pre><pre>// Another promise example. If you need to do some<br>      // processing of the result, use .then, and your<br>      // promise is chained in for free. This is another<br>      // typical use case of resolve.<br>      promiseObj2:  function($http){<br>        return $http({method: &#39;GET&#39;, url: &#39;/bikes&#39;})<br>          .then (function (data) {<br>            return doSomeStuffFirst(data);<br>          });<br>      }<br>    },</pre><pre>// The controller waits for every one of the above items to be<br>    // completely resolved before instantiation. For example, the<br>    // controller will not instantiate until promiseObj&#39;s promise has<br>    // been resolved. Then those objects are injected into the controller<br>    // and available for use.<br>    controller: function($scope, promiseObj, promiseObj2){<br>      // You can be sure that promiseObj is ready to use!<br>      $scope.items = promiseObj.items;<br>      $scope.items = promiseObj2.items;<br>    }<br>  });<br>});</pre><h4>The restmod way</h4><p>Since we usually build our apps on top of RESTfull apis, we use <a href="https://github.com/platanus/angular-restmod">Restmod</a> to build the model layer. Restmod usually returns unresolved objects instead of promises, to wait for a restmod object to be resolved during ui-router resolve phase we use restmod’s $asPromise method.</p><p>Given the following model definition:</p><pre>angular.module(&#39;MyApp&#39;).factory(&#39;Bike&#39;, function(restmod) {<br>  return restmod.model(&#39;/bikes&#39;);<br>});</pre><p>The ui-router state definition would look like this:</p><pre>angular.module(&#39;MyApp&#39;).config(function($stateProvide) {<br>  $stateProvider.state(&#39;myState&#39;, {<br>    resolve:{<br>      promiseObj: function(Bike) {<br>        // $search will return the collection and $asPromise<br>        // will transform it to a promise that gets resolved<br>        // when the collection is populated.<br>        return Bike.$search().$asPromise():<br>      },</pre><pre>promiseObj2: function(Bike){<br>        return Bike.$search().$asPromise().then(function(_bikes) {<br>          return doSomeStuffFirst(_bikes);<br>        });<br>      }<br>    },</pre><pre>controller: function($scope, promiseObj, promiseObj2){<br>      $scope.bikes = promiseObj;<br>      $scope.bikes = promiseObj2;<br>    }<br>  });<br>});</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4e28cbddd77" width="1" height="1" alt=""><hr><p><a href="https://medium.com/platanus/using-restmod-with-ui-router-e4e28cbddd77">Using restmod with ui-router</a> was originally published in <a href="https://medium.com/platanus">Código Banana: El blog de Platanus</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>