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

Fix full no_std compatibility #67

Merged
merged 7 commits into from
Apr 12, 2021
Merged

Fix full no_std compatibility #67

merged 7 commits into from
Apr 12, 2021

Conversation

CPerezz
Copy link

@CPerezz CPerezz commented Mar 11, 2021

Resolves: #66

NOTE Will merge as soon as dusk-network/bls12_381#55 is merged

@CPerezz CPerezz added the team:Core Low Level Core Development Team (Rust) label Mar 11, 2021
@CPerezz CPerezz requested a review from ZER0 March 11, 2021 12:35
Copy link

@ZER0 ZER0 left a comment

Choose a reason for hiding this comment

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

Few questions to understand, plus I assuming this is solely needed at this moment due to dusk-plonk in no-std is that correct?

In that case, I will postpone the release of bls as well to the next iteration, however I would fix the broken_intra_doc_links (so I would create a different PR for that, as you did for jubjub)

Cargo.toml Outdated
dusk-bytes = "0.1"
dusk-bls12_381 = {version="0.6", default-features=false}
subtle = {version="^2.3", default-features = false}
rand_core = {version = "0.5", default-features=false}
subtle = {version="2.0", default-features = false}
Copy link

Choose a reason for hiding this comment

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

Care to elaborate this downgrade…?
What are we gaining, what are we losing?

Copy link
Author

Choose a reason for hiding this comment

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

Nevermid. Will bring it back.

subtle = {version="^2.3", default-features = false}
rand_core = {version = "0.5", default-features=false}
subtle = {version="2.0", default-features = false}
rand_core = {version = "0.6", default-features=false}
Copy link

Choose a reason for hiding this comment

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

does it needed to be updated? Why?

Copy link
Author

Choose a reason for hiding this comment

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

To make it no_std compatible with the new random crates. This seems to be the direction that Rust ecosystem is taking. Moving away from rand to rand_core.

@CPerezz CPerezz changed the title Update to latest bls12_381 version with full no_std compatibility Fix full no_std compatibility Apr 12, 2021
@CPerezz CPerezz requested a review from ZER0 April 12, 2021 10:09
Copy link

@vlopes11 vlopes11 left a comment

Choose a reason for hiding this comment

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

LGTM

@CPerezz CPerezz merged commit 1c8a984 into release-0.9 Apr 12, 2021
@CPerezz CPerezz deleted the update_bls_version branch April 12, 2021 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:Core Low Level Core Development Team (Rust)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants