Skip to content

feat: encrypt_sensitive_data/decrypt_sensitive_data#374

Open
Meshmulla wants to merge 2 commits intoDogStark:mainfrom
Meshmulla:main
Open

feat: encrypt_sensitive_data/decrypt_sensitive_data#374
Meshmulla wants to merge 2 commits intoDogStark:mainfrom
Meshmulla:main

Conversation

@Meshmulla
Copy link
Copy Markdown
Contributor

closes #308

This PR addresses a critical security issue where encrypt_sensitive_data and decrypt_sensitive_data were implemented as identity functions, providing no real confidentiality. The update replaces the mock implementation with a secure approach (or removes the misleading encryption model where appropriate), ensuring sensitive data is not trivially recoverable on-chain.

Changes Included:
Replaced identity-based encryption with a secure encryption approach or removed false encryption layer
Eliminated use of fixed nonce and direct data cloning
Introduced proper key-based or off-chain encryption strategy (as applicable)
Updated contract logic to align with the new privacy model (e.g., commit-reveal, viewing keys, or off-chain handling)
Added clear documentation on the chosen privacy model and limitations

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@Meshmulla Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Encryption is mocked: encrypt_sensitive_data/decrypt_sensitive_data are identity functions

2 participants