graft-project / GraftMobile

13 stars 10 forks source link

Not able to do a "proof of send" for the transactions sent from the mobile wallet #61

Open dinpd opened 4 years ago

dinpd commented 4 years ago

Due to not being able to get the tx private key

dinpd commented 4 years ago

In the future we will look into storing tx private keys on the device. For now, please follow the following instructions:

  1. Run local graftnoded with mainnet blockchain (in case you have an issues running this, please contact, we'll try to temporary run remote RPC for you)

  2. Obtain mnemonic seed from GUI Wallet (Settings -> Show Mnemonic Password)

  3. run graft-wallet-cli to restore wallet from mnemonic seed (assuming you have the graftnoded running on localhost. if not - adjust daemon addresы with --daemon-address):

    ./graft-wallet --restore-deterministic-wallet

    specify wallet filename (e.g. mywallet) and password. PASSWORD SHOULD BE THE SAME AS YOU USE IN GUI WALLET.

  4. wait for wallet synchronize with blockchain, quit graft-wallet-cli. You will see the following files after graft-wallet-cli

    • mywallet
    • mywallet.keys
  5. You will receive two cache files from Graft Team - one of them will contain tx key. Repeat following steps for each file (until you'll get tx key): 5.1 - rename cache file so it named exactly the same as you specified on step 3 (e.g. mywallet). Original cache file created on step 4 can be deleted. 5.2 - run ./graft-wallet-cli --wallet-file mywallet 5.3 - invoke get_tx_key <your_tx_id>; in case you'll see the output Tx key: <tx-key>