Bitcoin Forum
June 19, 2026, 10:46:34 PM *
News: Latest Bitcoin Core release: 31.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ANN] Midstate - Simple and Effective Post-Quantum Cryptocurrency (Rust)  (Read 103 times)
ciphernom (OP)
Newbie
*
Online Online

Activity: 4
Merit: 0


View Profile
Today at 03:54:59 AM
Last edit: Today at 04:05:20 AM by ciphernom
 #1

[ANN] Midstate - Simple and Effective Post-Quantum Cryptocurrency (Rust)

The quantum threat is real, and elliptic curves are on their last legs. They will work fine until one day, we will look back and say, "Oh, that's when it didn't work anymore."

Some post-quantum cryptocurrencies have already been developed, but almost all of them rely on Lattice-based cryptography. While currently believed to be quantum-resistant, the mathematical hardness of Lattices in a post-quantum world has not been definitively proven.

If we are going to build a lifeboat, we shouldn't build it out of experimental materials. The most robust assumption in a post-quantum world is to rely on a single, battle-tested cryptographic primitive: the Hash Function.

Midstate is a purely hash-based cryptocurrency built from the ground up in Rust.

⚠️ Disclaimer: Not a Speculative Asset
Let me be absolutely clear upfront: This project is not designed to make anyone money.
There is no ICO. There is no premine. There is no dev tax, founder allocation, or VC funding. There is no marketing team.

Midstate is a cypherpunk engineering effort designed to solve a specific, looming cryptographic crisis. It is a lifeboat and a proof-of-concept for how a decentralized network can survive when Shor's algorithm renders traditional public-key cryptography obsolete. If you are looking for "number go up," look elsewhere. If you are interested in post-quantum network resilience, read on.

Live Network & Tooling
You don't have to compile a node to see it working. The network is live, and the browser tooling is entirely serverless (WebRTC).

How Midstate Works (The "Hash Everything" Approach)
In Midstate, if you can hash, you can secure a network. There are no elliptic curves. Everything from block mining to transaction signing relies entirely on BLAKE3, a highly parallelized and blazing-fast hash function.

  • Winternitz One-Time Signatures (WOTS): Standard transactions are signed using WOTS. Private keys generate public keys via hashing, and signatures are revealed by exposing preimages. Because they are one-time-use, the wallet architecture automatically handles change and sibling UTXOs to ensure keys are never reused.
  • Merkle Signature Scheme (MSS): For users who need a persistent, reusable address, Midstate wraps WOTS keys in a binary Merkle tree. A single 32-byte master public key (the Merkle root) can authorize thousands of signatures safely.
  • Sequential Proof of Work: To neutralize parallel ASICs, Midstate uses a VDF-style sequential hash chain. Mining a block requires 1,000,000 strictly sequential BLAKE3 hashes. You cannot divide this math across multiple cores. This guarantees "One CPU, One Vote."
  • Commit-Reveal Mempool: To prevent quantum-enabled MEV and front-running, transactions use a two-phase protocol. You first publish a Commit (a hash binding your inputs/outputs with a dynamic anti-spam PoW), and later broadcast the Reveal (the actual signatures).

Trustless WebRTC Browser Wallets
The Midstate web wallet is not a MetaMask clone talking to a centralized Infura server. It is a true Light Client running in your browser.
By utilizing WebRTC Direct and WASM SIMD128, the browser connects directly to the P2P swarm. It downloads Golomb-Rice compact block filters (Neutrino-style) to scan for funds without leaking addresses to the node. When you send a transaction or a chat message, your browser natively mines the Proof-of-Work to submit it to the network.

DeFi on Bitcoin-Style UTXOs (Midscript)
Midstate features a Turing-incomplete stack machine with zero gas fees. However, it introduces two powerful concepts: Covenants (OP_SUM_TO_ADDR) and State Threads (OP_READ_INPUT_STATE).
Using the live Midscript IDE, you can write, compile, and emulate complex Smart Contracts directly in the browser. Midstate natively supports Constant Product AMMs (Uniswap style), Limit Orders, Atomic Swaps (HTLCs), and DAOs—all without the re-entrancy bugs or state-bloat of the EVM.

