Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

full_crypto feature breaks no_std build #12225

Closed
clangenb opened this issue Sep 9, 2022 · 8 comments · Fixed by #12576
Closed

full_crypto feature breaks no_std build #12225

clangenb opened this issue Sep 9, 2022 · 8 comments · Fixed by #12576
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.

Comments

@clangenb
Copy link
Contributor

clangenb commented Sep 9, 2022

The reason is that the ed25519-zebra version on crates.io is not yet no_std compatible. The master branch in that repository is however: https://github.com/ZcashFoundation/ed25519-zebra. substrate doesn't detect this because the full_crypto feature is not used in no_std in its codebase.

@github-actions github-actions bot added the J2-unconfirmed Issue might be valid, but it’s not yet known. label Sep 9, 2022
@burdges
Copy link

burdges commented Sep 9, 2022

We should send them a PR for no_std of course. If they're reluctant to merge it then please send a no_std PR to https://github.com/penumbra-zone/ed25519-consensus too.

@clangenb
Copy link
Contributor Author

clangenb commented Sep 9, 2022

The thing is, they have already implemented no_std compatibility on their master branch since last may. They only need to publish a release on crates.io, which I have requested now.

I kind of assumed that you do not want to add arbitrary git repositories as third-party dependencies without referencing a specific tag, as downstream implementors get simply the newest commit on master branch, which might include breaking changes. But in theory this could be fixed now, by changing the ed25519-zebras source.

@burdges
Copy link

burdges commented Sep 9, 2022

cool, yeah they can simply do a release I'd think. I can ask someone personally if nothing happened by next week.

@clangenb
Copy link
Contributor Author

@burdges I have not heard anything from them. Do you mind talking to them?

@clangenb
Copy link
Contributor Author

@burdges This is now in the polkadot-v0.9.29, and now we need to patch this on our end. May I ask you again to talk to them directly to publish a release? Thank you very much!

@burdges
Copy link

burdges commented Sep 27, 2022

We need this fast then? We'll likely need to republish their crate ourselves, but I'll ask again right quick..

@clangenb
Copy link
Contributor Author

Well, it seems we are the only people using this feature combination so far, and patching it with the git repository works, fortunately. But the sooner, the better!

Thank you very much!

@burdges
Copy link

burdges commented Oct 15, 2022

Did we ever try https://github.com/penumbra-zone/ed25519-consensus ?

I voted zebra way back because zcash foundation maintains it but.. at least penumbra is not just one person now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J2-unconfirmed Issue might be valid, but it’s not yet known.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants