Git Product home page Git Product logo

cartesign-lambada's Introduction

CarteSign-Lambada


CarteSign is a Handwritten Biometrics tool which can bring back traditional security to the world of Digital signature based smart contracts.

This project leverages Cartesi-Lambada (wiki) a modular implementation of the Cartesi tech stack where the execution layer is provided by a Cartesi machine and the DA layer is provided by espresso/celestia.

Steps to build

In a terminal:

docker run -p 127.0.0.1:8081:8081 -p 127.0.0.1:8080:8080 -p 127.0.0.1:3033:3033 --privileged zippiehq/cartesi-lambada-devkit:1.1

This opens up a code-server development environment in web browser at http://localhost:8081 Inside the code-server you can clone lambada-primes this repo.

In the code-server

Open up a terminal inside the code-server cd cartesign-lambada && cartesi-build

After the build is successful you will find a State CID which is an IPFS directory where the entire Cartesi machine state is stored along with some crucial information on how data comes into the cartesi machine.

Video-Demo

Subscribing, submitting and reading to your new chain

In a new terminal

curl http://127.0.0.1:3033/subscribe/<chain CID>

the node now follows your chain

send transaction with:

curl -X POST -d 'transaction data' -H "Content-type: application/octet-stream" http://127.0.0.1:3033/submit/<chain CID>

read latest state with:

curl http://127.0.0.1:3033/latest/<chain CID>

Access IPFS gateway

http://127.0.0.1:8080/ipfs/<chain or state CID>

Check your computation results

http://127.0.0.1:8080/ipfs/<chain or state CID>/output/primes.json

All the relevant logs of the Lambada node and the Cartesi machine can be found inside the files of Docker container

tmp/cartesi-machine.log tmp/lambada.log tmp/ipfs-base.log code-server.log

cartesign-lambada's People

Contributors

jjhbk 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.