Add comprehensive wallet testing and fix database export

- Create test-wallet.js for standalone functionality testing
- Fix PaperclipDatabase naming conflict for Node.js compatibility
- Verify Ed25519 key generation, signing, and verification
- Test CLIPS address validation and transaction serialization
- All core crypto functionality working correctly
This commit is contained in:
2025-06-15 18:42:02 -07:00
parent 1ceb56c7b8
commit 8414593d47
2 changed files with 90 additions and 3 deletions

View File

@@ -288,9 +288,11 @@ class PaperclipDatabase {
}
// Create global instance
const PaperclipDatabase = new PaperclipDatabase();
const paperclipDB = new PaperclipDatabase();
// Make it available globally
window.PaperclipDatabase = PaperclipDatabase;
if (typeof window !== 'undefined') {
window.PaperclipDatabase = paperclipDB;
}
module.exports = PaperclipDatabase;
module.exports = paperclipDB;