<?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 Davidson Souza on Medium]]></title>
        <description><![CDATA[Stories by Davidson Souza on Medium]]></description>
        <link>https://medium.com/@davidsonlucassouza?source=rss-afac53432ecf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Davidson Souza on Medium</title>
            <link>https://medium.com/@davidsonlucassouza?source=rss-afac53432ecf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:56:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davidsonlucassouza/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[Floresta Update: Simplifying Bitcoin Node Integration for Wallets]]></title>
            <link>https://medium.com/vinteum-org/floresta-update-simplifying-bitcoin-node-integration-for-wallets-6886ea7c975c?source=rss-afac53432ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/6886ea7c975c</guid>
            <dc:creator><![CDATA[Davidson Souza]]></dc:creator>
            <pubDate>Tue, 20 Aug 2024 18:59:15 GMT</pubDate>
            <atom:updated>2024-08-20T18:59:15.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*wgi7w4EYLOv2GPqa.png" /></figure><p>A year ago, I announced a project called Floresta, a fully validating Bitcoin full node powered by utreexo. Our goal was straightforward yet challenging: create a node implementation that offers full security and privacy, while significantly reducing the resource requirements compared to traditional full nodes like Bitcoin Core or btcd. Today, we’re excited to share the progress we’ve made over the past year with the support of Vinteum, culminating in the <a href="https://github.com/vinteumorg/Floresta/releases/tag/0.6.0">release of Floresta v0.6.0</a>, and we invite the community to test the software.</p><p>On mainnet, Floresta requires just around 800 MB of disk space and less than 300 MB of RAM to work, making it possible to run on a $15 Raspberry Pi Zero 2W, with 512 MB of RAM and an SD card slot. The CPU load is also remarkably low, even while processing blocks. More research is being done to reduce the time taken to bootstrap a node from scratch. For those interested in a deep dive into the technical details, take a look at <a href="https://blog.dlsouza.lol/2024/08/01/florestad.html"><strong>my deep-dive blog post</strong></a> about this topic.</p><p>When I first envisioned Floresta, I wanted to make a full node that could operate on any hardware (even in browsers, why not?). However, not everyone has the desire or means to run dedicated hardware, especially if it requires an internet connection that might not be reliable when they need it most. The most obvious way of incentivizing people to use a full node is by not requiring extra-steps to use it. That’s why in mid-2023 I introduced the idea of <em>libfloresta</em>. Rather than having Floresta as one single binary that people have to run along with their wallet, why not integrate it directly within the wallet? Floresta is compact enough that even if multiple wallet apps use their copy of it, the impact would be minimal. Thus, we refactored Floresta’s core into reusable libraries that that can be embedded within other applications. The florestad binary is just a program that parses the configuration and options, calling libfloresta’s internal functions.</p><p>Initially, I went for full customization, exposing all the bells and whistles. But after thinking about this a little more, I think it’s not a good idea to ask wallet implementations to rework all their chain backend. To drive adoption, changes must be as effortless as possible — a no-brainer. The current approach is inspired by LND’s embeddable mode that is used by Zeus wallet. With this mode, you can start an LND instance within your program, running in the background and responding to GRPC requests, just like a standalone node.</p><p>In our first post introducing Floresta, we highlighted the inclusion of an integrated Electrum Server from the start, a feature that will vastly facilitate the potential adoption by wallets. If you have a wallet that speaks Electrum Protocol (or even Core’s JSON-RPC), you just have to connect with the locally running <em>florestad</em>, and that’s it, no further adjustments are required to your blockchain backend. Your wallet, upon startup, will spawn <em>florestad</em>, encapsulated inside a simple function, and then connect with Floresta’s Electrum server to grab the data it needs, just like any electrum server.</p><p>From the user’s perspective, little will change. Maybe a little more waiting during the first run, especially for your balance to show up. However, this delay is minimal, and smart wallets could initiate florestad while users are setting up their wallet, such as entering their seed phrase or creating an in-app password. Notifications for wallet transactions and further speedups may be obtained if florestad is running as a background process, so it can keep working even if the wallet is closed. While these changes have a minimal impact on the user experience, they significantly enhance security and privacy. Let’s see how:</p><p><strong>Privacy</strong>: One major issue with Electrum is that it requires you to share the hash of all your scripts with an unknown server, that may or may not be logging this and doing something nasty with this info. You’re basically telling a stranger your transactional history, and that’s terrible!</p><p>If you run a node, you’re the server, so you’re not leaking any information to an untrusted third party. Floresta uses BIP158 compact block filters to search for your wallet’s historical transactions and monitor new blocks. Everything is done locally.</p><p><strong>Security</strong>: One of Bitcoin’s most fascinating properties is the fact you can have a level of security that once was only available to the people in power. You can verify that a payment is valid (you’re not receiving fool’s gold) without any special tool. You can make sure the monetary policy is being followed without needing to trust anyone’s information. But to achieve this, you have to run a node. Your security dramatically declines if you’re using someone else’s node. But running a node has historically been an onerous task, requiring a good 24/7 running computer and a good internet connection. Floresta changes that by enabling you to run a full node on almost any device, without hassle.</p><p>The new daemon and library have reached a stable release, with more features like a new async runtime, parallel sync support, and performance enhancements on the horizon. We’ll be rolling out additional updates in the near future, but for now, we’re excited to share this robust feature set with the community.</p><p><strong>Conclusion</strong></p><p>With Floresta integrated into wallets, users can leverage Bitcoin’s full capabilities without needing specialized hardware or technical know-how. Your full node will be wherever your wallet is. If your wallet is available, your node is also available. This has the potential to bring full ownership to many people around the world, with different levels of expertise, massively improving Bitcoin’s decentralization, privacy and censorship-resistance.</p><p>If you’re a Bitcoin wallet or application developer and see the potential benefits of Floresta for your project, let’s talk!</p><p><strong>Acknowledgments</strong></p><p>We’d like to extend our gratitude to the contributors who have played a key role in Floresta’s latest release: @<a href="https://github.com/jaoleal">jaoleal</a>, @<a href="https://github.com/joaothallis">joaothallis</a>, @<a href="https://github.com/josesk999">JoseSK999</a>, @<a href="https://github.com/lla-dane">lla-dane</a>, @<a href="https://github.com/lord2anil">lord2anil</a>, @<a href="https://github.com/mystical-prog">mystical-prog</a>, and @<a href="https://github.com/osauravO">OsauravO</a>. Your contributions have been invaluable to the project’s progress.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6886ea7c975c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vinteum-org/floresta-update-simplifying-bitcoin-node-integration-for-wallets-6886ea7c975c">Floresta Update: Simplifying Bitcoin Node Integration for Wallets</a> was originally published in <a href="https://medium.com/vinteum-org">Vinteum_org</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Floresta, a Utreexo-powered Electrum Server implementation]]></title>
            <link>https://medium.com/vinteum-org/introducing-floresta-an-utreexo-powered-electrum-server-implementation-60feba8e179d?source=rss-afac53432ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/60feba8e179d</guid>
            <dc:creator><![CDATA[Davidson Souza]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 21:20:47 GMT</pubDate>
            <atom:updated>2023-03-28T21:31:47.084Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Itui4teINgle4j-f" /></figure><p>Bitcoin is a groundbreaking technology that enables users worldwide to transfer value in a trustless and borderless manner. Bitcoin’s core value proposition is its decentralization, where no one has superior power over the network.</p><p>For the network to function properly, Bitcoin requires people from all over the world to run software capable of speaking its native protocol. These computers running the software are known as nodes, and they form Bitcoin’s backbone, which controls and manages its monetary value. However, running Bitcoin nodes can be challenging for users who lack technical expertise.</p><p>To make running a Bitcoin node accessible to everyone, I created the “Floresta” project. It’s a user-friendly and resource-efficient implementation of an Electrum Server that allows even novice users to run the software. The source code and releases are available on <a href="https://github.com/Davidson-Souza/Floresta">my GitHub repository</a>.</p><p>If you build the project from the source code, you’ll get a single binary that runs a new Electrum Server on port 50001, which listens on all interfaces. Any Electrum protocol-compatible wallet can connect to this server. When you first connect your wallet to the server, your Bitcoin balance will show up as zero, even if you have Bitcoins in your wallet. This is because Floresta doesn’t keep an address index like ElectrumX or Electrs. You’ll need to provide your wallet’s xpub to the server to create an index for your UTXOs. If you’re using Electrum, click on the “Wallet” menu and then “Information” to find your xpub (Master Public Key).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/0*uHP1SIxTXqPLFVq3" /></figure><p>Copy config.toml.sample and add your xpub to the xpubs field. Finally, run utreexo-electrum-server with the following options:</p><p>$ utreexo-wallet — config-file config.toml run</p><p>It will validate and scan all blocks from the genesis block, looking for transactions related to your wallet. Once it finishes, you can see your balance on Electrum!</p><p><strong>Why an Electrum Server?</strong></p><p>As you can see in the binary name, this was supposed to be an end-user wallet, showcasing utreexo’s ability to create a small node that anyone can run, even within the wallet itself. But maintaining a working wallet is painful! To avoid some UI/UX trouble and tons of unrelated stuff, we chose the easiest path: create an utreexo-based electrum server and let people use whatever wallet they want. Furthermore, a small and modular wallet that is both easy to set up and maintain, is a valuable piece for the Bitcoin ecosystem, especially for newcomers and non-enthusiasts that just want to use something simple.</p><p><strong>What is the improvement over a setup with Bitcoin Core + EPS?</strong></p><p>This setup offers significant improvements over a setup with Bitcoin Core + Electrum Personal Server (EPS). It requires significantly less disk I/O and disk space than even a pruned node + EPS. This setup is intended for users who do not have the necessary resources for running a full node with EPS, and only need a compact node. If you are okay with the tradeoffs of assumeUTXO, you can have an assumeUtreexo full node running on your smartphone. This is a remarkable development because it was not possible before. Considering that some people only have a smartphone and not desktops or laptops, allowing them to run a node is a big step towards decentralization. By removing all unneeded data, without losing trustlessness, we are making nodes more accessible for end-users.</p><p><strong>What comes next?</strong></p><p>This software is continuously being developed, and there is still a long way to go in terms of improving its code quality, testing procedures, and anti-DoS measures. Some of the significant features that would be useful for users include a JSON-RPC interface to control the software, a TLS server for Electrum, and an intuitive interface for setup and monitoring. Once the software has been thoroughly tested and proven to be stable, it can then be deployed on the mainnet.</p><p><em>Disclaimer: Rust-Utreexo and Floresta are open-source software projects and are not owned by Vinteum in any way. Vinteum provides support to the author in their work on these projects, but does not control or dictate the direction of the projects. All contributions and feedback from the community are welcome and appreciated.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60feba8e179d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/vinteum-org/introducing-floresta-an-utreexo-powered-electrum-server-implementation-60feba8e179d">Introducing Floresta, a Utreexo-powered Electrum Server implementation</a> was originally published in <a href="https://medium.com/vinteum-org">Vinteum_org</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Afinal, o que é Schnorr?]]></title>
            <link>https://davidsonlucassouza.medium.com/afinal-o-que-%C3%A9-schnorr-6ad50bf66097?source=rss-afac53432ecf------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ad50bf66097</guid>
            <category><![CDATA[criptomonedas]]></category>
            <category><![CDATA[schnorr]]></category>
            <category><![CDATA[criptografia]]></category>
            <dc:creator><![CDATA[Davidson Souza]]></dc:creator>
            <pubDate>Thu, 25 Feb 2021 14:39:37 GMT</pubDate>
            <atom:updated>2021-05-25T22:16:33.919Z</atom:updated>
            <content:encoded><![CDATA[<p>Recentemente esta palavra ficou famosa no mundo do Bitcoin, muitas pessoas repetem ela sem fazer a menor ideia do que significa, mas hoje eu vou tentar explicar o que é isso, e para que serve.</p><p>Este artigo será dividido em 3 partes principais: O que é criptografia de curvas elíticas, o que é um DSA e finalmente, vamos construir o Schnorr. Se você entende sobre os primeiros tópicos, pode ir direto para o final. Mas caso seja um completo leigo em criptografia, fica ligado que eu vou te explicar de uma maneira simples e intuitiva.</p><h3><strong>O que são curvas </strong>elíticas?</h3><p>Curvas elíticas são estruturas algébricas muito peculiares que seguem a lei de formação y²=x³+ax+b, onde a e b podem ser quaisquer números inteiros(0, 1, 2, 3…). Se você se lembra das aulas do ensino fundamental, deve recordar que uma vez que tenhamos a equação, podemos colocar valores no lugar do “x” e assim determinar “y” resolvendo as contas. Exemplo: se a minha curva for y²=x³+7 e eu disser que x vale 10. É fácil perceber que y=10³+7, logo y=1007. Com o valor de x e y podemos escrever isso como um ponto (x, y). No nosso caso, (10, 1007).</p><p>Assim temos uma infinidade de pontos (x, y) onde a equação acima é satisfeita, podemos até, calcular vários pontos e traçar uma curva ligando-os, formando uma curva no plano.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*NQ_uYObe4WnnHG0j.png" /><figcaption>Projeção da curva y²=x³+7 no plano. Fonte:<a href="https://en.bitcoin.it/wiki/File:Secp256k1.png"> bitcoin-wiki</a></figcaption></figure><p>Você também deve recordar das operações entre números(escalares), e entre números e pontos(escalares e pares ordenados). Por exemplo, podemos adicionar dois pontos, podemos multiplicar um número por um ponto e até dividir dois pontos! Todavia, você não pode somar um escalar com um ponto, por exemplo.</p><p>O interessante das curvas elípticas é que temos um conjunto bem específico de operações, que só se aplicam para as mesmas. Primeiro, podemos somar dois pontos usando umas contas bem particulares, que não pretendo me aprofundar aqui, mas usa retas tangente e pontos de interseção. Mas se você tem um ponto A e outro B, você pode fazer C=A+B. A multiplicação é definida como sendo a soma repetida de um ponto por ele mesmo, por exemplo, 3A não é nada, senão: A+A+A. Guarde isso com carinho, vamos usar muito daqui pra frente.</p><p>As operações inversas (subtração e divisão) são análogas. Mas gostaria de chamar a atenção do leitor para um fato interessante. Podemos somar ponto com ponto, nunca com escalar. Também podemos multiplicar, mas ponto e escalar, nunca ponto e ponto. E isso é fantástico!</p><p>Vamos considerar o seguinte exemplo: S=sG, onde s é um número qualquer e G é um ponto escolhido de comum acordo entre todos os participantes de uma rede, chamado “ponto gerador”. Se eu te der S(note: letra maiúscula denota ponto, minúscula denota escalar. Lê-se “essezão” e “essezinho”) e você sabe G, não é segredo pra ninguém. Como conseguir s? Fazendo S/G? Impossível! Acabamos de ver que não podemos dividir um ponto por outro, você não saberia o que é s mesmo se tiver S e G. Mágica!</p><p>Isso se chama ECDLP (Elliptc Curve Discrete Logarithm Problem) e até pode ser resolvido, unsando-se um computador quântico, ou levando algumas centenas de milhares de anos em um mainframe. Como estas são coisas não tão corriqueiras, assumimos que é impraticável de ser resolvido, portanto podemos usar para fazer coisas interessantes.</p><p>Lembre-se que isso aqui é um guia introdutório, bem básico. Vou deixar um link para um <a href="https://www.youtube.com/watch?v=NF1pwjL9-DE">vídeo</a> bem legal (em inglês) sobre o tema pra quem se interessar.</p><h3>Assinaturas no mundo digital</h3><p>Agora vamos explorar um pouco a idéia de assinatura digital, ou DSA (Digital Signature Algorithm). Assinaturas são entidades físicas (tinta em um papel, por exemplo) que são infraldáveis (só uma pessoa consegue gerar uma assinatura com aqueles padrões) que provam o conhecimento e o consentimento de alguém sobre algo. Como a existência de uma escritura ou certidão de casamento, a menos que a pessoa tenha se casada bêbada ou algo assim, ela prova estar ciente do fato e que consente com aquilo, criando uma prova única e não reprodutível do mesmo.</p><p>Como criar isso digitalmente? Bom, existem algumas maneiras no entanto a mais usada é com base no conhecimento de um segredo criptográfico, e funciona assim: Imagine um que eu sou uma pessoa importante e queira que todos os meus documentos sejam autenticados digitalmente. Eu vou em um cartório e registro uma “pista” do meu segredo. Quando um documento chega para mim, eu crio uma “prova” de que a pessoa por trás daquele segredo (que quase certamente sou eu) está ciente de e concorda com determinado documento.</p><p>No caso das assinaturas digitais, como o documento também entra na assinatura em sí, ela não só funciona para autenticação, mas também para verificar a integridade do documento! Muito util nos dias atuais, de fato, DSAs são usados a todo momento para uma variedade de coisas na nossa vida cotidiana.</p><p>Mas, como provar a posse do segredo, sem revelar o mesmo e ainda fazer referência à nossa mensagem? Vamos usar o nosso conhecimento em criptografia e fazer algo a respeito.</p><h3>Schnorr</h3><p>Lembra que se eu tiver um número s e fizer P= p*G, ninguém consegue deduzir p de P e G? Bom, esta é a “pista” que precisamos pro segredo. Isto se chama criptografia de chave pública, e estes dois caras (p e P) são respectivamente a chave privada e pública.</p><p>Digamos que você registra em cartório a sua chave pública, agora sabemos que aquela chave pública é controlada por você. Se p for suficientemente grande para impedir força bruta (um atoa chutando valores de p até achar P), só você conhece p e portanto, contas envolvendo P devem estar relacionadas à você, pois elas são complementares!</p><p>Agora imagine o seguinte, eu tenho uma mensagem que diz: “Olá! Eu sou Satoshi Nakamoto.” e queira assinar ela digitalemente com p. Eu poderia fazer p * “Olá! Eu sou Satoshi Nakamoto.” mas isso é meio sem sentido. Até seria possível você pegar a representação ASCII* desses valores e multiplicar, mas a assinatura ficaria em partes e mensagens curtas seriam obviamente vulneráveis. Como resolver?</p><p>Bom, precisamos usar mais uma do nosso cinto de criptógrafo: Hash!</p><p>Hashes são tipo os peões da criptografia, elas fazem de tudo e podem ter vários nomes dependendo da aplicação, mas permita-me escolher o mais adequado: resumo criptográfico.</p><p>A hash nada mais é do que uma função matemática que recebe alguma coisa, e devolve um número muito grande, só que esse número tem uma ordem (quantidade de bits usados) fixa. Não importa o tamanho ou a natureza da entrada, sempre teremos uma saída de tamanho fixo e parece aleatória.</p><p>Um exemplo: No bitcoin é usado o sha256 para a maioria das coisas, ela cria uma saída de 256 bits (ou 32 bytes). Se eu passar “Olá! Eu sou Satoshi Nakamoto.” para ela, você receberá o (pequeno) número:</p><blockquote><strong><em>950197212658211096012878983303762528293232331664987147045434</em>04302258756385994</strong></blockquote><p>Se eu mudar para “Olá! Eu sou Satoshi Nakamoto”(sem o ponto final) eu teria:</p><blockquote><strong>94473299586053387535115132744694084168621673145763886551497495776882820969272</strong></blockquote><p>Pequenas mudanças na entrada, mudam completamente a saída, mas a mesma entrada sempre resultará na mesma saída. Isto se chama pseudo-aleatoriedade</p><p>Pois bem, vamos denotar hash como sendo H(). Podemos fazer algo como:</p><blockquote>s=H(“Olá! Eu sou Satoshi Nakamoto.”)*p.</blockquote><p>Repare em uma coisa interessante: multiplique a equação por G. sG=H(“Olá! Eu sou Satoshi Nakamoto”)p*G mas p*G é P e s*G podemos chamar de S. Logo se chamarmos a nossa mensagem de m (por questões de estética), ficamos com</p><blockquote>S=H(m)*P</blockquote><p>P é público, qualquer um pode consultar, mas só eu posso gerar um s válido. se eu te entregar s e a mensagem, você pode fazer as contas e ver que dá a mesma coisa nos dois lados!</p><p>Mas o nosso sistema ainda e fraco, pois se s=H(m)p, p=H(m)-s. Isso é um problema pois qualuqer um sabe s e H(m), e poderia deduzir p. Pra resolver isso eu adiciono um número aleatório usado apenas uma vez, chamado r. Aí ficamos com s=r+H(m)p. Se você tentar isolar p, vai ficar sempre com um sistema de uma equação e duas incógnitas, que não tem uma única solução. Se r e p são grandes o suficiente, é impossível achar eles em tempo hábil.</p><p>O próximo passo eu vou ter que deixar como dever de casa, pois requer um pouco a mais de conta, mas é bem simples perceber algumas falhas de segurança, principalmente se alguém assinar a mesma mensagem duas vezes. Para tanto, ficamos com:</p><blockquote>s=r+H(R|P|m)p,</blockquote><p>onde esses | significam concatenar, juntar as coisas (Satoshi|Nakamoto é o mesmo que SatoshiNakamoto).</p><p>Agora, a parte mais legal disso tudo, vamos multiplicar por G:</p><blockquote>sG=rG+H(R|P|m)pG.</blockquote><p>Lembrem-se, pG é P, para que você possa verificar a minha assinatura s, eu devo te informar s e R (note que a assinatura é um escalar, já R é um ponto) e você só fará o seguinte:</p><p>1-Multiplique s por G, e terá S</p><p>2 -Faça H(R|P|m) multiplicado por P (P é público, todo mundo conhece, m é a nossa mensagem, então você sabe. E R eu te dei junto da assinatura.</p><p>3 - Some R com o resultado do passo 2</p><p>4 - Verifique se os pontos obtidos no passo 1 e 3 são iguais, se for é uma assinatura válida. Caso forem diferentes, a assinatura é inválida.</p><p>Pronto, é isso! Essa é a famosa Schnorr. Ninguém que não tenha acesso ao segredo p, pode criar um assinatura. Como só eu tenho acesso à minha chave privada (idealmente), só eu posso criar uma assinatura válida. Mas qualquer um pode verificar a validade dela. Mágica!</p><h3>Um pequeno FAQ…</h3><p>“Ok, mas como isso pode ajudar o bitcoin?” — Bom, suponho que você saiba o que é bitcoin e que o Schnorr está sendo implementado nele. Caso não conheça, recomendo fortemente a buscar sobre — Bom, o Bitcoin atualmente usa um algoritmo chamado ECDSA, que não é ruim, na verdade ele é o coraçao do Bitcoin desde seu nascimento, pois sem assinatura digital seria impossível saber quem pode gastar o que. Mas a ECDSA tem alguns problemas de maleabilidade (alguém criar uma assinatura que pareça válida mas não deveria) e é ruim para multisigs/key agregation (que eu vou falar sobre mais à frente).</p><p>Para single-sig você ganha um Byte, mas para uma carteira que tenha mais de uma chave que a controla, você pode somar todas as chaves e criar um única e ainda fazer o mesmo para as assinaturas. Além de um impacto significativo na performance (são vários bytes salvos) aumenta a privacidade de multisig, pois não existe distinção entre single e multisig.</p><p>“Mas por que Satoshi não usou Schnorr, se ele é tão bom assim”? Patente! A tecnologia era patenteada até 2008 e reza a lenda que o dono era bem chato.</p><p>“Quando isso virá para o Bitcoin?”. Assim que o soft-fork do Taproot for ativado.</p><h3>Conclusão</h3><p>Espero que este artigo tenha sido útil para entender ao menos o básico de como funciona um algorítmo de assinatura digital, esta é a minha primeira publicação então adoraria receber sugestões e críticas(construtivas) para mehorar pros próximos. Escreverei sobre Mu-Sig e como implementar uma carteira com 1000 signatários!</p><p>*ASCII é uma tabela que relaciona os caracteres visuais com um código numérico. A (maiúsculo) é 65, por exemplo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ad50bf66097" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>