Skip to content

How to generate two points on different curves from the same bigint value in a circuit? #1242

Answered by ivokub
txhsl asked this question in Q&A
Discussion options

You must be logged in to vote

Now, when working in-circuit we have a slight problem - we strongly type the field elements. So it means that emulated.Element[Secp256k1Fr] is not directly comparable to emulated.Element[BLS12381Fr] even if the integer values are the same. To perform integer comparison you have to convert the value from one field to another using binary decomposition.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@ivokub
Comment options

@ivokub
Comment options

@ivokub
Comment options

@ivokub
Comment options

Answer selected by txhsl
@txhsl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants