Fabio Bonfiglio's avatar
Fabio Bonfiglio
fabio.bonfiglio@fbo.network
npub1d8y4...nv5a
Code. Privacy. Automation. DAOs. Founder of FBO Developments Sàrl. Building stuff. 🪪🏴‍☠️🏳️‍🌈🇨🇭🇮🇹⛵🌍
Fabio Bonfiglio's avatar
Fabio Bonfiglio 3 months ago
Following this week’s sad Coldcard incident, I’ve seen several people asking whether the same problem could arise when generating an nsec. The short answer is that the issue of entropy is VERY important for ANY generation of a new private key of any sort. In CustID, when the user generates a new identity, the exact process is as follows: - The native Android class `java.security.SecureRandom` is used. It draws from `/dev/urandom` and the Linux kernel’s hardware entropy. - 32 random bytes are generated via `rng.nextBytes(ByteArray(32))`. - The validity of the secp256k1 scalar is then verified using `Secp256k1.secKeyVerify(candidate)` (from `libsecp256k1` via ACINQ’s `secp256k1-kmp-jni-android` library) - Retry loop (max 8) in the astronomically unlikely event that the 32 bytes fall outside the valid range, with invalid candidates set to zero (`candidate.fill(0)`) - The first valid candidate is then stored using `KeyStorage.store()` (encrypted with AES-256GCM), and the public key is derived using `SchnorrSigner.getPublicKey()` On virtually all recent Android SoCs (up to 4–5 years old), `/dev/urandom` is sourced from: - Hardware clocks - The SoC’s TRNG (True Random Number Generator, using various sources like RF noise, etc) - And for low-end or older SoCs that do not have a TRNG, the entropy comes from scheduler jitter, interrupt timing and I/O hw responses, which remains cryptographically adequate, except perhaps immediately after power-on. View article → However, Coldcard’s experience shows that it is important to have a mechanism for verifying entropy quality that is as thorough as possible. That is why we are working on adding a TRNG detection and multi-source mixing mechanism that will be included in a release in the coming weeks. #SISTR #CustID #did #sovereign
Fabio Bonfiglio's avatar
Fabio Bonfiglio 5 months ago
After years of designing DAOs, one thing became clear: identity is the root of all sovereignty. So, in the past few months, I started to work on SISTR: Sovereign Interactions Stack for Trustless Relationships. Identities made to be portable and real, usable online AND in the physical world. It’s simple conventions on top of Nostr + ongoing R&D for ZKPs. Please explore it, including the reference implementations (a mobile, NIP-46 capable, Identity wallet will be released soon™), here: And lease challenge it ! Your feedbacks would be greatly appreciated. 🙏 #sistr #nostr #did #selfsovereign
Fabio Bonfiglio's avatar
Fabio Bonfiglio 8 months ago
Aujourd'hui, j'ai déployé un site web tout neuf pour mon entreprise. Rien d'extraordinaire en soit, excepté sur le fait qu'il fonctionne sans aucun CMS. Tout le contenu provient directement de Nostr ! Le site sait les auteurs qu'il doit publier, reconnaît certains tags custom pour savoir où les classer et sous quelle locale éventuelle les afficher, et sait également les calendriers d'événements à lister, et il s'occupe de tout (fetch depuis les relais, mise en cache, pré-rendu, etc.). Comme j'étais sur ma lancée, j'ai également implémenté la possibilité d'afficher n'importe quel article long-form (kind 30023) sous l'url `/fr/articles/naddr1...` (le naddr doit contenir au moins un relay hint), et ainsi le site peu servir de client pour n'importe quel article publié sur Nostr. Je mentionne cette migration dans un article à propos de reprendre la souveraineté sur les infrastructures et données informatiques: #nostrfr #souveraineté #décentralisation
Fabio Bonfiglio's avatar
Fabio Bonfiglio 8 months ago
Today, I launched a brand-new website for my business. Nothing out of the ordinary in itself, except for the fact that it runs without any CMS. All the content comes directly from Nostr! The site knows which authors to publish, recognises certain custom tags to determine where to categorise them and in which locale to display them, and also knows which event calendars to list, and it handles everything (fetching from the relays, caching, pre-rendering, etc.). As I was on a roll, I also implemented the ability to display any long-form article (kind 30023) under the URL `/fr/articles/naddr1...` (naddr should contain at least one relay hint), so the site can act as a client for any article published on Nostr. I mention this migration in an article about regaining sovereignty over IT infrastructure and data: #nostr #decentralization #sovereignty
Good reminder today. When building for the sovereign web, 𝐚𝐥𝐰𝐚𝐲𝐬 think decentralization first. And when convenience really requires the implementation of a potential bottleneck or single point of failure, at least implement some kind of fallback or timeout callback that would allow the client to try another path. Until recently, I was a strong supporter of IPFS, as it solved this kind of problem (moved the resolver by the client). My opinion has now changed, and I agree with most of the criticism of IPFS, mainly regarding its overall performance. But content addressing wasn't such a bad idea. Blossom developers should at least try to salvage the good ideas that were in IPFS. View quoted note →
Satoshi Nakamoto wanted an alternative to the fiat financial system, which is broken and certainly the cause of much, if not almost all, of the suffering in the world today. To achieve that, he first built an alternative. Building first is always the path. But to some, destroying is easier.
Current #nostr mood: new ideas 💡 every day, and every day I just end up following incredible new people who have simply had the same ideas long before me!
I've just discovered NIP-13 ! What an excellent way of combating spam on social networks, and for anyone who's already raised their finger to me about energy consumption, certainly much more efficient than if centralised servers had to run algorithms dedicated to this task. This note is actually to test it, with difficulty 12 💪 ! Did your client validate it ?
↑