{"action":"created","issue":{"url":"https://api.github.com/repos/spesmilo/electrum/issues/4891","repository_url":"https://api.github.com/repos/spesmilo/electrum","labels_url":"https://api.github.com/repos/spesmilo/electrum/issues/4891/labels{/name}","comments_url":"https://api.github.com/repos/spesmilo/electrum/issues/4891/comments","events_url":"https://api.github.com/repos/spesmilo/electrum/issues/4891/events","html_url":"https://github.com/spesmilo/electrum/issues/4891","id":386455613,"node_id":"MDU6SXNzdWUzODY0NTU2MTM=","number":4891,"title":"Recovered seed (BIP39) generates unspendable addresses","user":{"login":"MrTschi","id":9491895,"node_id":"MDQ6VXNlcjk0OTE4OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9491895?v=4","gravatar_id":"","url":"https://api.github.com/users/MrTschi","html_url":"https://github.com/MrTschi","followers_url":"https://api.github.com/users/MrTschi/followers","following_url":"https://api.github.com/users/MrTschi/following{/other_user}","gists_url":"https://api.github.com/users/MrTschi/gists{/gist_id}","starred_url":"https://api.github.com/users/MrTschi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrTschi/subscriptions","organizations_url":"https://api.github.com/users/MrTschi/orgs","repos_url":"https://api.github.com/users/MrTschi/repos","events_url":"https://api.github.com/users/MrTschi/events{/privacy}","received_events_url":"https://api.github.com/users/MrTschi/received_events","type":"User","site_admin":false},"labels":[{"id":1116121966,"node_id":"MDU6TGFiZWwxMTE2MTIxOTY2","url":"https://api.github.com/repos/spesmilo/electrum/labels/maybe-malware","name":"maybe-malware","color":"014460","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-12-01T12:51:11Z","updated_at":"2018-12-04T05:29:53Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI generated a new walled with CoPay (iOS App) and noted down the BIP39 recovery seed.\r\nWith this seed I restored my brand new wallet in electrum 3.2.3 with \"legacy addresses\" selected.\r\nAfter that, I checked the master public key of both apps and they are identically.\r\nI generated a new address within electrum and moved all my funds to this address.\r\nThe payment arrived and is visible in my electrum wallet.\r\nSwitching to CoPay app, there is no transaction within this wallet, so I wanted to move funds back to bitstamp.net but when I'm trying to send a transaction within electrum I get the following error:\r\n`\r\n\r\nerror: {'code': 1, 'message': 'the transaction was rejected by network rules.\\n\\nmandatory-script-verify-flag-failed (Script failed an OP_EQUALVERIFY operation) (code 16)\\n[0100000002436331a829f208723d53091b7b8b06a4277d00c156e34ead9c154f9514241cd9000000006a47304402204e4d1c687f83be1480119e5fa347b482296ce4d2fb042852eacbdee4b91ba1fa02206500d4b4dcf836acc8d924a4b2073eb0362440a7b4908b4b2ff841026beeebf60121037eb62028b4b773e957fedb6e8375154e7c70b40d84ea6df79a87e610b0d9ec45feffffff511ec4751c1098e171117ccb6634f7747b51cdfdad71965ef6e07c1097cda2f1160000006a4730440220153a0f5d59b7fdf66cc7dcf1e08cb845a6d8188aadedc11e75096632e6834ae202200a3e3d36f01ec2998489d0bb5fd16e6864fced292d80e7bf8250fc0fa7125a500121037eb62028b4b773e957fedb6e8375154e7c70b40d84ea6df79a87e610b0d9ec45feffffff012e049e040000000017a9148482620e9cbe2f35624e72c91718d71e5718fc5587d66c0800]'}`\r\n\r\nI tried to re-import the wallet within electrum using my seed, but after that the newly imported wallet does not have any transactions.\r\n\r\nWhat happened here? Is it possible to recover my funds?\r\n\r\n\r\nThanks,\r\nMax"},"comment":{"url":"https://api.github.com/repos/spesmilo/electrum/issues/comments/443976841","html_url":"https://github.com/spesmilo/electrum/issues/4891#issuecomment-443976841","issue_url":"https://api.github.com/repos/spesmilo/electrum/issues/4891","id":443976841,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzk3Njg0MQ==","user":{"login":"ecdsa","id":2343238,"node_id":"MDQ6VXNlcjIzNDMyMzg=","avatar_url":"https://avatars0.githubusercontent.com/u/2343238?v=4","gravatar_id":"","url":"https://api.github.com/users/ecdsa","html_url":"https://github.com/ecdsa","followers_url":"https://api.github.com/users/ecdsa/followers","following_url":"https://api.github.com/users/ecdsa/following{/other_user}","gists_url":"https://api.github.com/users/ecdsa/gists{/gist_id}","starred_url":"https://api.github.com/users/ecdsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecdsa/subscriptions","organizations_url":"https://api.github.com/users/ecdsa/orgs","repos_url":"https://api.github.com/users/ecdsa/repos","events_url":"https://api.github.com/users/ecdsa/events{/privacy}","received_events_url":"https://api.github.com/users/ecdsa/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T05:29:53Z","updated_at":"2018-12-04T05:29:53Z","author_association":"MEMBER","body":"> So all the initially generated addresses seem to be incorrect (not from xpub), but newly generated addresses are derived from xpub.\r\n\r\nThis suggests that keystore.xpub_receive was corrupted in memory during the initial address generation.\r\nit is interesting to see that change addresses are different too. This suggests that the corruption hit keystore.xpub, before keystore.xpub_receive was generated.\r\n\r\nRandom memory corruption (a bit flip) could possibly corrupt the method that derives xpub_receive from xpub, because intermediate variables are not checksummed. However, such a scenario would only affect receiving addresses or change addresses, not both. Here it seems that keystore.xpub was corrupted. \r\nI do not think that random memory corruption could have done that, because xpubs are checksummed. \r\n\r\n\r\n"}}
{"actor":{"display_login":"ecdsa"}}