DEV Community

acxxcxx
acxxcxx

Posted on

Post-quantum signatures in a Go PoW L1: ML-DSA-65 costs, binary tx weight, and open contribution targets

Post-quantum signatures in a Go PoW L1

Classical blockchain tutorials rarely prepare you for what happens when every transaction carries a NIST FIPS 204 ML-DSA-65 signature.

Armaxcoin is an experimental Proof-of-Work Layer-1 written in pure Go. Transactions use Go 1.27+ crypto/mldsa. The project runs a public testnet only; coins have no monetary value, and mainnet stays locked until readiness gates are actually evidenced.

This post is not a launch announcement. It is a short engineering note plus a concrete ask for contributors.

Repo: github.com/armaxcoincore/armax-coin

Release: v1.0.12

Overview article: Building Armaxcoin…


1. The painful part: size and verification

ML-DSA-65 public keys and signatures are measured in kilobytes, not tens of bytes. In an L1 that still serializes much of its debug/API surface as JSON, naive “length of JSON string” accounting punishes you twice:

  1. cryptographic payload is already large
  2. hex/text encoding inflates the meter used for block capacity

That shows up as fewer user transactions per block long before CPU verify is the only bottleneck.

Verification cost is the second axis—especially on ARM boards. Matrix/polynomial work in ML-DSA is not free; a block full of user txs is a different machine profile than coinbase-only testnet traffic.


2. What we changed: TxBinaryV1 weight accounting

On testnet height #20,000, consensus switched block/tx size accounting to a canonical binary layout (TxBinaryV1): fixed version/flags, raw key material, length-prefixed fields, extended modes where needed.

Important nuance:

  • Consensus weight uses binary size
  • P2P wire can remain JSON for compatibility during the transition
  • Transaction hash/sign identity stays on the project’s canonical signing model (encoding change ≠ silent signature break)

In our capacity model, a 2 MB block moves from on the order of ~185 user txs (JSON-weighted) toward ~375 user txs (binary-weighted). That is a representation fix, not a magic TPS claim—and on a quiet testnet you will still mostly see coinbase-only blocks until real mempool load exists.

The same height tightened future-timestamp tolerance (C6). v1.0.12 adds no new activation height; it is rolling-compatible with v1.0.11 and focuses on sync-safety, GUI, and miner/node hygiene (including refusing to treat an unsynced node as a healthy mining tip).


3. Other moving parts (for context)

Area Choice
PoW ArmaxHash v2 (chained BLAKE2b), height-gated history preserved
DAA ASERT-style integer path + testnet anti-stall under extreme gaps
P2P TLS 1.3, TOFU pin of node certs (first contact is the trust moment)
Tooling armcoind, armminer, wallet CLI, desktop GUI

None of this is marketed as “finished secure mainnet.” Low hashrate, small peer sets, and TOFU bootstrap risks are acknowledged in-tree.


4. Where contributors can help right now

We opened scoped issues instead of a vague “PRs welcome”:

Priority Topic Why it matters
Good first issue Machine-readable -json output for armwallet Tiny surface, easy review
Security P2P validation + resource bounds Small TLS meshes fail in boring ways (malformed messages, resource exhaustion)
Release engineering SPDX 2.3 SBOM generate/verify for releases Supply-chain baseline before anyone should trust binaries harder
Performance Cross-platform benchmark runner Publish verify cost on amd64/arm64 with repeatable commands
UX Desktop GUI accessibility Wallet UI should not only work for the author

Start here: github.com/armaxcoincore/armax-coin/issues

Build path is standard Go (go test ./... on supported platforms; see CONTRIBUTING). Testnet faucet/docs live on armax-coin.cloud.


5. Feedback that is actually useful

Prefer concrete critique over vibes:

  1. Weight model — Is height-gated binary accounting enough, or should the wire protocol move next?
  2. P2P TOFU — What minimum peer-diversity / pin-distribution practice would you require before calling the mesh adult?
  3. ML-DSA-65 in L1 — What benchmark panel would you accept as “we measured verify cost honestly”?
  4. Fee policy — Should wallets quote fees against binary weight immediately, even while gossip is JSON?

Issue comments and small PRs beat “interesting project” one-liners (though those are fine too).


6. Non-goals for this post

  • No token price discussion
  • No guaranteed mainnet date
  • No claim of formal verification or external audit completion

If you need production settlement today, use something audited and battle-tested. If you want a readable Go codebase exercising PQ signatures on a live testnet mesh, the repo is open.

Links: repository · v1.0.12 · issues · testnet

Top comments (0)