seshanthS / starknetIndia_2022

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STARKS-PROOF INFRA

Description:

Following apis makes the results of stark proof available to the starknet contract.

First, The dapp that want to prove some property, need to create a condition using the /conditions api.

Conditions are the requirements that the Dapp expects to pass. On Creating a condition, The API will return a id. This Id is the hash of the conditions.

The user who wants to verify a property to any starknet contract, should use the /postProof route. The user (or anyone on behalf of the user) passes the id returned in previous step and the value that they want to prove.

The postProof api processes the request and sends it to the SHARP. Once the train is processed, The backend code(or node) passes the result of the proof to the starknet contract thorugh L1_to_L2 Bridge.

Contract Address:

L2 Forwader : https://goerli.etherscan.io/address/0x61bada630ffcd6082f7a6859fd9cef30e8996d4b

Registry(conditions) : https://testnet-2.starkscan.co/contract/0x02224fbbc5fbcc5489f8e1d492bf734c8d79c50d7a295bee5049c9d7259de5be

API / Postman :

https://documenter.getpostman.com/view/9280214/2s8Yt1rp4a

Result:

Post Conditions

Post Proof

About


Languages

Language:JavaScript 85.4%Language:Solidity 6.6%Language:Cairo 5.7%Language:Pug 1.6%Language:CSS 0.7%