-
Notifications
You must be signed in to change notification settings - Fork 40
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: