The daemon's wallet scan hashed every watched script against every block
filter with a BigInt SipHash: ~3 filters/s on the VPS once the gap limits
went to 200/100 (~3,300 scripts), i.e. days for a one-year window. The
matcher now lives in dgbpow.wasm next to the PoW hashes — scripts are
uploaded once per scan, each filter is one call, the set is decoded once
and each target binary-searched — ~5,500 filters/s locally, ~2,000/s on
the VPS with block fetches. The JS path was rewritten with uint32 lanes
and exact 32×32 partial products as a fallback (module missing or filter
beyond its buffers). scripts/gcs-check.ts cross-checks both against a
BigInt reference on random filters; `npm run gcs:test -w @dgb-wallet/p2p`.
NOWNodes stopped accepting the proxy's API key ("Unknown API_key" on every
endpoint), which is why the wallet showed "Blockbook HTTP 401" for every
path. The vhost mirror now proxies /blockbook/ to Atomic Wallet's public
Blockbook; ops/blockbook-upstream.sh switches the live vhost either way.
DigiByte is multi-algorithm, so this brings in six hash functions:
SHA256d and Scrypt in JS, and Qubit, Skein, Groestl and Odocrypt from
DigiByte Core's own C sources compiled to WebAssembly (packages/p2p/native,
emscripten via docker). Each header is checked against its nBits target and
the network powLimit before it can enter the chain; a peer serving an
invalid or future-dated header is benched. Competing branches are accepted
only when they carry more accumulated work than what they replace.
npm run pow:test -w @dgb-wallet/p2p verifies real mainnet headers of all
six algorithms and that a tampered header fails.
Receive-chain gap 200 and change-chain gap 100 everywhere a chain is
walked: daemon /balance (new gapInternal, cap 200), Blockbook xpub
queries, history ownership set, and the signing-key derivation in Send so
anything the scan finds is spendable.
Trailing-zero trimming now applies to the hero balance and assets row
only; history, details and the send review keep eight decimals. The hero
number no longer wraps — long balances step down in size.
Price feed defaults on; existing configs flipped once via the v3 marker.
Blockbook history is enabled by default (existing configs migrated once
via a v2 marker; a later deliberate opt-out sticks). The in-panel opt-in
prompt is replaced by a one-line note when it is off.
All displayed DGB amounts go through one formatter: thousands separators,
trailing zeros trimmed, never fewer than two decimals (3,811.32468574,
5.00, 0.0003345). Amount-field values keep full precision.
The BreadWallet-based DigiByte Android/iOS apps used HMAC-SHA512 key
"DigiByte seed" (not BIP32's "Bitcoin seed") when turning the BIP39 seed
into the master node, so the same 12 words give a different key tree and
a standard m/0' scan finds nothing. rootFromSeed() takes an optional HMAC
key; balance scan, history, send and the derivation-path search now
cover m/0' under both keys, and user-added extra paths carry the key.
Login / Import / Create / Settings were vertically centred in the content
column (align-self: center), which on tall screens left a dead band above
the page heading. Now top-aligned; horizontal centring unchanged.
New PasswordInput component wraps every password / PIN / passphrase field
with an eye button that toggles the text. Also: wallet-order drag&drop,
path-search sweep, settings panel sections, change-address policy.