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

Use the group-specific scalar type when hashing in BDN #553

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

Stebalien
Copy link
Contributor

Previously, hashPointToR would always use mod.Int but that only works with the Kilic backend. This change makes the BDN scheme work with all backends.

This PR is currently based on #546 as it touches masks. You can ignore everything but the last commit.

Copy link

🔒 Could not start CI tests due to missing safe PR label. Please contact a DEDIS maintainer.

Stebalien added a commit to filecoin-project/go-f3 that referenced this pull request Sep 22, 2024
It's probably going to take a while for upstream to merge the changes so
we're importing just the changed package (BDN) and the new
package (Gnark) into this repo. That way we avoid forking the entire
repo but can still import our changes.

Any changes to these pacakges should be submitted as PRs to upstream
_first_, then backported to this repo.

Includes:

- dedis/kyber#546
- dedis/kyber#551
- dedis/kyber#553
Stebalien added a commit to filecoin-project/go-f3 that referenced this pull request Sep 22, 2024
It's probably going to take a while for upstream to merge the changes so
we're importing just the changed package (BDN) and the new
package (Gnark) into this repo. That way we avoid forking the entire
repo but can still import our changes.

Any changes to these pacakges should be submitted as PRs to upstream
_first_, then backported to this repo.

Includes:

- dedis/kyber#546
- dedis/kyber#551
- dedis/kyber#553
Stebalien added a commit to filecoin-project/go-f3 that referenced this pull request Sep 23, 2024
It's probably going to take a while for upstream to merge the changes so
we're importing just the changed package (BDN) and the new
package (Gnark) into this repo. That way we avoid forking the entire
repo but can still import our changes.

Any changes to these pacakges should be submitted as PRs to upstream
_first_, then backported to this repo.

Includes:

- dedis/kyber#546
- dedis/kyber#551
- dedis/kyber#553
@AnomalRoil
Copy link
Contributor

@Stebalien seems your PR didn't like your other PR getting squashed, sorry for that I somehow thought Github handled that automagically.

Also it seems you might be touching some of the same bits and bobs as in #540 which removes insecure aggregation from the bls package, not sure which one we should be merging first. @K1li4nL opinion?

@Stebalien
Copy link
Contributor Author

Rebased (although something is wrong with CI).

This should only touch the bdn package so it shouldn't interfere too much with that PR, although it does change the NewMask constructor.

@K1li4nL
Copy link
Contributor

K1li4nL commented Sep 24, 2024

@Stebalien seems your PR didn't like your other PR getting squashed, sorry for that I somehow thought Github handled that automagically.

Also it seems you might be touching some of the same bits and bobs as in #540 which removes insecure aggregation from the bls package, not sure which one we should be merging first. @K1li4nL opinion?

I stumbled upon the group specific problem when removing the insecure part of BLS, I solved it pretty similarly though this fix is cleaner than mine. I can remove my fix from my pr and rebase on top of that one.

@K1li4nL
Copy link
Contributor

K1li4nL commented Sep 24, 2024

Rebased (although something is wrong with CI).

This should only touch the bdn package so it shouldn't interfere too much with that PR, although it does change the NewMask constructor.

The linter is complaining about commented code leftover, I guess that's why the rest of the pipeline got canceled

Previously, `hashPointToR` would always use `mod.Int` but that only
works with the Kilic backend. This change makes the BDN scheme work with
all backends.
@Stebalien
Copy link
Contributor Author

Ah, that would make sense. Let's see if this works...

Copy link

sonarcloud bot commented Sep 24, 2024

Please retry analysis of this Pull-Request directly on SonarCloud

Copy link

sonarcloud bot commented Sep 24, 2024

@AnomalRoil AnomalRoil merged commit 4de3374 into dedis:master Sep 24, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants