Update to LadyBUG- Peercoin Wallet V3.1 from 2015 Not working, Not syncing

Nothing.

Will I still be able to recover and transfer my Peercoins onto the New Ladybug network after April 17, 2023 deadline? as it sounds like I’m in panic as I have to figure out how to resolve this issue with my older android peercoin wallet, not syncing and transfer onto the newer wallet to be in compliance with Ladybug. Either by File that can bet opened by the Peercoin wallet or sending the peercoin from old peercoin wallet that is not syncing to the new wallet. However I don’t believe even if I put the new wallet address and Send it, it won’t work as this Android wallet was kicked off google store in 2018 from what I learned. so it won’t sync. therefore it won’t send anything on the network.

Your keys will work perfectly fine with the new Ladybug changes. You don’t have to import them before the 17th of April. The old Android wallet doesn’t appear capable of connecting with the Peercoin network any-more, so sending the funds using the wallet doesn’t appear possible.

I aim to provide the wallet restoration instructions today.

2 Likes

Thank you MatthewLM, I hope I have the technical know-how an basic computer skils to follow the instructions using Mac OS 12.6.3 monterey.

I’m pretty sure Peercoin has had 7 or 8 upgrades since 2014. Have you just been absent from the community for that long? Also, I was just wondering where you read about the Ladybug upgrade?

1 Like

@scottyoso It is possible to obtain the HD seed phrase and private keys used by the wallet in HEX format. However the software doesn’t provide private keys in WIF format that can be imported into the Peercoin desktop client. The HD key derivation also uses paths that are incompatible with the flutter wallet.

Therefore, some other software is required to read and convert the private keys into an importable format. I’m not able to provide this at the moment, however I know @backpacker69 was previously able to convert these private keys using existing software: [DEFUNCT] Peercoin Android Wallet 3.2 Released - #118 by backpacker69

I believe the software would have been this: GitHub - peercoin/bitaddress.ppc: JavaScript Client-Side Bitcoin Wallet Generator Maybe someone else has a suggestion for how HEX private keys can be easily converted.


The following instructions are for obtaining the incompatible seed phrase and HEX private keys on macOS Ventura. Please upgrade if possible to avoid possible problems.

Please note that this uses very old software and should be run at your own risk. Whilst I have tested it, it is not guaranteed to work for anyone else. Be careful not to share or expose your private keys or wallet backup.

The following steps require running commands in a command line. This can be done using the Mac Terminal application. Commands may be typed or copied and the enter key must be pressed to run the commands. Commands should be run to completion before entering the next command.

  1. Install homebrew: https://brew.sh
  2. Install required packages with the following commands:
brew install openssl
brew install openjdk
brew install maven
brew install git
brew install java
  1. Ensure that the Java runtime can be located. This following command will ask for your Mac user password:
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
  1. Ensure any spending PIN is removed before exporting a backup from the application. If no spending PIN was previously used, then it is OK.
  2. Move your peercoin-wallet-backup-yyyy-mm-dd file to a directory on your Mac.
  3. Use the cd command (change directory) to change the working directory to the directory containing the wallet backup:
cd /Users/yourusername/path/to/wallet/directory
  1. Decrypt the wallet with the following command, replacing the yyyy-mm-dd date. You will need to enter the backup password. The decrypted_wallet file will contain your decrypted backup, so ensure it is kept safe throughout the remainder of the process:
openssl enc -d -aes-256-cbc -md md5 -a -in peercoin-wallet-backup-yyyy-mm-dd > decrypted_wallet
  1. Clone peercoinj and cd into the directory:
git clone https://github.com/MatthewLM/peercoinj && cd peercoinj
  1. Install the library:
mvn install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
  1. Visit the tools directory:
cd tools
  1. Build the wallet tool by running it once:
./wallet-tool
  1. The following command will dump the seed and any other private keys to a wallet-dump file in the same directory as the wallet. The contents of this file must be kept safe and not shared with anyone:
./wallet-tool dump --wallet=../../decrypted_wallet --dump-privkeys > ../../wallet-dump
  1. The wallet-dump file will contain the wallet seed phrase after “Seed as words”. The wallet key derivation is not the same as the Flutter Peercoin Android wallet and uses the m/0'/0/n and m/0'/1/n paths instead. HEX private keys are found after each priv= in the file. These would need to be converted into WIF format before they can be imported to the desktop wallet using importprivkey in the console (Window → Console in the menu).
2 Likes

I read about Ladybug on bloomberg news article. I never connected with any peercoin community back in 2014 when I bought and didn’t know anyone in RL who actually bought into any crypto, just talk… so my exchange shut down. I had to liquidate my crypto and take my crypto off the exchange into a private wallet. so I found the only wallet available at the time. The Peercoin didn’t catch on like I expected it to. Ethereum copied Peercoin’s PoS concept. as at the time every other cryptocurrency was PoW. After my exhange shutdown. I lost interest in cryptocurrency, and never cared to find another crypto exchange as there were minimal crypto exchanges in my country. So i just lost interest in cryptocurrencies until I re-learned about crypto in 2021 with everything that happened, I missed out on alot of opportunities.

How many programs do I need to use to complete these steps of tasks? also I opened my Mac Terminal- it says I need to update the terminal to ‘zsh’ where my version is older and uses ‘bash’ so Which version is best for this process within Terminal ‘Zsh’ or ‘Bash’ script.
Just reviewing the steps, It seems complex and will likely take me a few days to figure this out. we’ll see.
Also… I don’t know what a ‘Spending Pin’ is… the only password I made was when I made this file ‘Peercoin-wallet-backup-2023-01-01’ i had to make a password. Also this process makes me a new ‘Seed phrase’ within the terminal? so I need to write down this ‘word seed phrase’ to open up this new file covert to be opened up into the new peercoin wallet? I don’t know how to convert HEX to WIF, all of which I do within Terminal command prompt?

Admittedly I used iTerm (https://iterm2.com/). I didn’t expect there to be an issue with the default Terminal. Maybe running the zsh command in the terminal will be sufficient and you can run the remaining commands from there.

You might need to run brew install zsh.

If there are no problems when using bash, I see no reason why bash shouldn’t work either.

You set the spending PIN in the application settings. If you didn’t set one, you don’t need to worry about it.

The seed phrase is what the wallet used originally. To convert the HEX to WIF, you will need to use some software. I referenced the old paper wallet software that might be able to do it.

1 Like

i am stuck at Step 11.

What are you trying to run? You shouldn’t be running openjdk as a command, you just need to install it via brew install openjdk.

I am at step 10-11 code error.
MacBook-Pro tools % ./wallet-tool

Compiling WalletTool to a JAR

./wallet-tool: line 9: mvn: command not found

i didn’t need to use ‘brew’ in Step 2 or ‘mvn’ in Step 9 at the start of the command. as it said error -command not found. (Homebrew no correctly installed)

You need to run the entire commands. If it says the brew command is not found, then it means homebrew was not correctly installed from step 1. Please follow these steps and hopefully homebrew should work:

  1. Install Xcode from the app store and then restart your Mac.
  2. Run the Xcode application and wait for it to download and install anything that it does.
  3. Run the homebrew installation command again from https://brew.sh/
  4. Follow any instructions given by that command carefully. Look out for any errors or problems during the process.
  5. Once homebrew is successfully installed, restart the Mac again and check that it is installed correctly by running: homebrew --version which should output the version you are running.
  6. Assuming homebrew is successfully installed, continue from step 2 in the original instructions. brew install maven is required before the mvn command is available.
1 Like

Xcode is a program. so I just download and install it, and leave the program open as I follow the Terminal steps? I don’t see how Xcode installs onto the terminal prior to Homebrew.

You just need to install it and then let it run once as it may wish to install things during the first run. Don’t do anything in the terminal until Xcode has finished doing any setup. If it asks you to install additional components then you should do that and go through the steps. You can close it after it is complete.

Xcode software app just ask if i want to start a new project… so no project within that program. I am working on terminal.
Homebrew just says to use the install link within terminal script to install homebrew.
I tried $: homebrew --version

No homebrew… yet the line before says homebew installed.

Have you restarted the Mac? What is the output of homebrew --version? What is the output of echo $PATH? Does the output of homebrew --version change after running export PATH=/usr/local/bin:$PATH ?

Yes, i had to start the process over several times. I receive error messages.
to confirm. brew -version Homebrew 4.0.9

MacBook-Pro ~ % brew install java
Warning: openjdk 19.0.2 is already installed and up-to-date.
To reinstall 19.0.2, run:
brew reinstall openjdk

When I get to the final steps it says Java is not installed. I go back to the Brew install java and it doesn’t install java, bew installs openjdk

It looks like you have brew installed now, so go through the steps again. You’ve already installed Java so that’s fine. Don’t forget to run step 3 so that Java can locate the runtime.

I don’t think i’ve install java… i keep receiving this error on step 2

@MacBook-Pro ~ % brew install java
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O#-#
Warning: openjdk 19.0.2 is already installed and up-to-date.
To reinstall 19.0.2, run:
brew reinstall openjdk