Skip to content

Commit

Permalink
way better sync mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoury committed Mar 24, 2024
1 parent 720e919 commit 3d15ec3
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zkllvm-rust-template"
version = "0.1.0"
name = "zkoracle"
version = "0.0.1"
edition = "2021"

[dependencies]
Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# zkLLVM Rust template
# zkOracle

*Fork of zkLLVM Rust template*

[![Tutorial check](https://github.com/NilFoundation/zkllvm-rust-template/actions/workflows/main.yml/badge.svg)](https://github.com/NilFoundation/zkllvm-rust-template/actions/workflows/main.yml)

Expand All @@ -21,13 +23,18 @@ On most of the modern Linux-based platforms you will already have these installe

### Table of contents

- [Introduction](#introduction)
- [Getting started](#getting-started)
- [Building code](#building-rust-code)
- [Generating circuit](#generating-circuit)
- [Generating proof locally](#generating-proof-locally)
- [Uploading circuit statement to Proof Market](#uploading-circuit-statement-to-proof-market)
- [Verifying proof on EVM](#verifying-proof-on-evm)
- [zkOracle](#zkoracle)
- [Prerequisites](#prerequisites)
- [Table of contents](#table-of-contents)
- [Introduction](#introduction)
- [Getting started](#getting-started)
- [Install zkLLVM toolchain](#install-zkllvm-toolchain)
- [Clone repository](#clone-repository)
- [Building Rust code](#building-rust-code)
- [Generating circuit](#generating-circuit)
- [Generating proof locally](#generating-proof-locally)
- [Uploading circuit statement to Proof Market](#uploading-circuit-statement-to-proof-market)
- [Verifying proof on EVM](#verifying-proof-on-evm)

## Introduction

Expand Down
2 changes: 1 addition & 1 deletion bin/devsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ shift

echo "Synchronising local repository to remote server at $OPERATION...";

rsync -azP -e ssh ./ $OPERATION:~/zkoracle/
rsync -vhra -e ssh ./ $OPERATION:~/zkoracle/ --include='**.gitignore' --exclude='/.git' --filter=':- .gitignore' --delete-after
8 changes: 0 additions & 8 deletions inputs/example-same.inp

This file was deleted.

8 changes: 8 additions & 0 deletions inputs/example-same.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"int": 5
},
{
"int": 5
}
]
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
#![feature(const_trait_impl)]
#![feature(effects)]

use ark_ff::Field;
use ark_pallas::Fq;
// use ark_ff::Field;
// use ark_pallas::Fq;

// fn pow(a: Fq, n: u32) -> Fq {
// (0..n).fold(Fq::ONE, |acc, _| acc * a)
// }

#[circuit]
pub fn main(a: Fq, b: Fq) {
assert_eq!(a, b)
pub fn main(a: i32, b: i32) -> bool {
return a == b
}

// pub fn field_arithmetic_example(a: Fq, b: Fq) -> Fq {
Expand Down

0 comments on commit 3d15ec3

Please sign in to comment.