Craig Wrong (@notcraigwright) header
Craig Wrong (@notcraigwright) profile picture

Server-side @SwiftLang and #Bitcoin (not crypto) open-source developer – working on @SwiftBitcoinOrg

The Workchain
Joined December 2021
Swift Bitcoin uses Ordo One’s Benchmark library to establish a performance baseline and track improvements. The latest additions to our benchmarks repository helped us optimize RIPEMD-160 and SipHash-2-4 algorithms and make them memory-safe. github.com/swift-bitcoin/swi…
2
2
145
Craig Wrong retweeted
The first block ever mined by dedicated mining hardware connected directly to a node. #libbitcoin wormer.libbitcoin.net:58143/…
7
20
2
63
3,448
Craig Wrong retweeted
Graceful shutdown and task cancellation are not the same thing. In my article on swift-service-lifecycle, I explore how Swift's structured concurrency helps manage long-running services and coordinate their shutdown. #SwiftLang #ServerSideSwift ivantokar.com/posts/swift-se…
1
1
30
2,992
Craig Wrong retweeted
Announcing Swift 6.4.3, a maintenance release with bug fixes across multiple areas including the compiler, Linux backtraces, Foundation on Windows, and Swift Testing. Read more: forums.swift.org/t/announcin…
5
27
2
141
10,469
Craig Wrong retweeted
Thumbs up to the Bitcoin projects that came back pretty clean in my reviews. Nothing to send over.. Trezor, Bitcoin Core v32.1, electrs, BDK and FractalEncrypt's anti-exfil builds. Props to the devs ✊
11
9
2
111
6,615
Craig Wrong retweeted
Presenting exnode - a Bitcoin full-node written in Elixir - github.com/brunoerg/exnode 🔮 It's just a weekend project (heavily AI-assisted) that I created to explore how Elixir would be suitable for this kind of application (and also testing some security/qa tools). The focus of the design is being as fault-tolerant as possible. The node is an OTP supervision tree. Headers, chain state, script execution, the mempool and relay, P2P (one process per peer), and the indexes and APIs are each separate processes, with restart boundaries set by what each part owns and depends on. Since it uses OTP, a failure stays local wherever it can - e.g. a mempool crash restarts the relay subtree, and peers stay connected; a local bug doesn't make a block invalid; stored, active and committed are separate steps. A loooot of things my clanker just copied/ported from Core, and it uses libbitcoinkernel. Some ideas of other impls were also ported, btw. Feel free to try and report bugs. Again, it's experimental, just a vibed toy project, take care.
13
23
2
107
12,445
Craig Wrong retweeted
The number of maintained Bitcoin node implementations has dwindled over the years but thanks to AI tooling the tide may be turning! nitter.gq/brrrunog/status/212316…
Presenting exnode - a Bitcoin full-node written in Elixir - github.com/brunoerg/exnode 🔮 It's just a weekend project (heavily AI-assisted) that I created to explore how Elixir would be suitable for this kind of application (and also testing some security/qa tools). The focus of the design is being as fault-tolerant as possible. The node is an OTP supervision tree. Headers, chain state, script execution, the mempool and relay, P2P (one process per peer), and the indexes and APIs are each separate processes, with restart boundaries set by what each part owns and depends on. Since it uses OTP, a failure stays local wherever it can - e.g. a mempool crash restarts the relay subtree, and peers stay connected; a local bug doesn't make a block invalid; stored, active and committed are separate steps. A loooot of things my clanker just copied/ported from Core, and it uses libbitcoinkernel. Some ideas of other impls were also ported, btw. Feel free to try and report bugs. Again, it's experimental, just a vibed toy project, take care.
17
15
1
134
10,401
Craig Wrong retweeted
There is no shortage of important things to tackle in Bitcoin, and there is not enough of us to tackle it all. If you care anon, get involved. Don't assume "it's being worked on".
That's already plenty right there, but there is a lot more. You also brush over the details with large categories, which is where 99% of the real work is, and where the number of people contributors decreases sharply. Every day i am frustrated by how many interesting things i did not work on while i was focusing on other things. It's happened every single day since i've been working on Bitcoin full time, there is just too many important things to do, and so few people willing to do the work. So stating "there isn't many things to work on" is just mind boggling to me. Maybe your interest is elsewhere now, and that's fine, but there is plenty of important things to tackle for whoever is interested in contributing to Bitcoin. I left my overflowing todo list at the office, so here a few things off the top of my head while i'm in the train: - stale tip relay - more robust package relay that does not rely on orphanage - block propagation through software improvements (net processing / validation split) - CPU DoS mitigations through software improvements (idem) - IBD improvements (idem) - leveraging LLMs to write better security research tooling (fuzzing harnesses inside the project, fuzzamoto / Bedrock style frameworks, extensive invariant testing through blackbox and unit test s) - tons of security hardenings all over the place (just look at the stopgap solution we add to mitigate CVEs and never cleanup as people move on to side projects or fixing more new CVEs) - consensus protocol level hardenings with bip 54 - hardening address relay, which is vulnerable to spam while not being a great protection against motivated eclipse attacks - reducing latency between pools and hashers through Stratum v2 - p2pool v2 - hardening the Core mining IPC interface which is new yet quickly becoming systemic infrastructure - formal proving for some consensus critical parts of Core - completing the pinning fixes for Lightning - making Lightning gossip not dox your utxos - explore scaling solutions that make alternative tradeoffs to Lightning, like Ark - research more scaling solutions - make progress on conservative first steps for more scripting capabilities like bip 448 - research game theory around CRQCs more rigorously - help with efforts to bring a PQ output type to Bitcoin without compromising on important properties - research more rigorously what a systemic change of cryptographic assumptions would look like, if possible without sacrificing core properties - tons to explore and bring to market in self custody and hardware.. .. But stopping there as im getting off the train now. There is more, but i hope that already gives an idea that no there isn't nothing to work on these days. I think the root issue in this difference of perspective is this common tendency in open source to just assume that "someone else is doing it". And i'm guilty of it too, last week we had somebody visit the office who is working on something i consider to be a priority for Bitcoin, ask around "who is working on X? Who is working on Y?" (both sub projects of the broader important work) and i was extremely surprised nobody picked those up yet. Everybody is talking about this, surely somebody must be working on THAT part?! Well no. The person has his hands full with another part, there is another person helping, and.. Barely anybody else. Once you get into the weeds and get more familiar with who does the work concretely, the bus factor in Bitcoin is crazy, especially when put in perspective with what's at stake. I'm replying to Ben but this is really a message to anybody reading this. If you care about Bitcoin and find something interesting: step up anon, don't assume somebody else is already doing it, pick it up and contribute.
9
20
3
121
8,671
Tightening some screws in Swift Bitcoin by enabling all @SwiftLang Upcoming Features: - ExistentialAny - MemberImportVisibility - InternalImportsByDefault Didn't know our API could be so leaky 💧
1
1
40
Craig Wrong retweeted
Replying to @rusty_twit
@rusty_twit and I just posted the updated Great Script Restoration to bitcoindev this framework defines an upgrade path for bitcoin script and includes: 1. computational budget 2. restored opcodes and bigInts 3. OP_TX 4. OP_CSFS etc. 5. macros AMA! groups.google.com/g/bitcoind…
14
19
8
67
6,860
Craig Wrong retweeted
This summer, a fantastic group of students dove into the Swift ecosystem for Google Summer of Code! ☀️ Here's a look at their amazing contributions to: 📝 DocC in SourceKit-LSP ⏱️ Task tracking for Concurrency 🔍 Name lookup in swift-syntax Read more: swift.org/blog/gsoc-2026-sho…
19
2
100
9,105
Craig Wrong retweeted
Replying to @0xDada_Crypto
12 words ARE enough. any number of words won't save you, if the RNG is defective. leaning on passwords is not ideal other than as an add-on, as users are rather bad at choosing passwords. and/or good at mistyping them (there's no checksum) or not backing them up, and forgetting.
12
8
2
211
16,303
Our Swift LMDB fork was supercharged with: - LLVM API notes - Memory safe interop wrappers - 0-copy custom bindings (span based) - ~Copyable and ~Escapable API - Exit/compilation tests - DocC documentation catalog For a faster and safer Swift Bitcoin! github.com/swift-bitcoin/swi…
2
5
183