Railgun-Community / wallet

SDK library to develop RAILGUN wallets
MIT License
37 stars 16 forks source link

Loading wallet with same seed gives different railgunAddress #45

Open timjrobinson opened 1 year ago

timjrobinson commented 1 year ago

I'm trying some tutorials with a wallet I've added some USDC to on Polygon. When following the tutorial on the main site I can get my Balance correctly. However when I'm using https://github.com/staltz/react-native-railgun-example which uses the same libraries just with react native, the balances aren't found.

When I print out the wallet details after initializing with createRailgunWallet on my local tutorial and compare to the react native app, the wallet ID is exactly the same, however railgunAddress is different. The first 69 characters of railgunAddress are the same, and then it starts to diverge. Do you have any idea what could be going wrong here?

I'm using the same encryption key and mnemonic for wallet initialization in both tutorials. I tried another mnemonic too and it had the same effect as above, where the id is the same but the railgunAddress is slightly different after 69 characters.

zy0n commented 1 year ago

Care to show an example of what you're attempting? ie: a way to reproduce this behavior.