Skip to content

Conversation

@zeluisping
Copy link

Adds private events and improves privacy controls for UCEF extensions by replacing standard OpenZeppelin modules with custom implementations that anonymize event emission and restrict event visibility.

✨ What's New

  • ERC-4626 Vault Privacy: Standard Deposit and Withdraw events replaced with private events using _emitDepositEvent and _emitWithdrawEvent methods that emit PrivateEvent with restricted visibility to authorized viewers only
  • Anonymous Pausing: UCEFPausable now inherits from AnonymousPausable instead of OpenZeppelin's Pausable, anonymizing the pause controller in event emissions
  • Private Governance: UCEFVotes now inherits from PrivateVotes instead of OpenZeppelin's Votes, aligning voting logic with privacy requirements

🔧 Implementation Details

  • Created AnonymousPausable utility that emits pause/unpause events with anonymized accounts and provides virtual hooks for customization
  • Created PrivateVotes utility that provides private event emission for governance operations
  • Implemented event viewer function pattern following the established UCEF pattern (_get*EventViewers) to determine which addresses can view each event

@zeluisping zeluisping self-assigned this Oct 9, 2025
@zeluisping zeluisping added the enhancement New feature or request label Oct 9, 2025
@zeluisping zeluisping changed the title Feat/enhance extensions privacy Enhance UCEF extensions privacy Oct 12, 2025
@zeluisping zeluisping force-pushed the feat/add-private-events-to-main-ucef-tokens branch from 931f8af to 5a558ef Compare October 13, 2025 16:11
@zeluisping zeluisping force-pushed the feat/enhance-extensions-privacy branch from 041582d to 7be5c30 Compare October 13, 2025 16:12
@zeluisping
Copy link
Author

Fixed conflicts

@zeluisping zeluisping force-pushed the feat/add-private-events-to-main-ucef-tokens branch from 5a558ef to 0af0363 Compare October 13, 2025 16:16
Base automatically changed from feat/add-private-events-to-main-ucef-tokens to dev October 13, 2025 16:16
@zeluisping zeluisping force-pushed the feat/enhance-extensions-privacy branch from 7be5c30 to 032c6ed Compare October 13, 2025 16:17
@zeluisping zeluisping force-pushed the feat/enhance-extensions-privacy branch from 032c6ed to 1deb537 Compare October 13, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants