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

Deserialize proof_a #7

Open
ppoliani opened this issue Mar 24, 2024 · 2 comments
Open

Deserialize proof_a #7

ppoliani opened this issue Mar 24, 2024 · 2 comments

Comments

@ppoliani
Copy link

ppoliani commented Mar 24, 2024

I can see the tests here do some pre-processing on proof_a. I'm trying to do the same using JavaScript so i can then pass the value into a Solana Program. Could you share an example of how we can achieve the same thing in JS?

The code starting from this line https://github.com/Lightprotocol/groth16-solana/blob/master/src/groth16.rs#L316 does some transformation on proof_a which I can't find a way to accomplish in JS.

@ananas-block
Copy link
Contributor

See this js code does the transformation, https://github.com/Lightprotocol/light-protocol/blob/deb9d9e0b90295c362beaf9f955fbb561ecba576/prover.js/src/prover.ts#L166-L293.
We will do a new prover.js release in a couple weeks which will include this functionality.

@hoangtuanictvn
Copy link

hoangtuanictvn commented Oct 23, 2024

See this js code does the transformation, https://github.com/Lightprotocol/light-protocol/blob/deb9d9e0b90295c362beaf9f955fbb561ecba576/prover.js/src/prover.ts#L166-L293. We will do a new prover.js release in a couple weeks which will include this functionality.

@ananas-block any updates on this sir? I need a prover can transformation the output to the right format for verify on-chain via Typescript too

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

No branches or pull requests

3 participants