Skip to content

NilFoundation/lorem-ipsum-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=nil; Lorem Ipsum CLI

Discord Telegram Twitter

Introduction

This repository is for PoC of Lorem ipsum cli.It is intended to be used by applications & developers (dApps) who wish to use data in trust-less manner from one cluster (ex MINA) into another (ex ETH). It provides a set of utilities & scripts to compile circuits, serialize inputs and validate proofs on blockchain VMs. Users are recommended to check the proof market toolchain to outsource proof generation.

Dependencies

Setup

Clone this repository

git clone git@github.com:NilFoundation/lorem-ipsum-cli.git
cd lorem-ipsum-cli

Install dependencies

pip install -r requirements.txt 

Usage

Get Mina ledger state proof

Mina's ledger state can be retrieved as follows:

python3 scripts/protocol/mina/get_mina_state.py ledger --url=<rpc_endpoint> --output=<file_location>

Parameters:

  • url (optional) : GraphQL endpoint of the node
  • output (optional) : Location to store the state

ex:

python3 scripts/protocol/mina/get_mina_state.py ledger 

Get Mina account state

Account state in MINA (user account or zkApp state) can be retrieved as follows:

python scripts/protocol/mina/get_mina_state.py account --url=<rpc_endpoint> --address=<user/zkapp public key> --output=<file_location>
  • address (req) : Public key of MINA zkApp or user.
  • url (optional): GraphQL endpoint of the node
  • output (optional): Location to store the state

ex:

 python3 scripts/protocol/mina/get_mina_state.py account --address B62qqDDQbUCSnmneB2HCefKVAqJuuoy7AcKHy8tLUvnP9cZww8AFCMS

Documentation

Documentation portal for proof market is located here. Users are encouraged to check zkLLVM project which is tightly coupled to the proof market.

Support

Additional support can be obtained by contacting the team at Telegram and Discord.