Skip to content

cygnus-chain/wallet-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Export Private Key of Your Cygnus ETH Account

This guide explains how to export the private key of your Ethereum account used for mining on the Cygnus blockchain.

Requirements

  • Python 3.x
  • eth-account Python library installed
pip install eth-account

Steps

  1. 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>
      
  2. Create a export_key.py file 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())
  1. Run the script to export your private key:
python3 export_key.py
  1. 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.

About

How to get private key of your eth account for your miner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages