Skip to content

Conversation

@rheitjoh
Copy link
Member

@rheitjoh rheitjoh commented Aug 18, 2021

Addresses #28 by adding verifyOrderG1 and verifyOrderG2 to the FFI and enabling them after Mcl initialization. This means that subgroup checks are automatically done when using the setStr method which we use for deserialization.

Is missing checks for GT since Mcl has no verifyOrder method for that.

@rheitjoh rheitjoh linked an issue Aug 18, 2021 that may be closed by this pull request
#!/usr/bin/env bash
mcl_version="v1.28"
#mcl_version="v1.28"
mcl_version="5faedff92a72a685d4e6c94e1974ec2033b9d352"
Copy link
Member

Choose a reason for hiding this comment

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

Is this on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

waiting for mcl version v1.52

@Test
public void testOnCurve() {
MclBilinearGroupImpl bilGroupImpl = new MclBilinearGroupImpl();
MclGroup2Impl groupG2Impl = bilGroupImpl.getG2();
Copy link
Member

Choose a reason for hiding this comment

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

Did you test G1, too?

Copy link
Member

@JanBobolz JanBobolz Aug 19, 2021

Choose a reason for hiding this comment

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

on curve check works anyway (cannot be disabled) 👍

@JanBobolz
Copy link
Member

Needs

herumi/mcl#126

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.

Subgroup checks

3 participants