Skip to content

This Rust project provides a simple tool for managing private and public keys in Base58 format, commonly used for wallets like Backpack wallet. It decodes the keys, validates their size, and serializes them into a JSON file for storage

Notifications You must be signed in to change notification settings

Skillz23/rust-wallet-key-manager-for-Eclipse-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Rust Wallet Key Manager for Eclipse

This project decodes Base58-encoded private and public keys used in Backpack wallets for example, ensures they are in the correct format, and serializes them into a JSON file (wallet.json).

Features

  • Base58 decoding
  • Keypair serialization as JSON

Prerequisites

Directory Structure:

Make sure your repository has a clean and organized folder structure:

├── .gitignore
├── README.md
└── wallet_key_json/
    ├── Cargo.toml
    └── src/
        └── main.rs

Running the Code

Clone the repository:

git clone https://github.com/Skillz23/rust-wallet-key-manager-for-Eclipse-v2.git
cd rust-wallet-key-manager-for-Eclipse-v2/wallet_key_json

Install dependencies and run the project:

To run the project, use Cargo: cargo run

Replace the placeholder keys with actual Base58-encoded keys:

In the file src/main.rs, replace the following placeholders with your actual Base58-encoded keys:

let private_key_str = "your_base58_private_key_here";
let public_key_str = "your_base58_public_key_here";

Running the project:

After running the project with cargo run, the program will create a file called wallet.json, which will contain the serialized keypair.

Example:

You can replace the placeholders with actual keys, for example:

Private Key: 5p3fsFU7GvNJU5L47UBiqK2TUTs8nXoN2L9Qqc8vVNP3sctwUqe

Public Key: B2NpV8eA5RTSnH5F8KMNRNYvExg5PAkrtk

When you run the project, the resulting wallet.json file will look like this:

[67, 98, 65, 213, 135, 20, ... ]

Contributing

Feel free to open issues or submit pull requests if you would like to contribute to the project.

License

This project is licensed under the MIT License

About

This Rust project provides a simple tool for managing private and public keys in Base58 format, commonly used for wallets like Backpack wallet. It decodes the keys, validates their size, and serializes them into a JSON file for storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages