mirror of
https://github.com/Such-Software/wowcheckout.git
synced 2026-10-17 05:51:45 +02:00
isLikelyPrimaryAddress() required exactly 95 chars starting with "4" — that's the Monero primary-address shape. Wownero primaries are 97 chars starting with "Wo". This was inherited from the xmrcheckout fork and never updated. Effect: pasting a valid Wownero address into the login form silently failed isLikelyPrimaryAddress(), the validate API was never called, no green VALID indicator rendered, canSubmit stayed false, the Sign in button stayed greyed out. Suchshop sidestepped this because that tenant was provisioned via direct SQL/API, not through this form. Fix: 95 → 97, "4" → "Wo". One file, two lines. The backend cryptographic validation in routes.py: _validate_payment_address_and_view_key() was correct all along — it checks the 2-byte Wownero varint prefix (byte 0 == 178). The UI just wasn't asking it.