Provable Fair Launch
There is no hidden pre-mine. The genesis block is mathematically anchored to a specific, historical Bitcoin block hash (000000000000000000018f5ad5625d43356136c2e50c6dc18967a90a18f0af2e). Furthermore, the entire genesis block reward (1.07 Billion units) was assigned to a human-readable text string instead of a public key, mathematically burning the entire genesis supply to prove no developer allocation exists.

Additional Features
  • Power-of-2 UTXOs & CoinJoin: All coins must be strict powers of 2. This identical denomination sizing allows the wallet to automatically coordinate trustless, P2P CoinJoin mixes, fracturing surveillance graphs.
  • ASERT Difficulty: Uses the absolute-scheduled ASERT algorithm (16.16 fixed point math) to adjust difficulty on every single block, completely eliminating time-warp and hash-and-flee exploits.
  • Q-Bolt L2: Instant, zero-fee Layer-2 payment channels routed over the Midstate P2P Ephemeral Chat bus.
  • OOM Defense (Sparse Merkle Trees): Instead of an unbounded LevelDB database for state, UTXOs are aggregated into a 256-level SMT. A full node can sync, validate, and mine concurrently on a $15 Raspberry Pi Zero 2 W with 512MB of RAM.

We know the clock is ticking on ECDSA/secp256k1. Midstate is built for the day the clock strikes zero. Miners, cryptographers, and developers are welcome to join the network and help review the code.
ciphernom (OP)
Newbie
*
Online Online

Activity: 4
Merit: 0


View Profile
Today at 04:06:39 AM
 #2

to verify the genesis hash:

First, grab the parent hash from block 0:
https://rpc.cypherpunk.gold/?0

then plug that in:

#!/bin/bash

BTC_HASH="000000000000000000018f5ad5625d43356136c2e50c6dc18967a90a18f0af2e"

# The Bitcoin block height 938708 in hexadecimal is 0x0E52D4.
# As an 8-byte (64-bit) little-endian integer, the bytes are reversed:
LE_HEIGHT="\xd4\x52\x0e\x00\x00\x00\x00\x00"

echo "Verifying Midstate Genesis Anchor..."
echo "Expected Parent: 088a85ee5c85ce7d1c831955bbca889af6be33d164f6d96940b6afd9fb0da22b"

# We use a `{ command group }` to stream the raw binary bytes of both
# the first hash AND the height directly into the final BLAKE3 hash.
{
  # 1. Hash the BTC string and convert the hex output back into raw binary bytes
  echo -n "$BTC_HASH" | b3sum | cut -d' ' -f1 | xxd -r -p
 
  # 2. Append the raw 8-byte little-endian height
  printf "$LE_HEIGHT"
 
} | b3sum | cut -d' ' -f1 | sed 's/^/Computed Parent: /'


Hashrateoptions
Newbie
*
Offline

Activity: 123
Merit: 0


View Profile
Today at 09:29:51 AM
Last edit: Today at 11:02:05 AM by Hashrateoptions
 #3

Node dont sync complaining peers have corrupted data areound height 130000

Exact 139312

Do you have any peer list ? As those two bootstrap seems send invalid data
Hashrateoptions
Newbie
*
Offline

Activity: 123
Merit: 0


View Profile
Today at 12:04:13 PM
 #4

[ANN] Midstate - Simple and Effective Post-Quantum Cryptocurrency (Rust)

The quantum threat is real, and elliptic curves are on their last legs. They will work fine until one day, we will look back and say, "Oh, that's when it didn't work anymore."

Some post-quantum cryptocurrencies have already been developed, but almost all of them rely on Lattice-based cryptography. While currently believed to be quantum-resistant, the mathematical hardness of Lattices in a post-quantum world has not been definitively proven.

