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

Move asset certification header code to asset_util #2095

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

frederikrothenberger
Copy link
Contributor

@frederikrothenberger frederikrothenberger commented Dec 1, 2023

This moves code to create the certificate headers from http.rs into the new asset_util crate.

This PR is step 2 of 4:

  1. move code from assets.rs to the crate
  2. move certification header code from http.rs to the crate
  3. refactor the crate a bit to make the public interface nicer
  4. use the crate in the other canisters

This moves code from `http.rs` into the new `asset_util` crate.

This PR is step **2** of 4:
1. move code from `assets.rs` to the crate
2. move certification header code from `http.rs` to the crate
3. refactor the crate a bit to make the public interface nicer
4. use the crate in the other canisters
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

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

LGTM for the code, but maybe add some documentation to the pub-functionality of the new crate (incl. links to v1 and v2 certification). But if you plan the documentation as step #3 that you've outlined in the PR description, then this PR LGTM as-is.

@frederikrothenberger
Copy link
Contributor Author

LGTM for the code, but maybe add some documentation to the pub-functionality of the new crate (incl. links to v1 and v2 certification). But if you plan the documentation as step #3 that you've outlined in the PR description, then this PR LGTM as-is.

Yes, I'll add that then, because the interface is going to change bit anyway.

@frederikrothenberger frederikrothenberger added this pull request to the merge queue Dec 4, 2023
Merged via the queue into main with commit ece8744 Dec 4, 2023
53 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/move-cert-header branch December 4, 2023 11:53
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.

2 participants