Skip to content

This PR extracts encryption and decryption business logic from React hooks into framework-agnostic core classes, making the SDK usable across different frameworks (Vue, Svelte, vanilla JS, etc.).#38

Open
yteresalmjude wants to merge 3 commits intozama-ai:mainfrom
yteresalmjude:main

Conversation

@yteresalmjude
Copy link

Changes

New Files (2)

  • packages/fhevm-sdk/src/core/EncryptionManager.ts - Framework-agnostic encryption manager
  • packages/fhevm-sdk/src/core/DecryptionManager.ts - Framework-agnostic decryption manager

Modified Files (3)

  • packages/fhevm-sdk/src/core/index.ts - Export new core classes
  • packages/fhevm-sdk/src/react/useFHEEncryption.ts - Refactored to use EncryptionManager
  • packages/fhevm-sdk/src/react/useFHEDecrypt.ts - Refactored to use DecryptionManager

add EncryptionManager class
add DecryptionManager class
export new manager classes
use EncryptionManager in useFHEEncryption
use DecryptionManager in useFHEDecrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant