Conversation

FFS stop using C.
Quote Tweet
Kudos to Christian Reiter and Jochen Hoenicke for identifying and disclosing vulnerability in reference implementation of bech32 address handling. This affects many Bitcoin projects, ask your favourite devs for update! blog.trezor.io/details-about-
7
20
Replying to
You can! For instance if this was written in unsafe Rust I'd be complaining as well. But the lesson there is that a bech32 implementation doesn't need to be written in unsafe Rust; use safe Rust instead.
1
4
Replying to and
There are cases where you don't have a choice - I've written a lot of unsafe Rust myself. But bech32 implementations don't need to do anything low level, and there's no need to squeeze the last % of performance out (there might even be no difference in performance).
1
3
Rust certainly is one. It's not just a memory safe low-level language. It has a modern type system with algebraic data types, type classes usable for both generics and as objects, etc. The ownership / borrowing systems for memory safety catch many non-memory-safety problems too.
1
3