{"info":{"_postman_id":"b130a13b-fb47-4c1d-a362-207e9e5e72c2","name":"starknetCC","description":"<html><head></head><body><p>Following apis makes the results of stark proof available to the starknet contract.</p>\n<p>First, The dapp that want to prove some property, need to create a <code>condition</code> using the <code>`/conditions` api.</code></p>\n<p>Conditions are the requirements that the Dapp expects to pass. On Creating a <code>condition</code>, The API will return a id. This Id is the hash of the conditions.</p>\n<p>The user who wants to verify a property to any starknet contract, should use the <code>/postProof</code> route. The user (or anyone on behalf of the user) passes the <code>id</code> returned in previous step and the value that they want to prove.</p>\n<p>The <code>postProof</code> api processes the request and sends it to the SHARP. Once the <code>train</code> is processed, The backend code(or node) passes the result of the proof to the starknet contract thorugh L1_to_L2 Bridge.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"9280214","collectionId":"b130a13b-fb47-4c1d-a362-207e9e5e72c2","publishedId":"2s8Yt1rp4a","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-01T07:15:39.000Z"},"item":[{"name":"post  Proof","id":"4e8681ed-b093-4300-ac30-736f26e71520","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\":  \"0x579cf2be734d9b04ae\",\n    \"inputValue\": 18,\n    \"starknetReceiver\" :\"\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/comparator/postProof","description":"<p>Sends the proof to <strong>SHARP</strong>, which then will be made available to the starknet contracts through L1_toL2 message.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["comparator","postProof"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"02fb09f1-2d4c-4c55-b626-b61e6e25efae","name":"post  Proof","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\":  \"0x579cf2be734d9b04ae\",\n    \"inputValue\": 18,\n    \"starknetReceiver\" :\"\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/comparator/postProof"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n        \"message\": \"ok\",\n        \"uuid\": \"7ccc6a96-9aa8-4b2e-8ddb-ee0786eb9907\",\n        \"jobKey\": \"8865b41e-3e26-48b5-a9a6-7e6b493f1ccb\"\n}"}],"_postman_id":"4e8681ed-b093-4300-ac30-736f26e71520"},{"name":"post Conditions","id":"be903cb4-5432-4f1e-be21-699c1a77cdf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"max\": 30,\n    \"min\": 10\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/conditions","description":"<p>Comparator Operation checks whether the input is between the valid region set by the dapp.</p>\n<p>The condition is Identified and read from the <code>Registry</code> starknet smartcontract. The Backend fetches the relevant conditions, generates the inputs and passes it to SHARP. The results from the SHARP is later forwarded to the required starknet contract through messaging bridge.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["conditions"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fd463815-9fed-4960-bf07-c68c4f8bd089","name":"post Conditions","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"max\": 30,\n    \"min\": 10\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/conditions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"ETag","value":"W/\"74-12aXbCC9pxOP4j2vCT5yuEU1Izk\""},{"key":"Date","value":"Thu, 01 Dec 2022 01:49:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"0x579cf2be734d9b04ae\",\n    \"transaction_hash\": \"0x20711a4307d088cb25cf83626580e35280c88b61679eab777058a430f5dbe8b\"\n}"}],"_postman_id":"be903cb4-5432-4f1e-be21-699c1a77cdf3"},{"name":"status","id":"eb26862c-1536-46a8-a812-b8015876d643","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/status?jobKey=","description":"<p>Returns the SHARP status of a particular Job.</p>\n","urlObject":{"protocol":"http","port":"3000","path":["status"],"host":["localhost"],"query":[{"key":"jobKey","value":""}],"variable":[]}},"response":[{"id":"903c22bf-0850-49db-8963-182d0ff9a37f","name":"status","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/status?jobKey=","protocol":"http","host":["localhost"],"port":"3000","path":["status"],"query":[{"key":"jobKey","value":""}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"ok\",\n    \"stdout\": \"IN PROGRESS\"\n}"}],"_postman_id":"eb26862c-1536-46a8-a812-b8015876d643"}]}