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

Switch to published IC libraries #49

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

frederikrothenberger
Copy link

This PR removes the dependencies on the II and IC repositories. The only remaining non-published dependency is the the iota library fork, which I'm still working on and will be removed in a subsequent PR.

@frederikrothenberger frederikrothenberger requested a review from a team as a code owner August 16, 2024 14:18
This PR removes the dependencies on the II and IC repositories
(except for the `getrandom` hack).
The only remaining non-published dependency is the the iota library fork,
which I'm still working on and will be removed in a subsequent PR.
@frederikrothenberger frederikrothenberger force-pushed the frederik/switch-to-published-lib branch from d1ed031 to cb2a655 Compare August 16, 2024 14:41
Copy link

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY left a comment

Choose a reason for hiding this comment

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

LGTM!

Small question below

# II Dependencies
canister_sig_util.workspace = true
# unfortunately, there is a transitive dependency on getrandom which does _not_ compile to wasm unless we add this hacky workaround
ic-crypto-getrandom-for-wasm = { git="https://github.com/dfinity/ic", rev="faacac31032a9b98020475eb608fd63455603556" }
Copy link

Choose a reason for hiding this comment

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

most probably already checked: this one shouldn't go into rust_packages Cargo file too?

Choose a reason for hiding this comment

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

No, that is a hacky workaround that we only ever want in binary crates, because it clashes if included repeatedly. There is a ticket to clean this up with the crypto team: https://dfinity.atlassian.net/browse/CRP-2575

@frederikrothenberger frederikrothenberger merged commit b052a6a into main Aug 19, 2024
8 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/switch-to-published-lib branch August 19, 2024 11:54
frederikrothenberger pushed a commit that referenced this pull request Aug 26, 2024
The last PR (#49) unfortunately introduced a bug (confusion between DER
encoded and raw canister signature public key). This PR fixes it.

In addition, #49 could only be merged, because the unit test for the
rust library were not actually run. CI is changed to no run all rust tests.
frederikrothenberger pushed a commit that referenced this pull request Aug 27, 2024
The last PR (#49) unfortunately introduced a bug (confusion between DER
encoded and raw canister signature public key). This PR fixes it.

In addition, #49 could only be merged, because the unit test for the
rust library were not actually run. CI is changed to no run all rust
tests.
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