-
Notifications
You must be signed in to change notification settings - Fork 19
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 creation of licenses without Request #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, only I'd rename LicenseCreator to LicenseSource or LicenseOrigin, or some other name which suggests it is a data rather than a function or an agent.
@@ -25,6 +26,11 @@ use crate::request::{Request, REQ_PLAINTEXT_SIZE}; | |||
pub(crate) const LIC_PLAINTEXT_SIZE: usize = Signature::SIZE + JubJubScalar::SIZE; | |||
const LIC_ENCRYPTION_SIZE: usize = LIC_PLAINTEXT_SIZE + ENCRYPTION_EXTRA_SIZE; | |||
|
|||
pub enum LicenseCreator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rename this enum to make it a unanimated noun. Name like "creator" suggests it is a function or a module, and it is very misleading. It could be a LicenseSource or LicenseOrigin or sth. like that.
This PR does the following: