feat: block seed words extraction from view only wallets#7022
Conversation
WalkthroughA validation step was introduced in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant init_wallet
participant WalletDB
User->>init_wallet: Request to export seed words
init_wallet->>WalletDB: Query wallet type
WalletDB-->>init_wallet: Return wallet type
alt Wallet type is DerivedKeys
init_wallet->>WalletDB: Retrieve seed words
init_wallet->>User: Write seed words to file
else Wallet type is not DerivedKeys
init_wallet->>User: Return error "Cannot export seed words from a Hardware/View_only wallet"
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Test Results (CI)1 073 tests 1 068 ✅ 12m 10s ⏱️ For more details on these failures, see this check. Results for commit 18dd28b. |
Test Results (Integration tests) 2 files 1 errors 9 suites 42m 6s ⏱️ For more details on these parsing errors and failures, see this check. Results for commit 18dd28b. |
Description
Block the extraction of seed words from wallets that don't have access to the correct seed words, which is view only wallets and hardware enabled wallets.
Summary by CodeRabbit