GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(k0): ringsize-2 privacy warning (wallet) + height-gated min-ring-4 consensus floor by liqdmetal · Pull Request #134 · DEROFDN/derohe

Conversation

@liqdmetal

@liqdmetal liqdmetal commented Sep 22, 2026

Copy link
Copy Markdown

Summary

Two-part K0 privacy hardening extracted from our feature/relayos-dvm line:

Fix A — wallet-side, ships without a fork. TransferPayload0 sets LastRingSizeWarning when the ringsize resolves to 2 or < 4; the CLI prints a red privacy warning and requires explicit confirmation before broadcast; the Transfer RPC result carries PrivacyWarning for programmatic callers. SC invocations using SIGNER() require ringsize 2 today, so the wallet warns instead of forcing a higher ring.

Fix B1 — consensus, height-gated. From K0_MIN_RING4_HEIGHT, NORMAL/BURN transactions with ringsize < 4 are rejected. Proposed mainnet gate 7,600,000 (post-HF3); testnet at genesis (immediate). SC_TX / coinbase / registration / premine remain exempt pending the signature-verification migration (K0 Fix C — see #128's verify_sig intrinsic, which is the natural mechanism for that follow-up).

Ringsize 2 provides no anonymity: the ring is sender+receiver only, and Extract_signer (transaction_execute.go) recovers the sender by design at ringsize 2. Our mainnet baseline measurement: 56.8% of transactions at ringsize 2.

Scope coordination with the open series

This branch (feature/relayos-dvm) was a three-topic grab-bag; the other two topics are already covered upstream, so this PR ships only the k0 piece:

  • v9 DVM intrinsics (verify_sig, hash_to_point, pedersen_commit, asset_balance, ec_add, verify_commit) → fully contained in DVM intrinsics: verification + group-arithmetic primitives (verify_sig, commitments, ec_add, ec_mul, verify_adaptor) (fixes #127) #128 (strict subset; its verify_sig_test.go is an older revision of DVM intrinsics: verification + group-arithmetic primitives (verify_sig, commitments, ec_add, ec_mul, verify_adaptor) (fixes #127) #128's)
  • conformance vectors → shipped as test(conformance): cryptographic test vectors for ring signatures, pointry, bulletproofs #132 (this branch carried an older revision)
  • HTLC/std-size contract template tests → self-labeled DRAFT research probes, deliberately not included; happy to share separately if there's interest

Verification

  • Base is current community-dev tip 5c84025d; go build ./... green on pristine base and on this branch
  • go vet clean on all touched packages (blockchain has two unreachable-code warnings in files this PR never touches — pre-existing on the pristine base, verified on a pristine worktree)
  • go test ./blockchain/ -run K0: 3/3 PASS (decision-rule table: ring2 reject, ring4/16 pass, SC/coinbase/registration exempt, pre-fork inactive)
  • go test ./walletapi/ -run K0: 3/4 PASS, 1 skip (TestK0_RingSizeDefaultNoWarning skips without a daemon for balance-tree fetch — by design, t.Skipf)
  • gofmt clean on all 9 changed files (staged blobs audited); no new module dependencies

Review notes

  • Fix B1 is a consensus change: the gate height is a maintainer decision — the constant is one line in config/config.go, trivially moved.
  • B1's SC_TX exemption is explicitly temporary: it ends when signature-based SC auth (Fix C) lands, which DVM intrinsics: verification + group-arithmetic primitives (verify_sig, commitments, ec_add, ec_mul, verify_adaptor) (fixes #127) #128's verify_sig enables.
  • Fix A alone is safe to merge now; B1 can ride the next hard fork or be split out.

Related series: #126 (DVM language) · #128 (DVM intrinsics) · #132 (conformance vectors) · #133 (decoy batch RPC).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@liqdmetal
fix(k0): ringsize-2 privacy warning and consensus min-ring-4 floor
1a5e428
Fix A (wallet-side, no fork): TransferPayload0 sets LastRingSizeWarning
when ringsize resolves to 2 (K0: the ring is sender+receiver only, and
Extract_signer exposes the signer by design) or < 4; the CLI prints the
warning and requires explicit confirmation before broadcast; the
Transfer RPC result carries PrivacyWarning for programmatic callers.

Fix B1 (consensus, height-gated): from K0_MIN_RING4_HEIGHT, NORMAL/BURN
txs with ringsize < 4 are rejected. Mainnet gate proposed at 7,600,000
(post-HF3); testnet at genesis. SC_TX/coinbase/registration/premine are
exempt pending the verify_sig migration (K0 Fix C). SC invocations
using SIGNER() require ringsize 2 today, so the wallet warns instead of
forcing a higher ring.

Mainnet baseline measured by us: 56.8% of transactions at ringsize 2.

Tests: k0_ringsize_test.go (3 decision-rule cases) + k0_guard_test.go
(4 wallet-side cases, one skips without a daemon for balance fetch).
No new module dependencies; base = current community-dev.
This was referenced Sep 22, 2026
feat(dvm): verify_proof intrinsic — in-VM aggregate Bulletproof verification (PoC) #135
Open
feat(p2p): TLS certificate pinning, protocol limits, and handshake hardening #136
Open
feat(walletapi): fail-closed crypto paths, file-signature binding, KDF upgrade #137
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@liqdmetal
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.