<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog on Antomor</title><link>https://antomor.com/blog/</link><description>Recent content in Blog on Antomor</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>dev@antomor.com (Antonio Morrone)</managingEditor><webMaster>dev@antomor.com (Antonio Morrone)</webMaster><copyright>© 2026 Antonio Morrone</copyright><lastBuildDate>Mon, 22 Jun 2026 10:00:00 +0200</lastBuildDate><atom:link href="https://antomor.com/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>Reorgs, Retries, and Race Conditions: Building a Bitcoin-Watching Off-Chain Service</title><link>https://antomor.com/blog/bitcoin-watchdog-reorgs-race-conditions/</link><pubDate>Mon, 22 Jun 2026 10:00:00 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/bitcoin-watchdog-reorgs-race-conditions/</guid><description>&lt;p&gt;I worked on a production off-chain service: a system that watches Bitcoin activity and coordinates downstream operations on Ethereum for a cross-chain interoperability system, with more than one independent operator watching and acting on the same chain activity. It&amp;rsquo;s a monitoring and coordination role, not custody or key management: the service observes Bitcoin, decides what that activity means, and triggers the corresponding action elsewhere. Getting that decision right, without producing duplicate downstream effects, in the face of a chain that can change its mind, turns out to be most of the engineering problem.&lt;/p&gt;</description></item><item><title>From EVM Events to Reliable Application State with Ponder</title><link>https://antomor.com/blog/indexing-onchain-events-with-ponder/</link><pubDate>Tue, 14 Apr 2026 10:00:00 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/indexing-onchain-events-with-ponder/</guid><description>&lt;p&gt;A chain doesn&amp;rsquo;t hand you application state, it hands you a stream of events with a footnote attached: this stream can be revised. &lt;a href="https://ponder.sh/" target="_blank" rel="noreferrer"&gt;Ponder&lt;/a&gt; is one good vehicle for turning that stream into state you can actually query and trust, but the tool is secondary to the problem. This post is mostly about the problem.&lt;/p&gt;&#10;&#10;&lt;h2 class="relative group"&gt;The problem&#10; &lt;div id="the-problem" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-problem" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;A block your service already processed can stop being canonical. An RPC node can tell you two different things about the same height five minutes apart. An application built to read &amp;ldquo;current state&amp;rdquo; directly off the chain on every request has no principled way to handle any of that; it just re-derives an answer each time and hopes the chain agrees with itself in the meantime.&lt;/p&gt;</description></item><item><title>Understanding Vault Standards: EIP-4626 and Beyond</title><link>https://antomor.com/blog/understanding-vault-standards-eip-4626-and-beyond/</link><pubDate>Wed, 20 Aug 2025 11:00:00 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/understanding-vault-standards-eip-4626-and-beyond/</guid><description>&lt;p&gt;While researching vault standards to inform the design of a planned vault product on Rootstock, it became clear pretty quickly that &amp;ldquo;use ERC-4626&amp;rdquo; wasn&amp;rsquo;t the whole answer. The base standard covers a lot, but it also assumes a specific shape (one share token, one asset, everything settling synchronously) that doesn&amp;rsquo;t fit every vault a real product might need. I put together an internal walkthrough for the team, covering ERC-4626 and the standards that extend it, for exactly the cases where the base spec runs out. This post is that walkthrough.&lt;/p&gt;</description></item><item><title>Cutting RPC Calls by 90%: Building an On-Chain Indexing Layer</title><link>https://antomor.com/blog/onchain-indexing-layer-rpc-reduction/</link><pubDate>Wed, 12 Mar 2025 11:00:00 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/onchain-indexing-layer-rpc-reduction/</guid><description>&lt;p&gt;At RootstockLabs, one of the products I owned the architecture for was the &lt;a href="https://app.rootstockcollective.xyz/" target="_blank" rel="noreferrer"&gt;RootstockCollective dApp&lt;/a&gt; (&lt;a href="https://github.com/RootstockCollective/dao-frontend" target="_blank" rel="noreferrer"&gt;frontend source&lt;/a&gt;) — a UI that needs to answer questions like &amp;ldquo;what&amp;rsquo;s this user&amp;rsquo;s balance,&amp;rdquo; &amp;ldquo;what has this contract emitted since block X,&amp;rdquo; and &amp;ldquo;show me the history of this account&amp;rdquo; on every page load. This is the story of how that UI went from asking the chain those questions directly, every time, to asking a decentralized indexing network instead — and why the process mattered as much as the destination.&lt;/p&gt;</description></item><item><title>Engineering Gasless Transactions: Smart Wallets, Meta-Transactions and the Boltz Integration</title><link>https://antomor.com/blog/engineering-gasless-transactions-boltz-integration/</link><pubDate>Wed, 20 Nov 2024 10:00:00 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/engineering-gasless-transactions-boltz-integration/</guid><description>&lt;p&gt;A new user shows up with an address and no RBTC in it. Every transaction, including the very first one, needs gas, and gas on Rootstock is paid in RBTC. &lt;a href="https://github.com/rsksmart/rif-relay" target="_blank" rel="noreferrer"&gt;RIF Relay&lt;/a&gt; removes that requirement: a user pays with a token they already hold, or gets the transaction sponsored outright, while a separate account submits it and pays the actual gas.&lt;/p&gt;&#10;&lt;p&gt;At RootstockLabs, I led the team that extended and productionized RIF Relay, including the smart-contract changes required to support &lt;a href="https://boltz.exchange/" target="_blank" rel="noreferrer"&gt;Boltz&lt;/a&gt;&amp;rsquo;s Rootstock integration, a non-custodial Bitcoin and Lightning swap service. This post covers how RIF Relay&amp;rsquo;s relay flow and smart-wallet architecture work, and what changed when a real integration stopped fitting the generic model.&lt;/p&gt;</description></item><item><title>Iterators &amp; Generators in Python</title><link>https://antomor.com/blog/python-iterators-generators/</link><pubDate>Sun, 25 Oct 2020 16:27:12 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/python-iterators-generators/</guid><description>&lt;p&gt;This post aims to describe the basic mechanisms behind iterators and generators.&lt;/p&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Iterator protocol&#10; &lt;div id="iterator-protocol" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#iterator-protocol" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;As in many programming languages, Python allows you to iterate over a collection. The iteration mechanism is often useful when we need to scan a sequence, an operation that is very common in programming.&#10;In Python, the iterator protocol involves two components: an &lt;em&gt;iterable&lt;/em&gt; and an &lt;em&gt;iterator&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Angular Dynamic Content</title><link>https://antomor.com/blog/angular-dynamic-content/</link><pubDate>Sat, 11 Apr 2020 10:51:42 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/angular-dynamic-content/</guid><description>&lt;p&gt;In many cases we need to change the content of a component dynamically — for instance, to allow the user to change view, or to let the children render data retrieved and processed by its parent component. Below, we are going to show some techniques for creating a component without deciding in advance how the data will be shown. According to the application&amp;rsquo;s needs, each technique has its own strengths, but all of them encourage component reusability. We are going to describe:&lt;/p&gt;</description></item><item><title>CSP and CORS</title><link>https://antomor.com/blog/csp-and-cors/</link><pubDate>Sat, 11 Apr 2020 10:51:20 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/csp-and-cors/</guid><description>&lt;h2 class="relative group"&gt;What is CSP&#10; &lt;div id="what-is-csp" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#what-is-csp" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;CSP stands for &lt;em&gt;Content Security Policy&lt;/em&gt; and it is a security mechanism that helps to protect or mitigate some common attacks such as XSS (Cross-site scripting). It can be set by means of a &lt;em&gt;Content-Security-Policy HTTP header&lt;/em&gt; or using an HTML &lt;em&gt;meta&lt;/em&gt; tag.&lt;/p&gt;&#10;&lt;p&gt;HTTP header:&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-txt" data-lang="txt"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Content-Security-Policy: policy&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;p&gt;HTML Meta tag:&lt;/p&gt;&#10;&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-txt" data-lang="txt"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;meta http-equiv=&amp;#34;Content-Security-Policy&amp;#34; content=&amp;#34;policy&amp;#34;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;p&gt;A &lt;em&gt;policy&lt;/em&gt; describes a set of directives, each composed of the area in which the rule is applied and the rule itself. The policy directive &lt;code&gt;default-src 'self'&lt;/code&gt; says to load all content from the site&amp;rsquo;s origin, while if we want to load content from the site and from another trusted domain, the policy would be &lt;code&gt;Content-Security-Policy: default-src 'self' *.trusted.com&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Angular and Rxjs Http Requests: Common scenarios</title><link>https://antomor.com/blog/angular-rxjs-http-requests/</link><pubDate>Thu, 09 Apr 2020 19:40:48 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/angular-rxjs-http-requests/</guid><description>&lt;p&gt;Any modern web application needs, sooner or later, to perform some http requests to retrieve data.&#10;Below, I&amp;rsquo;ll describe some common scenarios and how to perform such requests using &lt;a href="https://rxjs.dev" target="_blank" rel="noreferrer"&gt;RxJS&lt;/a&gt;.&lt;/p&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Single request&#10; &lt;div id="single-request" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#single-request" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;The most common scenario, no special rxjs handling needed, since Angular provides an Http service that returns an &lt;a href="https://rxjs.dev/api/index/class/Observable" target="_blank" rel="noreferrer"&gt;Observable&lt;/a&gt;.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-typescript" data-lang="typescript"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#a6e22e"&gt;services&lt;/span&gt;.&lt;span style="color:#a6e22e"&gt;getItems&lt;/span&gt;().&lt;span style="color:#a6e22e"&gt;subscribe&lt;/span&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;p&gt;Is that easy? Yes. In the particular example, I assumed the http service call was inside the &lt;code&gt;service.getItems&lt;/code&gt; method, but it could be a &lt;code&gt;fetch&lt;/code&gt; or anything else returning an observable.&lt;/p&gt;</description></item><item><title>Git: Move Files Retaining History</title><link>https://antomor.com/blog/git-move-file-with-history/</link><pubDate>Sat, 14 Mar 2020 12:28:03 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/git-move-file-with-history/</guid><description>&lt;p&gt;Some time ago we needed to create a new product that shares many features with the existing one. The first idea was to extract some of the code into a library, to be then imported and used independently in the two projects.&lt;/p&gt;&#10;&lt;p&gt;After creating the repository for the library, the first thing I would have done was copy the files from one repo to another. Well, it works like a charm, it&amp;rsquo;s fast, and it doesn&amp;rsquo;t require any particular expertise — a normal drag-and-drop operation. What&amp;rsquo;s more? It could be a very effective approach, but &amp;hellip;&lt;/p&gt;</description></item><item><title>Mongodb Query Profiler</title><link>https://antomor.com/blog/mongodb-query-profiler/</link><pubDate>Sat, 28 Dec 2019 18:06:38 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/mongodb-query-profiler/</guid><description>&lt;p&gt;Some months ago, I was creating a web page to show some aggregated data, but I soon noticed the API used to retrieve the data was very slow. After investigating the possible issue, we discovered the bottleneck: the database. The solution was to restructure the data to make it consumable from a web page.&lt;/p&gt;&#10;&lt;p&gt;Although I had sometimes used the SQL Server profiler, I had no experience with the MongoDB profiler, so here are the steps involved in analysing a MongoDB query.&lt;/p&gt;</description></item><item><title>Security Headers on Static Websites</title><link>https://antomor.com/blog/security-headers-on-static-websites/</link><pubDate>Thu, 26 Dec 2019 10:56:23 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/security-headers-on-static-websites/</guid><description>&lt;p&gt;When I started this blog, I evaluated many options:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;blogging platform vs static-generated website&lt;/li&gt;&#10;&lt;li&gt;self-hosted vs hosted solutions&lt;/li&gt;&#10;&lt;li&gt;costs&lt;/li&gt;&#10;&lt;li&gt;and many more.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;I ended up trying to build something very simple, consisting of a static website hosted on &lt;a href="https://pages.github.com/" target="_blank" rel="noreferrer"&gt;GitHub Pages&lt;/a&gt;.&#10;With this solution, I have been able to cut the cost of any hosting solution, since, being a dev, I am quite comfortable writing in a text editor. But soon some problems arose.&lt;/p&gt;</description></item><item><title>SPA deployment with GitLab</title><link>https://antomor.com/blog/gitlab-cd/</link><pubDate>Fri, 13 Dec 2019 10:53:54 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/gitlab-cd/</guid><description>&lt;p&gt;In the last few projects, I started using &lt;a href="https://about.gitlab.com/" target="_blank" rel="noreferrer"&gt;GitLab&lt;/a&gt;, not only as a git repository server, but also as a DevOps platform. So here I am going to describe a very simple architecture for deploying a single-page application using &lt;a href="https://www.docker.com/" target="_blank" rel="noreferrer"&gt;Docker&lt;/a&gt;, &lt;a href="https://docs.docker.com/compose/" target="_blank" rel="noreferrer"&gt;docker-compose&lt;/a&gt;, and &lt;a href="https://www.nginx.com/" target="_blank" rel="noreferrer"&gt;nginx&lt;/a&gt;.&#10;In this specific project I also used &lt;a href="https://docs.microsoft.com/en-us/dotnet/core/" target="_blank" rel="noreferrer"&gt;dotnet-core&lt;/a&gt; for the back-end API and &lt;a href="https://vuejs.org/" target="_blank" rel="noreferrer"&gt;VueJS&lt;/a&gt; as the front-end framework, but it is language-agnostic, meaning that you can replace whatever back-end or front-end you prefer.&lt;/p&gt;</description></item><item><title>Browser Extension Development</title><link>https://antomor.com/blog/browser-extension/</link><pubDate>Wed, 20 Nov 2019 17:15:01 +0100</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/browser-extension/</guid><description>&lt;p&gt;Web extensions or browser plugins can be used to improve browser functionalities. The following examples summarize the different goals they can have:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://noscript.net/" target="_blank" rel="noreferrer"&gt;no-script&lt;/a&gt; - to block script served from not-trusted domains&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://github.com/gorhill/uBlock#ublock-origin" target="_blank" rel="noreferrer"&gt;ublock Origin&lt;/a&gt; - it is &amp;ldquo;a wide-spectrum blocker&amp;rdquo;&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://addons.mozilla.org/it/firefox/addon/dark-mode-zen/" target="_blank" rel="noreferrer"&gt;dark-mode&lt;/a&gt; - it changes the appearance of web pages&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="https://addons.mozilla.org/it/firefox/addon/react-devtools/" target="_blank" rel="noreferrer"&gt;React Developer Tools&lt;/a&gt; - to inspect react-specific properties of a page that makes use of React.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&#10;&lt;h2 class="relative group"&gt;Anatomy of an extension&#10; &lt;div id="anatomy-of-an-extension" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#anatomy-of-an-extension" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;The main components of a browser extension are:&lt;/p&gt;</description></item><item><title>Let's Test</title><link>https://antomor.com/blog/lets-test/</link><pubDate>Sun, 25 Aug 2019 10:48:40 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/lets-test/</guid><description>&lt;h2 class="relative group"&gt;Preamble&#10; &lt;div id="preamble" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#preamble" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;This article is not intended to cover the whole &lt;em&gt;testing process&lt;/em&gt; due to its vastness. Having a glance at its &lt;a href="https://en.wikipedia.org/wiki/Software_testing" target="_blank" rel="noreferrer"&gt;Wikipedia page&lt;/a&gt; could give an idea of it. I am going to cover only the tip of the iceberg, but it is important to remember that bugs cannot be entirely eliminated from software — instead, they &lt;strong&gt;must&lt;/strong&gt; be discovered as soon as possible.&lt;/p&gt;</description></item><item><title>Getting Started With My Website :-)</title><link>https://antomor.com/blog/why/</link><pubDate>Sun, 14 Apr 2019 21:40:25 +0200</pubDate><author>dev@antomor.com (Antonio Morrone)</author><guid>https://antomor.com/blog/why/</guid><description>&lt;p&gt;Here in this post, I am going to explain &lt;em&gt;why&lt;/em&gt; I am starting to write something on the internet and what I am going to share. I am well aware that there are many sites today describing almost everything, but these are some of the reasons that drive me at this point:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;to improve my language skills;&lt;/li&gt;&#10;&lt;li&gt;to improve my online presence;&lt;/li&gt;&#10;&lt;li&gt;to receive feedback (feedback is the key to growing);&lt;/li&gt;&#10;&lt;li&gt;to share what I do (and how — I am also going to list some of my biggest mistakes).&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;&lt;em&gt;And what about the content?&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>