Skip to content

cursive nft#1

Open
kalidiagne wants to merge 1 commit into
mainfrom
cursive-sol-pr
Open

cursive nft#1
kalidiagne wants to merge 1 commit into
mainfrom
cursive-sol-pr

Conversation

@kalidiagne
Copy link
Copy Markdown
Contributor

No description provided.

@kalidiagne kalidiagne requested review from AndrewCLu and RiverRuby May 20, 2024 06:39
Comment thread shared/Cursive.ts
Comment thread shared/Cursive.ts
Comment on lines +34 to +38
async verifyAndMint(recipient: string, input: any): Promise<any> {
const tokenURI = "https://example.it";
const data = await this.calculateSolidityCalldata(input);
return this.contract.verifyAndMint(recipient, tokenURI, data);
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@RiverRuby @AndrewCLu will use this function on FE in order to generate the solidity calldata and mint the NFT, what i am missing is the input value as noted in getProofAndPublicSignals

Comment thread solidity/contracts/Cursive.sol
Comment thread shared/Cursive.ts

async calculateSolidityCalldata(input: any) {
const { proof, publicSignals } = await this.getProofAndPublicSignals(input);
const calldata = await plonk.exportSolidityCallData(proof, publicSignals);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

use groth16.groth16ExportSolidityCallData

Comment thread solidity/contracts/Cursive.sol
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