jaros1 / Money-Network

Demo with complementary and alternative money. Implemented in ZeroNet and AngularJS. Focus on privacy, encryption, max data in client and min data on ZeroNet. Work in progress.
GNU General Public License v2.0
4 stars 4 forks source link

MN localStorage data was deleted #318

Closed jaros1 closed 6 years ago

jaros1 commented 6 years ago

See a number of times before. Maybe the problem is running two different ZeroBundle instances on same machine. Using ZeroBundle as dev instance and using ZeroBundle2 for first contact test deleting localStorage and sites in Opera and testing startup process for new users. ZeroBundle2 UI-server must use Opera, not Chrome!

screenshot from 2018-02-02 13-26-20

127.0.0.1-1517574480297.log

jaros1 commented 6 years ago

Register new empty MN account. Wallet test failed. Error in W2 session. Mismatch between new public keys in MN session and old public keys in W2 session:

MoneyNetworkAPI.js:3919 Uncaught MoneyNetworkAPI.setup_encryption: invalid call. pubkey cannot be changed. please use new MoneyNetworkAPI to initialize a new instance with new pubkey. old value was undefined. new value is -----BEGIN PUBLIC KEY----- MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiAKBgFBSC3YzoHgTvX+GvIq80R5iH7Ta jPtAHcO+cftvgin3F1t+Zdv0e/o0etfjPYRbU7P2QkHlObmcuF+/k3ey4kVPVUua n74v0juphYJxzAoiC35DKviKF/Te801khHFaLIhV1S3DWY1mmVZsd9OLLbis57G7 hyrwApZ2kPEw/xVXAgMBAAE= -----END PUBLIC KEY----- MoneyNetworkAPI.readonly @ MoneyNetworkAPI.js:3919 MoneyNetworkAPI.setup_encryption @ MoneyNetworkAPI.js:3949 (anonymous) @ all.js:142875 cb2 @ MoneyNetworkAPI.js:2365 ZeroFrame.onMessage @ all.js:27018 (anonymous) @ all.js:26982 postMessage (async) Wrapper.sendInner @ all.js?rev=3221&lang=en:1387 Wrapper.onMessageWebsocket @ all.js?rev=3221&lang=en:882 (anonymous) @ all.js?rev=3221&lang=en:815 13:30:47.997

jaros1 commented 6 years ago

Deleted W2 localStorage. new wallet test. Failed due to missing btc.com wallet login. Generated a dummy wallet. Retested. Wallet Test ok.

jaros1 commented 6 years ago

Restore MN and W2 backup from file. Backup restored but problem with MN-W2 handshake after backup restored. Tried a number of W2 page reload without any load. Tried a number of wallet test from MN without any lock. Reloaded MN page and tried a new wallet test. Now OK. Looks like some info in MN session is not reset after restore. Maybe use MN page reload after restore?

jaros1 commented 6 years ago

Checked MN import. Now using page reload instead of log out + log in. No problem with MN-W2 handshake after restore.

screenshot from 2018-02-03 17-03-40

screenshot from 2018-02-03 17-03-45

jaros1 commented 6 years ago

Closing this issue. Not seen for some time now