Code Monkey home page Code Monkey logo

verifier's Introduction

contract-verifier

A UI app to display verified contract proofs and to submit Ton smart contract sources for on-chain verification.

Related repositories

This repo is a part of the following:

  1. contract-verifier-contracts - Sources registry contracts which stores an on-chain proof per code cell hash.
  2. contract-verifier-backend - Backend for compiling FunC and returning a signature over a message containing the resulting code cell hash.
  3. contract-verifier-sdk - A UI component to fetch and display sources from Ton blockchain and IPFS, including FunC code highlighting.
  4. contract-verifier (this repo) - A UI app to interact with the backend, contracts and publish an on-chain proof.

Deployment

This app is deployed via github actions on github pages for this repository.

Environment variables

  • VITE_VERIFIER_ID - id of the verifier registered with the verifier registry
  • VITE_SOURCES_REGISTRY / VITE_SOURCES_REGISTRY_TESTNET - sources registry to fetch data from
  • VITE_BACKEND_URL / VITE_BACKEND_URL_TESTNET - urls for backend (split by comma)

Running

  • npm install
  • npm run dev

Appendix: Adding new FunC versions

  1. Add the wasm binding in package json, as such:
"func-js-bin-0.4.3": "npm:@ton-community/func-js-bin@^0.4.3",
  1. Add the version to https://github.com/ton-community/contract-verifier-config
  2. Redeploy backend https://github.com/ton-community/contract-verifier-backend

License

MIT

verifier's People

Contributors

shaharyakir avatar antontsitovich avatar emelyanenkok avatar hrmon avatar sukhsinghcodes avatar nikitindenis1 avatar tsivarev avatar talkol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.