If we are going to build a lifeboat, we shouldn't build it out of experimental materials. The most robust assumption in a post-quantum world is to rely on a single, battle-tested cryptographic primitive: the Hash Function.

Midstate is a purely hash-based cryptocurrency built from the ground up in Rust.

⚠️ Disclaimer: Not a Speculative Asset
Let me be absolutely clear upfront: This project is not designed to make anyone money.
There is no ICO. There is no premine. There is no dev tax, founder allocation, or VC funding. There is no marketing team.

Midstate is a cypherpunk engineering effort designed to solve a specific, looming cryptographic crisis. It is a lifeboat and a proof-of-concept for how a decentralized network can survive when Shor's algorithm renders traditional public-key cryptography obsolete. If you are looking for "number go up," look elsewhere. If you are interested in post-quantum network resilience, read on.

Live Network & Tooling
You don't have to compile a node to see it working. The network is live, and the browser tooling is entirely serverless (WebRTC).

How Midstate Works (The "Hash Everything" Approach)
In Midstate, if you can hash, you can secure a network. There are no elliptic curves. Everything from block mining to transaction signing relies entirely on BLAKE3, a highly parallelized and blazing-fast hash function.

  • Winternitz One-Time Signatures (WOTS): Standard transactions are signed using WOTS. Private keys generate public keys via hashing, and signatures are revealed by exposing preimages. Because they are one-time-use, the wallet architecture automatically handles change and sibling UTXOs to ensure keys are never reused.
  • Merkle Signature Scheme (MSS): For users who need a persistent, reusable address, Midstate wraps WOTS keys in a binary Merkle tree. A single 32-byte master public key (the Merkle root) can authorize thousands of signatures safely.
  • Sequential Proof of Work: To neutralize parallel ASICs, Midstate uses a VDF-style sequential hash chain. Mining a block requires 1,000,000 strictly sequential BLAKE3 hashes. You cannot divide this math across multiple cores. This guarantees "One CPU, One Vote."
  • Commit-Reveal Mempool: To prevent quantum-enabled MEV and front-running, transactions use a two-phase protocol. You first publish a Commit (a hash binding your inputs/outputs with a dynamic anti-spam PoW), and later broadcast the Reveal (the actual signatures).

Trustless WebRTC Browser Wallets
The Midstate web wallet is not a MetaMask clone talking to a centralized Infura server. It is a true Light Client running in your browser.
By utilizing WebRTC Direct and WASM SIMD128, the browser connects directly to the P2P swarm. It downloads Golomb-Rice compact block filters (Neutrino-style) to scan for funds without leaking addresses to the node. When you send a transaction or a chat message, your browser natively mines the Proof-of-Work to submit it to the network.

DeFi on Bitcoin-Style UTXOs (Midscript)
Midstate features a Turing-incomplete stack machine with zero gas fees. However, it introduces two powerful concepts: Covenants (OP_SUM_TO_ADDR) and State Threads (OP_READ_INPUT_STATE).
Using the live Midscript IDE, you can write, compile, and emulate complex Smart Contracts directly in the browser. Midstate natively supports Constant Product AMMs (Uniswap style), Limit Orders, Atomic Swaps (HTLCs), and DAOs—all without the re-entrancy bugs or state-bloat of the EVM.

Provable Fair Launch
There is no hidden pre-mine. The genesis block is mathematically anchored to a specific, historical Bitcoin block hash (000000000000000000018f5ad5625d43356136c2e50c6dc18967a90a18f0af2e). Furthermore, the entire genesis block reward (1.07 Billion units) was assigned to a human-readable text string instead of a public key, mathematically burning the entire genesis supply to prove no developer allocation exists.

