Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to restore Daedalus wallet from ikal using encrypted_root_private_key #81

Open
okepod opened this issue Aug 25, 2022 · 4 comments

Comments

@okepod
Copy link

okepod commented Aug 25, 2022

I have a folder for daedalus0.12. I restored it with the import function of daedalus, but I can't send money.
Here is the content of the error.
CardanoSolutions/ByronWalletRecovery#2

I want to use ikal to restore it to Daedalus and perform a remittance test.

I entered this on MAC, but the return is like this.

wget https://raw.githubusercontent.com/piotr-iohk/ikar/master/docker-compose.yml
NETWORK=testnet docker-compose up

zsh: command not found: docker-compose

Cannot connect to http://localhost:4444/, clic

how do i solve this?
I would appreciate it if you could tell me.

I'm Japanese, so I'm not good at English. sorry.

@piotr-iohk
Copy link
Owner

zsh: command not found: docker-compose

I think you may not have docker-compose tool on your system. I'm not a Mac user, but here are some information:

brew install docker docker-compose docker-machine xhyve docker-machine-driver-xhyve

Also, I believe you want to start it on mainnet not testnet. Then do:

wget https://raw.githubusercontent.com/piotr-iohk/ikar/master/docker-compose.yml
NETWORK=mainnet docker-compose up

(I've just made some update to docker-compose.yml so you might one to re-download it)

@okepod
Copy link
Author

okepod commented Aug 25, 2022

Thank you!!
I can access ikal with this command, but I can't import it to Daedalus after that.

git clone https://github.com/piotr-iohk/ikar.git
cd ikar
bundle config set without 'development test'
bundle install
ruby app.rb

↓I got an error when I used the API below, but is this API old and can't be used?

curl -X POST https://localhost:<PORT>/v2/byron-wallets \ 
-d '{"encrypted_root_private_key":"<xprv>","name":"My Old Byron Wallet","passphrase_hash":"<pass>","style":"random"}' \ 
--cert /Users/<USER>/Library/Application Support/Daedalus Mainnet/tls/client/client.pem \
--cacert /Users/<USER>/Library/Application Support/Daedalus Mainnet/tls/client/ca.crt \ 
-H "Content-Type: application/js

スクリーンショット 2022-08-26 8 25 46

on"

@piotr-iohk
Copy link
Owner

It should work, just make sure you fill all the information in <>.

curl -X POST https://localhost:<PORT>/v2/byron-wallets \ 
-d '{"encrypted_root_private_key":"<xprv>","name":"My Old Byron Wallet","passphrase_hash":"<pass>","style":"random"}' \ 
--cert /Users/<USER>/Library/Application Support/Daedalus Mainnet/tls/client/client.pem \
--cacert /Users/<USER>/Library/Application Support/Daedalus Mainnet/tls/client/ca.crt \ 
-H "Content-Type: application/js

@okepod
Copy link
Author

okepod commented Aug 29, 2022

I get an error.
By the way, there is no passphrase_hash, so it is null.

I tried the second one with another code, but it asks for mnemonic_sentence.
Please help me.

okepod@okepodnoiMac ~ % curl -X POST https://localhost:57835/v2/byron-wallets \
-d '{"encrypted_root_private_key":"3392※※72","name":"My Old Byron Wallet","passphrase_hash”:”null”,”style":"random"}'
--cert /Users/okepod/Library/Application Support/Daedalus Mainnet/tls/client/client.pem
--cacert /Users/okepod/Library/Application Support/Daedalus Mainnet/tls/client/ca.crt
-H "Content-Type: application/json"

curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
curl: (3) URL using bad/illegal format or missing URL
zsh: command not found: -d
zsh: command not found: --cert
zsh: command not found: -H

okepod:Daedalus Mainnet hiroki$ curl --cacert "$HOME/Library/Application Support/Daedalus Mainnet/tls/client/ca.crt" \

   --cert "$HOME/Library/Application Support/Daedalus Mainnet/tls/client/client.pem"
   https://localhost:49375/v2/byron-wallets -H "Content-Type: application/json"
   -d '{"encrypted_root_private_key":"3392※※72","name":"","passphrase_hash":null,"style":"random"}'

{"code":"bad_request","message":"Error in $: parsing Cardano.Wallet.Api.Types.ByronWalletPostData(ByronWalletPostData) failed, key 'mnemonic_sentence' not found"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants