This guide explains how to export the private key of your Ethereum account used for mining on the Cygnus blockchain.
- Python 3.x
eth-accountPython library installed
pip install eth-account-
Identify your keystore file:
-
Located in your Cygnus data directory:
/root/cygnus_data/keystore/
-
The file will look like:
UTC--YYYY-MM-DDTHH-MM-SS.SSSSSSSSSZ--<your_account_address>
-
-
Create a
export_key.pyfile with the following content (replace placeholders with your actual keystore filename and password):
from eth_account import Account
import json
keystore_path = '/root/cygnus_data/keystore/UTC--<YOUR_DATE_AND_TIME>--<YOUR_ACCOUNT_ADDRESS>'
password = '<YOUR_PASSWORD>'
with open(keystore_path) as f:
keystore = json.load(f)
private_key = Account.decrypt(keystore, password)
print("Private Key: 0x" + private_key.hex())- Run the script to export your private key:
python3 export_key.py-
Output
-
You will see your private key printed:
Private Key: 0x<YOUR_PRIVATE_KEY>
-
Warning: Keep your private key safe and never share it. Anyone with this key can control your Cygnus ETH account.
This script works for the miner account used in the Cygnus blockchain and allows you to export the key for backup or wallet import purposes.