Bitcoin Forum
August 25, 2026, 08:15:07 AM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: I learned Rust from scratch in 2 months by building a Post-Quantum, Tor-native l  (Read 127 times)
ohmdesbois (OP)
Newbie
*
Offline

Activity: 3
Merit: 0


View Profile
June 02, 2026, 01:33:29 PM
 #1

Hello,
First of all, I apologize if this isn’t the right place to post this, but I don’t see many places where I can reach out to true purists—real developers who can understand what I’m trying to do.
You might not want my post here, and I’d understand if it gets deleted like it has elsewhere, since Bitcoin is transparent—so talking about an anonymous, post-quantum project here is probably not appropriate.
Anyway, I’d like to know if I can talk about my project built in Rust. I started by making prototypes inspired by Bitcoin, and then by Monero. If you give me the chance, I’ll tell you more, but since my posts keep getting deleted, I don’t dare anymore.

I'm here because I feel this is one of the few places where I'd be understood if I talked about a fair project for everyone, a fully decentralized system, HTLC contracts, low-level security, open source, bounties for finding white-hat hackers, and building a robust blockchain, etc....


My background is strictly in C—I love low-level architecture and manual memory management. Last year, I started diving into blockchain architectures by poking around and forking Go-Ethereum. It was a great learning experience, but it made me realize something: to build a truly robust, low-level architecture with inflexible safety guarantees (like Bitcoin), I needed to use Rust.

Here is the catch: I didn't know a single line of Rust before April 9th of this year.

For the past two months, it's been just me, the Rust compiler, a bunch of cryptographic papers, and a lot of late nights. I actually scrapped my entire architecture 3 days in when I realized coupling the node and the wallet in the same core was a terrible design, and I rewrote everything to separate the components properly.

Today, I'm open-sourcing Wattcoin V2 (GPLv3). It might not be the most battle-tested production software in the world yet, but it's a solid Proof of Concept and I'm incredibly proud of it as my first real Rust project.

The Tech Stack & Architecture:

- Networking: tokio for async runtime, warp for the local node API, and arti-client for native Tor routing. Every node operates natively as an Onion Hidden Service to ensure privacy.

- Consensus: Proof of Work using randomx-rs (CPU-mining optimized, ASIC resistant).

- Cryptography: 100% Post-Quantum. I use pqcrypto (Dilithium3 for signatures, Kyber768 for key encapsulation) combined with AES-256-GCM. I also implemented Learning With Errors (LWE) commitments for transaction amount masking.

- Wallet: tauri + React + reqwest.

Interesting Rust Challenges I Faced:

1) Native Tor via Arti: Getting arti-client to work reliably for both exposing a hidden service and routing outbound requests through a custom SOCKS5 proxy implementation inside the same binary.

2) FFI & Thread Safety with RandomX: RandomX relies heavily on C pointers. To pre-calculate the 2GB dataset for the next mining epoch without halting the main mining thread, I had to build a WarmUpContainer and carefully use unsafe impl Send and Sync to pass ownership safely across thread boundaries.

3) Concurrency: Managing the Mempool, Blockchain state, and P2P connections concurrently using Arc<Mutex<T>>. I had to be extremely careful to avoid deadlocks when receiving blocks and validating transactions simultaneously.

4) Cross-chain logic: Implementing an on-chain Frequent Batch Auction (FBA) DEX and Bitcoin-compatible HTLCs (Hash Time Locked Contracts) for atomic swaps.

Repo: https://github.com/lohmdesbois-source/wattcoin (V2.0.8 branch/push coming very soon!)

The Telegram channel : https://t.me/WATTCOINNETWORK

Since this is my first real dive into Rust, I am mostly looking for feedback on:

- My usage of tokio::spawn and async state management (are my Arc<Mutex> holding locks for too long?).

- The way I structured the P2P message serialization (serde_json).

- General Rust idiomatic improvements (how to make my code look more like native Rust and less like C).

I'd really appreciate any code review, critiques, or suggestions. Thanks!

Thank you for reading.

L'ohm des bois
gall00tech
Newbie
*
Offline

Activity: 33
Merit: 0


View Profile
June 02, 2026, 10:00:20 PM
 #2

looks like the other projects that have been poping lately just to result in crypto stealers , cargo+rust, RandomX algo,post quantum, no website, etc. Plus Wattcoin network already exists.  Undecided
ohmdesbois (OP)
Newbie
*
Offline

Activity: 3
Merit: 0


View Profile
June 04, 2026, 10:52:16 PM
 #3

