Skip to content

feat(explorer): proof validation security + modern UI refresh#14

Merged
8lecramm merged 4 commits into
DEROFDN:community-devfrom
DHEBP:explorer-ui-proof-display
May 8, 2026
Merged

feat(explorer): proof validation security + modern UI refresh#14
8lecramm merged 4 commits into
DEROFDN:community-devfrom
DHEBP:explorer-ui-proof-display

Conversation

@DHEBP
Copy link
Copy Markdown

@DHEBP DHEBP commented May 7, 2026

Summary

  • Proof validation security: Reject fabricated payload proofs with impossible amounts (>22M DERO or int64 wraparound). Thresholds aligned with HOLOGRAM implementation.
  • Explorer UI refresh: Modern noir theme matching DERO Foundation's design language, with responsive mobile layout and AJAX-based proof form for smooth UX.
  • Documentation cleanup: Replace deprecated go get with modern build instructions, update links to DEROFDN/derohe.

Details

Proof Verification (fix(proof))

Payload proofs are user-provided display proofs, not consensus-level transaction proofs. This PR adds defensive validation to prevent fake proofs from displaying impossible amounts:

  • Use SetUint64 instead of SetInt64 to prevent signed overflow
  • Reject amounts exceeding DERO's 21M hard cap (22M threshold with buffer)
  • Reject amounts that would cause int64 wraparound (≥2^63)
  • Verify payload amount matches the claimed proof amount
  • Add user-facing note in explorer that payload proofs are display-only

Explorer UI (feat(explorer))

  • Dark glassmorphism theme with jade green accents
  • Human-readable block age ("2m 14s ago" instead of raw seconds)
  • AJAX proof form — no page reload on verify
  • Mobile-responsive layout
  • Fixed epoch-0 timestamp display for Block 0
  • Updated footer link to DEROFDN/derohe

Documentation (docs)

  • Modern install: git clone + go build workflow
  • Links updated to DEROFDN/derohe and explorer.derofoundation.org
  • Removed defunct web wallet link, added Matrix community

Test Plan

  • go test ./proof/... — passes
  • go test ./cmd/explorer/... — passes
  • Manual: verify fake proof is rejected
  • Manual: verify legitimate proofs still work
  • Manual: test explorer on mobile viewport

Notes

Pre-existing test failures in walletapi and walletapi/xswd are unrelated to this PR.

DHEBP added 3 commits May 6, 2026 23:31
…sholds

Security enhancement to prevent fake proof displays:
- Reject amounts exceeding DERO hard cap (22M, ~5% buffer above 21M)
- Reject amounts that would cause int64 wraparound (>2^63-1)
- Use SetUint64 instead of SetInt64 to prevent signed overflow
- Verify payload amount matches claimed proof amount
- Add comprehensive test coverage for known fake proof amounts

Thresholds aligned with HOLOGRAM implementation for consistency.
Complete UI refresh inspired by DERO Foundation's noir theme:
- Dark glassmorphism design with jade green accents
- Responsive layout optimized for mobile devices
- AJAX-based proof form for smooth UX (no page reload)
- Block age displayed as human-readable relative time
- Fixed epoch-0 timestamp display for Block 0
- User-facing note that payload proofs are display-only
- Branded header with DERO hex logo
- Updated footer link to DEROFDN/derohe
- favicon.svg and logo.png assets

Includes explorerlib_test.go for formatBlockAge coverage.
- Replace deprecated go get with git clone + go build workflow
- Update GitHub links from deroproject to DEROFDN/derohe
- Update explorer link to explorer.derofoundation.org
- Remove defunct web wallet link
- Add Matrix community channel link
- Fix typos and clarify build instructions
@8lecramm 8lecramm self-assigned this May 8, 2026
@8lecramm 8lecramm merged commit 3af8d55 into DEROFDN:community-dev May 8, 2026
@DHEBP DHEBP deleted the explorer-ui-proof-display branch May 25, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants