Git Product home page Git Product logo

jade's Introduction

jade

jade is a static analysis platform and suite for TEAL programs.

jade currently provides the Unconstrained Parameter Analysis, which checks whether the program sensibly constrains the OnCompletion and RekeyTo transaction fields. jade has comprehensive support for TEALv3 and lower and near-comprehensive support for TEALv6 and lower.

Installation

jade's only dependency is an installation of Racket, version 8.2 or greater. There is no obvious reason that earlier versions (within the last few years) should not work; please let us know if you run into problems with a specific version or platform.

The Dockerfile in the repository is configured to obtain Racket and run jade. The included script build.sh uses Docker to build jade and run.sh runs the newly-built jade, passing arguments from the command line.

Usage

jade is designed to be self-documenting insofar as possible. Running jade without any arguments will print instructions.

In brief, jade ingests TEALv6 program bytecode, TEALv6 program assembly, or a JSON package produced by the Algorand Indexer v2 (as implemented by AlgoExplorer, for example) and analyzes it. After analysis, jade prints a report which includes program disassembly and a result summary of the Unconstrained Property Analysis.

jade allows you to specify symbolic names for hard-coded constants so that the program can be treated as a template. This functionality allows one to apply analysis results to all programs instantiated from that template, as opposed to a single, specific program.

Example:

curl https://algoindexer.algoexplorerapi.io/v2/applications/<application-id> | ./jade --json-package

Roadmap

We are working to enhance jade in the following four ways:

  1. Improve the Unconstrained Parameter Analysis to support all transaction parameters.

  2. Introduce additional generic analyses to the suite---generic in the sense that they apply to programs generally and do not verify program-specific behaviors.

  3. Improve the analyzer API to make it easier to build on the platform.

jade's People

Contributors

kimmyg avatar

Watchers

 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.