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 creation of licenses without Request #123

Merged
merged 7 commits into from
Dec 5, 2024
Merged

Allow creation of licenses without Request #123

merged 7 commits into from
Dec 5, 2024

Conversation

xevisalle
Copy link
Member

@xevisalle xevisalle commented Dec 4, 2024

This PR does the following:

  • Allows LP to issue licenses without requiring a Request object
  • Other API improvements

@xevisalle xevisalle linked an issue Dec 4, 2024 that may be closed by this pull request
@xevisalle xevisalle self-assigned this Dec 4, 2024
@xevisalle xevisalle marked this pull request as ready for review December 4, 2024 23:15
@xevisalle xevisalle requested review from miloszm and HDauven December 5, 2024 09:45
Copy link
Member

@HDauven HDauven left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xevisalle xevisalle merged commit 76ef6ec into main Dec 5, 2024
6 checks passed
@xevisalle xevisalle deleted the lite branch December 5, 2024 13:55
Copy link
Contributor

@miloszm miloszm left a 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 {
Copy link
Contributor

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.

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.

Allow creation of licenses without a request
3 participants