debug: enhance account signer debugging

- Added detailed logging for account signer capabilities
- Check if account has signer with decrypt method
- This will help identify if the ExtensionAccount has proper NIP-44 decryption capabilities
- Following applesauce examples pattern for signer usage
This commit is contained in:
Gigi
2025-10-02 10:06:37 +02:00
parent 06b15f3fe2
commit b112520056

View File

@@ -127,6 +127,9 @@ export const fetchBookmarks = async (
console.log('Has encrypted content:', bookmarkListEvent.content && bookmarkListEvent.content.includes(':'))
console.log('Account type:', typeof activeAccount)
console.log('Account has decrypt method:', typeof activeAccount.decrypt)
console.log('Account signer:', activeAccount.signer)
console.log('Account signer type:', typeof activeAccount.signer)
console.log('Account signer decrypt method:', typeof activeAccount.signer?.decrypt)
// Process bookmarks using DRY helper function