ethereum / mist

[DEPRECATED] Mist. Browse and use Ðapps on the Ethereum network.
http://ethereum.org
GNU General Public License v3.0
7.44k stars 2.12k forks source link

Unable to import DAO Wallet into MIST with or without GUI #751

Closed mruepp closed 8 years ago

mruepp commented 8 years ago

Node type: geth/eth OS: osx Network type: main/test Mist version: 0.7.4

OK, here´s a new issue: What I actually did was I copied the json which was revealed as text (when one clicked on the Download Button after selected "create new eth wallet" on the DAO Website into a txt file and named it presale-wallet.json. Because i never had the option to download the wallet as a file. This is what happens when I manually import the Presales Wallet from DAO:

Passphrase: panic: runtime error: slice bounds out of range

goroutine 1 [running]:
panic(0x4a9b5e0, 0xc820012090)
/Users/jeffrey/goroot16/src/runtime/panic.go:464 +0x3e6
github.com/ethereum/go-ethereum/accounts.decryptPreSaleKey(0xc8203f1000, 0x1ea, 0x3ea, 0xc820011560, 0x12, 0x8, 0x0, 0x0)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/accounts/presale.go:56 +0x7b6
github.com/ethereum/go-ethereum/accounts.importPreSaleKey(0xadc9808, 0xc82040e0e0, 0xc8203f1000, 0x1ea, 0x3ea, 0xc820011560, 0x12, 0x0, 0x0, 0x0, ...)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/accounts/presale.go:34 +0x8c
github.com/ethereum/go-ethereum/accounts.(Manager).ImportPreSaleKey(0xc82040ab00, 0xc8203f1000, 0x1ea, 0x3ea, 0xc820011560, 0x12, 0x0, 0x0, 0x0, 0x0, ...)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/accounts/account_manager.go:316 +0xb3
main.importWallet(0xc8203d2f00)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/cmd/geth/accountcmd.go:300 +0x387
github.com/codegangsta/cli.Command.Run(0x4bf2850, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4d08160, 0x1e, 0x0, ...)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/command.go:174 +0x1399
github.com/codegangsta/cli.(App).RunAsSubcommand(0xc8203d2c80, 0xc8203d2b40, 0x0, 0x0)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/app.go:298 +0x11c9
github.com/codegangsta/cli.Command.startApp(0x4bf7170, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4cb27e0, 0x17, 0x0, ...)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/command.go:249 +0x74f
github.com/codegangsta/cli.Command.Run(0x4bf7170, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4cb27e0, 0x17, 0x0, ...)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/command.go:65 +0x79
github.com/codegangsta/cli.(*App).Run(0xc8203d2a00, 0xc82000a280, 0x4, 0x4, 0x0, 0x0)
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/Godeps/_workspace/src/github.com/codegangsta/cli/app.go:187 +0x112b
main.main()
/Users/jeffrey/go/src/github.com/ethereum/go-ethereum/cmd/geth/main.go:266 +0x53
luclu commented 8 years ago

This looks quite interesting. @bas-vk? Perhaps related? https://github.com/ethereum/mist/issues/714

frozeman commented 8 years ago

@Gustav-Simonsson @fjl any idea?

bas-vk commented 8 years ago

I will take a look at it tomorrow.

bas-vk commented 8 years ago

The used presale wallet is invalid. Geth tries to decrypt the pre-sale key and makes an assumption that one mandatory field (the seed) actually contains 16 bytes of data. In this case it does not.

@mruepp, since this issue was reported month's ago is it still an issue?

mruepp commented 8 years ago

No actually bot. By copying into keystore folder it always worked. But not by importing it with the import menu

lock[bot] commented 6 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.