Skip to content

masaun/zkTLS-integration-examples

Repository files navigation

【IN PROGRESS】zkTLS Integration Examples

Overview


ZK circuit test

  • Run the test of the Sample zkTLS circuit
cd noir/zktls-integrations
sh circuit_test.sh
  • Run the test of the OKX DEX API zkTLS circuit
cd noir/zktls-integration-with-okx-dex-api
sh circuit_test.sh
  • Run the test of the DocuSign zkTLS circuit
cd noir/zktls-docusign
sh circuit_test.sh

Run (in TS) with OKX DEX SDK

  • Create an .env by copying the .env.example
cd scripts/OKX-DEX-API
cp .env.example .env
  • GET a API request header
cd scripts/OKX-DEX-API
sh okx-dex-sdk-integrations/runningScript_okx-dex-sdk-api-request-sample.sh

Run the test of the Smart Contracts

  • Run the test of the Smart Contracts for the zktls-integrations circuit (./test/circuits/zktls-integrations/ZkTLSIntegrationsProofVerifier.test.ts)
cd test
sh circuits/zktls-integrations/runningTest_ZkTLSIntegrationsProofVerifier.sh

  • Run the test of the Smart Contracts for the zktls-integration-with-okx-dex-api circuit (./test/circuits/zktls-integration-with-okx-dex-api/ZkTLSIntegrationsProofVerifier.test.ts)
cd test
sh circuits/zktls-integration-with-okx-dex-api/runningTest_ZkTLSIntegrationsProofVerifier.sh


Hardhat Noir Starter

This project demonstrates Noir integration with Hardhat using Hardhat Noir plugin.

Getting started

Clone this repository and run npm install:

npx degit olehmisar/hardhat-noir-starter my-first-noir-project
cd my-first-noir-project
npm install

Then, run npm run test to run the tests.

Development

  1. Write circuits in noir folder.
  2. npx hardhat noir-new <circuit_name> to create a new Noir circuit.
  3. npm run compile to compile Noir and Solidity.
  4. Integrate with Solidity verifiers auto-generated by Noir.

Testing

  1. Write tests in test folder.
  2. npm run test to run the tests.

Deployment

Noir integrates with Solidity, so you can deploy your Solidity contracts like in any other Solidity project using the official Hardhat Ignition or community maintained Hardhat Deploy.

About

zkTLS integration examples using Noir-Web-Prover circuit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published