Fix wallet connect signature mismatch on mobile and desktop.
Some checks failed
Deploy Explorer Live / deploy (push) Failing after 14s
Validate Explorer / frontend (push) Successful in 1m26s
Validate Explorer / smoke-e2e (push) Failing after 2m19s

Align backend EIP-191 auth message with the DBIS Explorer text the frontend and legacy SPA already sign, instead of the stale SolaceScan string.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-05-22 22:01:11 -07:00
parent 8a61b1bde2
commit 567b4647c0
3 changed files with 41 additions and 1 deletions

View File

@@ -166,6 +166,7 @@ function setStoredWalletSession(session: WalletAccessSession | null) {
window.dispatchEvent(new Event(ACCESS_SESSION_EVENT))
}
// Keep in sync with walletAuthSignMessage() in backend/auth/wallet_auth.go.
function buildWalletMessage(nonce: string) {
return `Sign this message to authenticate with DBIS Explorer.\n\nNonce: ${nonce}`
}