Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to encrypt different plaintext sizes #236

Closed
xevisalle opened this issue Dec 13, 2023 · 0 comments · Fixed by #254
Closed

Allow to encrypt different plaintext sizes #236

xevisalle opened this issue Dec 13, 2023 · 0 comments · Fixed by #254

Comments

@xevisalle
Copy link
Member

xevisalle commented Dec 13, 2023

Summary

At the moment, PoseidonCipher allows to encrypt messages whose size is always 2 BlsScalars. We need to allow for encryption of custom sizes.

For encrypting Citadel Requests, we are currently using 3 instances of the cipher, which involves needed to store onchain 2 extra nonces that are unnecessary. For encrypting Citadel Licenses, we need two instances, which means 1 extra nonce onchain.

This approach would be useful also for standard Phoenix Notes, if we allow to include the metadata per each note.

moCello added a commit that referenced this issue Mar 19, 2024
moCello added a commit that referenced this issue Mar 21, 2024
moCello added a commit that referenced this issue Mar 21, 2024
moCello added a commit that referenced this issue Mar 21, 2024
This was referenced Mar 21, 2024
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 a pull request may close this issue.

1 participant