Skip to content

Add ability to decrypt memo with different ec points formats#8

Draft
AllFi wants to merge 5 commits intodevelfrom
feature/decompress_ec_points
Draft

Add ability to decrypt memo with different ec points formats#8
AllFi wants to merge 5 commits intodevelfrom
feature/decompress_ec_points

Conversation

@AllFi
Copy link

@AllFi AllFi commented Jan 25, 2023

In this PR the following was done:

  1. Added ECPointsFormat with possible values: XCoordinate, XCoordinateWithSign, and XYCoordinates.
  2. Added ability to parse ec points of different formats
  3. The check that the point is in the prime subgroup was moved after the decryption attempt.

The crucial statements that should be verified are that we still check that parsed points are on the curve and that they are in the prime subgroup regardless of ec points format. subgroup_decompress implicitly checks both statements. decompress_unchecked implicitly checks only the first one. check_in_prime_subgroup explicitly checks second statement after the decryption attempt.

The reason why it could be useful is described at https://github.com/zkBob/zkbob-pool-storage/issues/2.

@AllFi AllFi changed the title Add ability to decrypt memo with decompressed ec points Add ability to decrypt memo with different ec points formats Feb 8, 2023
@EvgenKor EvgenKor changed the base branch from multicore-wasm to master February 16, 2023 06:51
@EvgenKor EvgenKor changed the base branch from master to multicore-wasm February 16, 2023 07:17
@AllFi AllFi force-pushed the feature/decompress_ec_points branch from c3d2c94 to f13413a Compare February 22, 2023 11:59
@AllFi AllFi changed the base branch from multicore-wasm to devel February 22, 2023 11:59
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.

1 participant