Thanks for the feedback. The site is up and running, but since I don’t have a lot of resources, it doesn’t have a domain name yet—that’s why I haven’t shared it. I’m currently finishing up the HTLC part and pushing it to GitHub. Right now, it’s still just a proof of concept, so I understand why you’re hesitant. Thanks again.
The web site is here : http://80.78.26.243
Since I'm coding locally right now, no one is mining, so it's a bit quiet.

And I might add that WATTCOIN isn’t a blockchain but a token on Solana; we, on the other hand, have our own blockchain with its own coin. That said, it’s hard to find a name we like that isn’t already taken—Ethereum wasn’t the only one either, and it won the battle. That’s all for now. We are the WATTCOIN NETWORK
ohmdesbois (OP)
Newbie
*
Offline

Activity: 3
Merit: 0


View Profile
August 21, 2026, 12:58:32 PM
 #4

📢 The Wattcoin Manifesto: Anonymity That Stands the Test of Time
The world of blockchain has become an institutionalized casino. We have traded the promise of financial sovereignty for vulnerable smart contracts, absurd gas fees, and cryptography that will become obsolete the moment quantum computing takes off.

We were told that post-quantum anonymity (ZK-STARKs) required enterprise-grade servers. We were told that post-quantum cryptography and native Tor routing were too resource-intensive for a simple phone. We were told that an asynchronous on-chain DEX was impossible without “liquidity pools” exploitable by MEV bots.

They were wrong. Wattcoin is proof to the contrary.

Wattcoin isn’t just another token. It’s a UTXO database architecture reimagined from scratch in Rust, built with a single goal in mind: survival through absolute stealth.

Our Principles:
1) Standard cryptography is dead: ECDSA will fall. Wattcoin uses exclusively WOTS+ (hash-based) signatures and Learning With Errors (LWE)-type matrix commitments. It’s lightweight, homomorphic, and resistant to Shor’s algorithm.

2) Anonymity is non-negotiable: No public addresses. MPC Ring Signatures (minimum 64 decoys), Stealth Addresses, and forced “Drip UTXO.” The protocol breaks down amounts into standard denominations. Your change is indistinguishable from your payment.

3) Smart contracts are traps: Complexity is the enemy of security. We have no EVM. The DEX (Frequent Batch Auctions), cross-chain atomic swaps (HTLC), and mining pool (P2Pool) are hardcoded into the L1 consensus. Zero potential logical vulnerabilities exploitable by a third party.

4) Decentralization must fit in a pocket: We reject material elitism. The hybrid wallet (Tauri/Rust) natively supports post-quantum cryptography and Tor routing, even on Android.

5) Layer 2 belongs to the protocol: VC-managed rollups are heresy. Wattcoin’s L2 is an asynchronous sequencer integrated into the core of the node. 128 micro-blocks per minute, cryptographically anchored to the main RandomX PoW.

6) Storing data on a transparent network can have its advantages but also its disadvantages; Wattcoin aims to address precisely these disadvantages.

Call to Arms (White Hats & Cryptographers)
We have no VC funding, no pre-mine, no ICO, and we don’t believe in exorbitantly priced audits that rubber-stamp sieves. We’ve made radical and experimental cryptographic choices that the academic literature deems “impossible” or “too fringe.”

The Testnet is open. The source code is on GitHub (GPLv3).

Come break our LWE matrices. Come de-anonymize our WOTS+ rings. Come flood our L2 Sequencer. Kill the network.

Steel is forged in fire. Welcome to the Wattcoin Network.

I've rewritten the code—it has everything: call forwarding, call history, lottery, dex, messages, sequencer, bridge, and phonebook. I hope you'll like it.

Github:
https://github.com/lohmdesbois-source/wattcoin

Website : (We still don't have the money to buy the domain name, but who cares?)
http://80.78.26.243/index.html

Telegram chanel :
https://t.me/WATTCOINNETWORK

Chat in english :
https://t.me/WATTCOIN_PQ_Community_En

Best
Seikar
Newbie
*
Offline

Activity: 7
Merit: 0


View Profile
August 22, 2026, 09:12:23 AM
 #5

Actually this is more potentially interesting than most new coins.

For getting a community, you want miners.

For getting miners, the best bet is to prominently convey:

a. The mainnet is not yet launched.  (I can guess that now after multiple minutes of reading and browsing, but every fraction of a minute to discover the answer is a filter).
b. No premine (you did mention that, good).
c. Scheduled mainnet launch date, once it is known.

I am not sure if practically possible for any coin launched grassroots in 2026 to really take off, rather hard without a killer app or totally dazzling in innovation.  Yet I do see you are more towards the innovative end than mere code forks.  (May look more at the github code later).
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!