<!-- XE-0280 · web/dao: DAO tool builds state-chain blocks with a ›2^53 timestamp; ~3 in 4 submissions rejected · testnet -->
*Markdown view of <https://bounty.xe.network/XE-0280>. The page is the record; this is the same page for reading.*

XE-0280 · Bounty

# web/dao: DAO tool builds state-chain blocks with a \>2^53 timestamp; \~3 in 4 submissions rejected

Awarded
Minorclaimed Medium
web
filed 2026-11-03 01:47 UTC
by bangorlu

Verdict
:   Valid

Tier
:   Minor

Claimed
:   Medium

Area
:   SDK / docs / web

Duplicate of
:   —

Tracked
:   internally

Award
:   100 XE approved
    · ceiling 650

Updated
:   2026-11-10 11:10 UTC

### Patches

- [xe#251](https://github.com/xeprotocol/xe/pull/251)

### History

- [17751](https://bounty.xe.network/log/17751) 2026-11-07 15:59 UTC ticket.status disclosed → awarded
- [17750](https://bounty.xe.network/log/17750) 2026-11-07 15:59 UTC ticket.status patched → disclosed
- [17749](https://bounty.xe.network/log/17749) 2026-11-07 15:59 UTC ticket.disclosed

[Full history](https://bounty.xe.network/log?ref=XE-0280) · [JSON](https://bounty.xe.network/v1/tickets/XE-0280) · [markdown](https://bounty.xe.network/XE-0280.md)

### Report

Suggested tier: **Medium**

## Target

- Pinned commit: `978785929bc17a2f4ab30c383e5fc9cf4d634512` (master, `release: testnet-0005 recovery phrase v2`)
- Web tool: `web/assets/dao.js` (DAO tool); node: public `https://ldn.core.test.network`

## Summary

`web/assets/dao.js:229` builds `timestamp: Date.now() * 1_000_000` as a JS Number (\>2^53, so rounded to a multiple of 64 ns); `web/assets/statechain-block.js` hashes `BigInt(timestamp)` (the rounded double); `dao.js:378-384` submits `timestamp: Number(state.draft.timestamp)` via `JSON.stringify` (shortest round-trip decimal, up to 128 ns off). Go parses the decimal exactly (`statechain/encoding.go:58-61`) and `VerifyBlockHash` (`statechain/crypto.go:42-51`) rejects with "hash mismatch". Sibling tools use `BigInt(Date.now()) * 1_000_000n` correctly — this is the outlier.

## Impact

Every DAO member using the web tool hits it; \~75% of submissions are rejected by the node. Not by design, not UI-only (the node rejects the submission).

## Reproduction (local PoC)

2000 consecutive `Date.now()` values: **1500 mismatch / 500 exact \= 75.0%**, max difference 128 ns; mismatch iff `ms mod 4 != 0`. E.g. `ms=1793634861873`: JSON emits `1793634861873000000`, the tool hashes `1793634861872999936` — 64 ns apart. JS `hashBlock` over the hashed timestamp: `1ab2427a…`; over the submitted timestamp: `35ed2d25…`. Control: Go `HashBlock` over the hashed timestamp equals the JS hash exactly (`1ab2427a…`), proving the JS and Go canonical encodings agree and only the timestamp differs. Node side: `VerifyBlockHash(submitted block) -> hash mismatch: got 1ab2427aa38f5b92b47f962e6ddab207d57305785923697fff1deb3a11ff90ab, want 35ed2d25fb354e77f6654b808b6d7747a4e709fbf0d9cefe283b8c116fdbf008`.

## Live confirmation (public node `https://ldn.core.test.network`)

Attempt 1 died on transport (egress proxy closed the socket); attempt 2 paired JSONs: probe → `hash mismatch: got 7b9fea78…, want e6f24569…`, control → `no signatures`. Both rejected, nothing landed. (Attempt-2 script stdout was not saved — record-keeping gap, not an evidence gap.)

## Duplicate check

Checked against the public bounty board (re-pulled 2026-11-03). No ticket duplicates this finding. Note: XE-0062 (web DAO tool signs a hash over the op value as typed then submits a different byte string) is a sibling defect in the same tool, different field.

## Suggested fix

Build the timestamp as `BigInt(Date.now()) * 1_000_000n` throughout (as the sibling tools do) so the hashed value and the submitted value are identical.

## Reporter

Filed via the XE bounty desk (GitHub sign-in). Full PoC files available on request.

### Thread

Nothing public yet.