Additional Features
  • Power-of-2 UTXOs & CoinJoin: All coins must be strict powers of 2. This identical denomination sizing allows the wallet to automatically coordinate trustless, P2P CoinJoin mixes, fracturing surveillance graphs.
  • ASERT Difficulty: Uses the absolute-scheduled ASERT algorithm (16.16 fixed point math) to adjust difficulty on every single block, completely eliminating time-warp and hash-and-flee exploits.
  • Q-Bolt L2: Instant, zero-fee Layer-2 payment channels routed over the Midstate P2P Ephemeral Chat bus.
  • OOM Defense (Sparse Merkle Trees): Instead of an unbounded LevelDB database for state, UTXOs are aggregated into a 256-level SMT. A full node can sync, validate, and mine concurrently on a $15 Raspberry Pi Zero 2 W with 512MB of RAM.

We know the clock is ticking on ECDSA/secp256k1. Midstate is built for the day the clock strikes zero. Miners, cryptographers, and developers are welcome to join the network and help review the code.

Fix your bootstrap node with corrupted data peers do not discover themselves then come back here.
ciphernom (OP)
Newbie
*
Online Online

Activity: 4
Merit: 0


View Profile
Today at 01:25:38 PM
 #5

Node dont sync complaining peers have corrupted data areound height 130000

Exact 139312

Do you have any peer list ? As those two bootstrap seems send invalid data

Hi, thanks for reporting this issue. The problem was;
Earlier in the chain, consensus did not include WOTS address reuse. WOTS address reuse is fatal for a wallet, so I introduced it as part of consensus. Unfortunately a WOTS address was reused prior to the soft-fork that would've prevented it from being included in the chain.

This has now been resolved. If you download the latest version (https://github.com/ciphernom/midstate/releases/tag/v3.3.0) it will sync no problem.
Hashrateoptions
Newbie
*
Offline

Activity: 123
Merit: 0


View Profile
Today at 01:35:02 PM
 #6

Node dont sync complaining peers have corrupted data areound height 130000

Exact 139312

Do you have any peer list ? As those two bootstrap seems send invalid data

Hi, thanks for reporting this issue. The problem was;
Earlier in the chain, consensus did not include WOTS address reuse. WOTS address reuse is fatal for a wallet, so I introduced it as part of consensus. Unfortunately a WOTS address was reused prior to the soft-fork that would've prevented it from being included in the chain.

This has now been resolved. If you download the latest version (https://github.com/ciphernom/midstate/releases/tag/v3.3.0) it will sync no problem.

I have compiled it and same issue

Do you have any more peers instead of bootstrap nodes only ?
ciphernom (OP)
Newbie
*
Online Online

Activity: 4
Merit: 0


View Profile
Today at 01:36:41 PM
Last edit: Today at 01:49:21 PM by ciphernom
 #7

Node dont sync complaining peers have corrupted data areound height 130000

Exact 139312

Do you have any peer list ? As those two bootstrap seems send invalid data

Hi, thanks for reporting this issue. The problem was;
Earlier in the chain, consensus did not include WOTS address reuse. WOTS address reuse is fatal for a wallet, so I introduced it as part of consensus. Unfortunately a WOTS address was reused prior to the soft-fork that would've prevented it from being included in the chain.

This has now been resolved. If you download the latest version (https://github.com/ciphernom/midstate/releases/tag/v3.3.0) it will sync no problem.

I have compiled it and same issue

Do you have any more peers instead of bootstrap nodes only ?

If your node is still halting at block 139312, you are definitely still running the older executable by accident. v3.3.0 completely bypasses that block.

Double-check that you stopped the old node process, and make sure you are executing the newly compiled binary (e.g., run ./target/release/midstate directly from your build folder, rather than a global midstate command which might be pointing to the old version).*

(Also, no need for new peers. the bootstrap nodes have the correct data, your local node is just applying the old consensus rules to it!)
Hashrateoptions
Newbie
*
Offline

Activity: 123
Merit: 0


View Profile
Today at 02:37:30 PM
 #8

Ok will test it do you have any discord or telegram channel ?
ciphernom (OP)
Newbie
*
Online Online

Activity: 4
Merit: 0


View Profile
Today at 10:44:28 PM
 #9

Ok will test it do you have any discord or telegram channel ?

discord: https:/[Suspicious link removed]/78H7UwwDEZ
x: https://x.com/midstate_dev
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!