feat: Add wallet management tools for RustChain MCP Server#26
Open
HuiNeng6 wants to merge 1 commit intoScottcjn:mainfrom
Open
feat: Add wallet management tools for RustChain MCP Server#26HuiNeng6 wants to merge 1 commit intoScottcjn:mainfrom
HuiNeng6 wants to merge 1 commit intoScottcjn:mainfrom
Conversation
- Add rustchain_crypto.py module with Ed25519 and BIP39 support - Add 9 new wallet tools: - wallet_create: Generate new Ed25519 wallet with BIP39 mnemonic - wallet_balance: Check RTC balance for any wallet - wallet_history: Get transaction history - wallet_transfer_signed: Sign and submit RTC transfers - wallet_list: List wallets in local keystore - wallet_export: Export encrypted keystore JSON - wallet_import: Import from keystore or mnemonic - wallet_export_mnemonic: Export BIP39 seed phrase - wallet_delete: Delete wallet from keystore - Security features: - AES-256-GCM encryption for private keys - PBKDF2 key derivation (100,000 iterations) - Mnemonic stored encrypted, never exposed in responses - Secure keystore at ~/.rustchain/mcp_wallets/ - Add comprehensive unit tests (24 tests, all passing) - Update README with wallet documentation - Update dependencies: cryptography>=41.0, mnemonic>=0.20 Bounty: #2302 (75 RTC) Wallet: 9dRRMiHiJwjF3VW8pXtKDtpmmxAPFy3zWgV2JY5H6eeT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements wallet management tools for the RustChain MCP Server as part of Bounty #2302 (75 RTC).
New Features
rustchain_crypto.py module:
9 New Wallet Tools:
Security Features
Testing
Dependencies Added
Documentation
Testing
\\�ash
pip install cryptography mnemonic pytest
pytest tests/test_wallet_tools.py -v
24 passed in 6.33s
\\
Bounty Info
Checklist