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

fflonk -> w3f-pcs rename breaking polkadot-omni-node installation and polkadot-sdk cargo update #7653

Open
2 tasks done
Yung-Beef opened this issue Feb 20, 2025 · 4 comments · May be fixed by #7670
Open
2 tasks done
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@Yung-Beef
Copy link

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

This fflonk W3F package was renamed to w3f-pcs yesterday

From this page I am trying cargo install --git https://github.com/paritytech/polkadot-sdk --tag polkadot-stable2412 --force polkadot-omni-node and getting:

error: failed to compile `polkadot-omni-node v0.1.0 (https://github.com/paritytech/polkadot-sdk?tag=polkadot-stable2412#967989c5)`, intermediate artifacts can be found at `/tmp/cargo-installM8reWS`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  no matching package named `fflonk` found
  location searched: Git repository https://github.com/w3f/fflonk
  required by package `ring v0.1.0 (https://github.com/w3f/ring-proof?rev=665f5f5#665f5f51)`
      ... which satisfies git dependency `ring` of package `bandersnatch_vrfs v0.0.4 (https://github.com/w3f/ring-vrf?rev=0fef826#0fef8266)`
      ... which satisfies git dependency `bandersnatch_vrfs` of package `sp-core v28.0.0 (/home/tgang/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/967989c/substrate/primitives/core)`
      ... which satisfies path dependency `sp-core` of package `polkadot-omni-node-lib v0.1.0 (/home/tgang/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/967989c/cumulus/polkadot-omni-node/lib)`
      ... which satisfies path dependency `polkadot-omni-node-lib` of package `polkadot-omni-node v0.1.0 (/home/tgang/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/967989c/cumulus/polkadot-omni-node)`

I see fflonk is still in the root Cargo.lock a few times so something needs to be updated.

Steps to reproduce

No response

@Yung-Beef Yung-Beef added I10-unconfirmed Issue might be valid, but it's not yet known. I2-bug The node fails to follow expected behavior. labels Feb 20, 2025
@drskalman
Copy link
Contributor

Sorry for the inconveniences 😔🙏 This was long time due. We had to have published the crate to crates.io long time ago w3f/ring-proof#38. It should be more stable now with versioning and crates.io so we don't break everything when we make progress on ring proof side.

The repo's name was no longer representative of what it is doing as it is not only fflonk but is a collection of polynomial commitments. So we should all move on to depend on https://crates.io/crates/w3f-pcs/ now. Thanks a lot.

@cmichi
Copy link
Contributor

cmichi commented Feb 21, 2025

@Yung-Beef We also ran into the issue. We hotfixed it like this in our workspace Cargo.toml:

# hotfix for https://github.com/paritytech/polkadot-sdk/issues/7653
[patch.'https://github.com/w3f/fflonk']
fflonk = { git = "https://www.github.com/w3f/fflonk", rev = "be95d4c971b1d15b5badfc06ff13f5c07987d484" }

@drskalman
Copy link
Contributor

@davxy maybe you could fix this quickily?

@davxy
Copy link
Member

davxy commented Feb 21, 2025

It seems the quick'n dirty solution here would be to adopt the same approach as in paritytech/verifiable#8. Specifically, we can point to bandersnatch_vrfs to lock in a fixed revision of ring_proof, which in turn relies on a fixed revision of fflonk. I’ll aim to prepare the patch tomorrow. After that, I’ll focus on replacing bandersnatch_vrfs with ark-ec-vrfs to implement a more robust and permanent fix.

@davxy davxy linked a pull request Feb 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants