Commit Graph

264 Commits

Author SHA1 Message Date
Oskar Thoren ccdf1e75d7
feat(rln): add debug impl for PoseidonHash 2022-03-16 16:40:25 +08:00
Oskar Thoren 9b5cd131c6
test(rln): ignore expensive test by default 2022-03-16 16:05:41 +08:00
Oskar Thoren 826a02f652
feat(rln): add hash, merkle and poseidon tree
Import from existing semaphore-rs
2022-03-16 16:05:23 +08:00
Oskar Thoren d692757dca
fix(poseidon-tornado): use poseidon tornado
Not multiplier
2022-03-16 14:40:00 +08:00
Oskar Thoren 83ef5ae3c3
chore: make clippy happy 2022-03-16 14:30:51 +08:00
Oskar Thoren 83fc39730f
chore: clippy allow unsafe in ffi 2022-03-16 14:25:13 +08:00
Oskar Thoren 292ece2945
style: cargo fmt 2022-03-16 14:18:54 +08:00
Oskar Thoren 6717a24c07
chore(rln): clippy ignore unsafe
Already wrapped in unsafe block but doesn't seem to work. Whole function
can be made unsafe but shouldn't be necessary from what I can tell.
2022-03-16 14:16:43 +08:00
Oskar Thoren abe67c8d4a
chore: use remote instead of local deps 2022-03-16 14:01:44 +08:00
Oskar Thoren 0dbf417e63
fix(rln): use rln in public module
Previously this was using Multipler boilerplate. This also fixes tests.
2022-03-16 13:54:02 +08:00
Oskar Thoren 385db53a5d
chore: update parent workspace scope
Add multiplier and poseidon-tornado as well to be consistent.

Can move these out as examples later
2022-03-16 13:32:31 +08:00
Oskar Thoren 03cc520458
chore: add Cargo.toml parent workspace 2022-03-16 13:26:41 +08:00
Oskar Thoren d82148d140
ci: add ci 2022-03-16 13:21:31 +08:00
Oskar Thoren 15c331db36
Add identity poseidon test 2022-03-15 18:04:11 +08:00
Oskar Thoren c718101ff1
import util for fr/bigint 2022-03-15 17:51:13 +08:00
Oskar Thoren b2fe1bd99b
more deps 2022-03-15 17:48:42 +08:00
Oskar Thoren b2a301a967
Import identity.rs from semaphore-rs 2022-03-15 17:30:44 +08:00
Oskar Thoren 751fd22951
Add deps 2022-03-15 17:29:40 +08:00
Oskar Thoren f090f199ac
Add poseidon-rs 2022-03-15 17:27:24 +08:00
Oskar Thoren b23dabab4f
Update RLN README 2022-03-11 18:09:45 +08:00
Oskar Thoren 4737dd34c1
Adapt rln fields etc
Proof works!
2022-03-11 18:08:41 +08:00
Oskar Thoren 224589a1ed
Add rln r1cs wasm files 2022-03-11 17:55:55 +08:00
Oskar Thoren 2af04cc729
Init rln from poseidon-tornado 2022-03-11 17:55:46 +08:00
Oskar Thoren a21e0c4ac3
Add comment 2022-03-11 16:02:27 +08:00
Oskar Thoren 6ecf5a17f3
Add proof to README 2022-03-11 15:59:47 +08:00
Oskar Thoren 9972af5661
Update README 2022-03-11 15:59:10 +08:00
Oskar Thoren e020b53acc
Revert "remove tracing"
This reverts commit 74f6588f5a.
2022-03-11 15:44:03 +08:00
Oskar Thoren f7fc0d137b
cleanup 2022-03-11 15:40:53 +08:00
Oskar Thoren 6f7055c967
remove tornado-core 2022-03-11 15:39:09 +08:00
Oskar Thoren cd05701f67
poseidon-tornado works 2022-03-11 15:37:16 +08:00
Oskar Thoren f356f2e84f
Revert "remove existing poseidon-tornado"
This reverts commit 24bf16653c.
2022-03-11 15:30:53 +08:00
Oskar Thoren 733f835922
typo fix.... 2022-03-11 15:30:08 +08:00
Oskar Thoren c1ffb13d09
more similar 2022-03-11 15:27:26 +08:00
Oskar Thoren 74f6588f5a
remove tracing 2022-03-11 15:20:55 +08:00
Oskar Thoren 24bf16653c
remove existing poseidon-tornado 2022-03-11 15:20:08 +08:00
Oskar Thoren 66f241d16c
Try tornado-core 2022-03-11 14:40:08 +08:00
Oskar Thoren 7de867d23e
nullifier 0 for consistency 2022-03-11 14:19:12 +08:00
Oskar Thoren 1129611b0e
use bigint radix 10 rep
Still fails but looks... better?
2022-03-10 13:06:07 +08:00
Oskar Thoren f6b428fb24
Try to parse bigints in witness
0x bigint mismatch
2022-03-02 14:20:33 +08:00
Oskar Thoren 7c856fd1b1
Parse and print JSON WitnessInput 2022-03-02 13:44:03 +08:00
Oskar Thoren e197f285ea
Adding JSON witness example from poseidon-tornado 2022-03-02 13:06:58 +08:00
Oskar Thoren 9b1fa85e46
Minimal constraint trace fail 2022-02-25 16:42:43 +08:00
Oskar Thoren 491b085807
Use withdraw circuits 2022-02-23 17:18:38 +08:00
Oskar Thoren d8e9f55683
Use local libs, add tracing 2022-02-23 17:17:38 +08:00
Oskar Thoren d4020bc25b
Add withdraw wasm/r1cs files 2022-02-21 12:59:59 +08:00
Oskar Thoren 3139738a88
poseidon-tornado init from multiplier 2022-02-21 12:14:45 +08:00
Oskar Thoren 721f3b8fa9
FFI: new -> new_circuit 2022-01-21 15:58:37 +08:00
Oskar Thoren 9507cf9fb8
FFI: Verify 2022-01-21 15:57:28 +08:00
Oskar Thoren a35392912f
FFI: Prove 2022-01-21 15:54:37 +08:00
Oskar Thoren f52ba69439
FFI: New 2022-01-21 15:54:25 +08:00