web-examples icon indicating copy to clipboard operation
web-examples copied to clipboard

React dapp - per-chain genesis hash for Polkadot-like networks

Open valentunn opened this issue 2 years ago • 0 comments

We found out that https://react-app.walletconnect.com dapp uses same genesis hash for both Westend and Polkadot.

Genesis hash is a replay-attack prevention mechanism that is used to specify which network transaction will be submitted in. Currently dapp uses Westend genesis hash for both Polkadot and Westend.

Ideally, different genesis hashes should be used for different networks so wallets will be able to corrently identify network of transaction:

Polkadot: 0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3 Westend: 0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e

valentunn avatar Apr 28 '23 06:04 valentunn