Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade gnark/mpc tools #2579

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
ca78494
feat: upgrade gnark-crypto/gnark
hussein-aitlahcen Jul 20, 2024
9f0cd3d
feat(mpc): initial shot
hussein-aitlahcen Jul 26, 2024
0b4a560
feat: mpc schema
hussein-aitlahcen Jul 26, 2024
25415ed
feat: mpc use supa
hussein-aitlahcen Jul 29, 2024
b96676c
feat(mpc): better sql and client handling
hussein-aitlahcen Jul 30, 2024
087c588
fix(mpc): non-static
hussein-aitlahcen Jul 30, 2024
b9cd032
fix(galois): properly convert ptau to phase1
hussein-aitlahcen Jul 30, 2024
6c57251
fix(mpc): refactor in shared
hussein-aitlahcen Jul 30, 2024
0480499
feat(mpc): ui for cli
hussein-aitlahcen Jul 31, 2024
c8f659f
feat(mpc): better ui and messages
hussein-aitlahcen Jul 31, 2024
c38ffdb
fix(mpc): final sql
hussein-aitlahcen Jul 31, 2024
b91a471
fix(mpc): allow exiting cli at any point
hussein-aitlahcen Jul 31, 2024
2caec35
fix(mpc): better ui
hussein-aitlahcen Jul 31, 2024
36504cd
feat(mpc): add readme/fixup sql and code
hussein-aitlahcen Sep 2, 2024
55a4e98
feat(mpc): parametric project url for coordinator
hussein-aitlahcen Sep 9, 2024
1223a6f
feat(mpc): add current queue view and auto queue join
hussein-aitlahcen Sep 9, 2024
43222be
feat(mpc): parametric expiration
hussein-aitlahcen Sep 9, 2024
199643f
feat(mpc): more view for averages and string search_path
hussein-aitlahcen Sep 11, 2024
90bd360
feat(mpc): waitlist & redeemable code
hussein-aitlahcen Sep 12, 2024
6093f3c
feat(mpc): join queue facility
hussein-aitlahcen Sep 12, 2024
64252ea
feat(mpc): open with mutex
hussein-aitlahcen Sep 12, 2024
fe74d05
feat(mpc): upgrade goPkgs
hussein-aitlahcen Sep 12, 2024
4770788
feat(mpc): attest contrib using gpg
hussein-aitlahcen Sep 13, 2024
ddadddc
fix(galois): non static after go upgrade
hussein-aitlahcen Sep 13, 2024
339a367
feat(mpc): join_queue for waitlist and current_user_state
hussein-aitlahcen Sep 15, 2024
cd826e9
feat(mpc): better handling of sqlite and tracing on coordinator
hussein-aitlahcen Sep 18, 2024
1fc6762
fix: revert changes to app
hussein-aitlahcen Sep 18, 2024
4af7ca9
fix(mpc): spelling and better naming
hussein-aitlahcen Sep 18, 2024
7c9cd72
chore: update cargo.lock
hussein-aitlahcen Sep 18, 2024
9b93fc1
chore: spelling & fmt
hussein-aitlahcen Sep 18, 2024
157a072
feat(mpc): chunked upload
hussein-aitlahcen Sep 19, 2024
3603de3
feat(mpc): waitlist timestamp hardening and materialized contribs
hussein-aitlahcen Sep 19, 2024
0c3d835
feat(mpc): add `/secret_key` and `/clear` endpoints
hussein-aitlahcen Sep 19, 2024
2c53ea2
feat(mpc): improve username selection
hussein-aitlahcen Sep 19, 2024
a53b9cc
feat(mpc): add timeline logs and more infors on contribution
hussein-aitlahcen Sep 20, 2024
c1c14d1
feat(mpc): tmp dir for client, pgp secret generation req/res
hussein-aitlahcen Sep 20, 2024
5082157
chore: update Cargo.lock
hussein-aitlahcen Sep 20, 2024
d82f8a4
feat(mpc): better state management, better username view in db
hussein-aitlahcen Sep 21, 2024
bbfaa2f
feat(mpc): anon display name
hussein-aitlahcen Sep 30, 2024
d177a98
feat(mpc): index state files by contributor
hussein-aitlahcen Oct 4, 2024
d9ba46c
feat(mpc): allow rejoining the queue if slot expired
hussein-aitlahcen Oct 4, 2024
b286f67
feat(mpc): add rls policy to wallet_address for users to edit their e…
hussein-aitlahcen Oct 7, 2024
ff26a71
feat(mpc): properly exit on successful contribution
hussein-aitlahcen Oct 8, 2024
820b16a
fix(mpc): ensure signature is wiped if we rejoin
hussein-aitlahcen Oct 10, 2024
825116e
fix(cli): wipe cache if payload cursor changed
hussein-aitlahcen Oct 11, 2024
45d6e1a
feat(mpc): add ping feature to rotate contrib if they don't ping with…
hussein-aitlahcen Oct 29, 2024
e786fc2
feat(mpc): open to public
hussein-aitlahcen Oct 30, 2024
5df334c
feat(mpc): materialize `current_queue` and better indexes on `log`
hussein-aitlahcen Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
569 changes: 558 additions & 11 deletions Cargo.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ members = [
"lib/aptos-verifier",

"lib/reconnecting-jsonrpc-ws-client",

"mpc/shared",
"mpc/client",
"mpc/coordinator",
]

[workspace.package]
Expand Down Expand Up @@ -131,6 +135,7 @@ linea-zktrie = { path = "lib/linea-zktrie", default-features =
macros = { path = "lib/macros", default-features = false }
move-bindgen = { path = "tools/move-bindgen", default-features = false }
move-bindgen-derive = { path = "lib/move-bindgen-derive", default-features = false }
mpc-shared = { path = "mpc/shared", default-features = false }
pg-queue = { path = "lib/pg-queue", default-features = false }
poseidon-rs = { path = "lib/poseidon-rs", default-features = false }
protos = { path = "generated/rust/protos", default-features = false }
Expand Down
34 changes: 34 additions & 0 deletions dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Celestia
Celestine
Certus
Chainer
Cleartext
Cleper
Codehash
Coeff
Expand All @@ -46,6 +47,7 @@ Counterparty
Cpath
Cpolygon
Creds
Crossterm
Cryptopunkssvg
Csvg
Cypherpunk
Expand All @@ -62,7 +64,9 @@ ECTO
Edgi
EigenLayer
Embedder
Evals
F1bonacc1
FFLONK
FLUSHCOMPLETE
Fatalf
Feegrant
Expand All @@ -76,6 +80,7 @@ Fsvg
Fuga
Fwww
GOARCH
GOBIN
GOPATH
GOPRIVATE
Getenv
Expand Down Expand Up @@ -150,6 +155,7 @@ PINGPONG
PRECOMMIT
PREVOTE
PROTOC
PTAU
Parameterizable
Paramspace
Partset
Expand All @@ -158,13 +164,16 @@ Pedersen
Phasellus
PoisonPhang
Polkadot
Postgrest
Prefixer
Protobuf
Proxiable
Pruijs
Ptau
QUMGLDJ
Quickstart
Qyby
ROWTYPE
RUSTFLAGS
Recvs
Redelegate
Expand Down Expand Up @@ -199,6 +208,7 @@ Subdemom
Sublist
Subo
Subtrie
TIMSTAMPTZ
TOCTOU
Tada
Tempdirs
Expand Down Expand Up @@ -241,7 +251,9 @@ YMSB
Yair
ZFTB
ZKACCOUNT
ZKEY
ZKTRIE
Zkey
aarch
abci
abidump
Expand Down Expand Up @@ -271,6 +283,7 @@ ankr
antialised
anypb
anys
apikey
appchain
appchains
appetito
Expand Down Expand Up @@ -304,6 +317,7 @@ autocapitalize
autocli
autocliv
autocorrect
autoresize
autotests
awkroot
axelar
Expand Down Expand Up @@ -331,6 +345,7 @@ binaryen
bindgen
bindingstypes
bindir
binutils
biomejs
bitarray
bitcanna
Expand Down Expand Up @@ -359,6 +374,7 @@ bools
bootnode
borsh
brainer
buildmode
builtins
bumpp
bunx
Expand Down Expand Up @@ -387,6 +403,7 @@ chevdor
chrono
circom
clazz
cleartext
cliclack
clientkeeper
clienttx
Expand All @@ -405,6 +422,7 @@ codespace
coeff
cofactor
coinbases
combinators
comdex
cometbft
cometbls
Expand Down Expand Up @@ -454,6 +472,7 @@ cratedir
crisiskeeper
crisistypes
crossorigin
crossterm
cryptocom
cryptware
ctfassets
Expand Down Expand Up @@ -531,6 +550,7 @@ ethcall
etherbase
ethevent
ethkey
evals
evidencekeeper
evidencetypes
evmincosmos
Expand Down Expand Up @@ -636,6 +656,7 @@ hlist
hmac
holiman
horcrux
httpdate
httpie
httptemplate
hubblestatus
Expand Down Expand Up @@ -677,6 +698,7 @@ icahostkeeper
icahosttypes
icatypes
iconify
iden
identifer
identifing
idents
Expand Down Expand Up @@ -754,6 +776,7 @@ libcxx
libdir
libexec
libfuzzer
libgalois
libgit
libiconv
libmuslc
Expand Down Expand Up @@ -814,6 +837,7 @@ monniker
monomorphized
moreutils
mosmo
mpcsetup
msgservice
msvc
muldefs
Expand Down Expand Up @@ -932,7 +956,9 @@ popd
porttypes
postcss
postgrespassword
postgrest
posthandler
powersoftau
precommit
precommits
prehash
Expand Down Expand Up @@ -963,6 +989,7 @@ prysm
prysmaticlabs
prysmctl
psim
ptau
pubkey
pubkey's
pubkeys
Expand All @@ -985,6 +1012,7 @@ qxrx
qypy
rabby
randao
ratatui
ratelimit
ratelimited
rawfile
Expand Down Expand Up @@ -1088,6 +1116,7 @@ slurpfile
smallvec
snapshotter
snapshottypes
snarkjs
soketto
solomachine
sonner
Expand Down Expand Up @@ -1123,6 +1152,7 @@ statesync
staticcheck
staticlib
stdenv
stdlib
storemetrics
storetypes
storyblok
Expand Down Expand Up @@ -1155,6 +1185,7 @@ substituters
substores
subtrie
sumbitter
supa
supabase
superforms
supermajority
Expand Down Expand Up @@ -1275,6 +1306,7 @@ unionvaloper
unionvaloperpub
unionvisor
unittests
unixepoch
unjail
unjailed
unloadable
Expand Down Expand Up @@ -1377,7 +1409,9 @@ zerion
zeroize
zerolog
zetachain
zket
zkevm
zkey
zkgm
zkps
zktrie
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Track a separate nixpkgs for latest solc
nixpkgs-solc.url = "github:NixOS/nixpkgs/nixos-unstable";
# We need the latest nixpkgs for buildGo121Module, remove this once we upgrade nixpkgs
nixpkgs-go.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-go.url = "github:NixOS/nixpkgs/nixos-24.05";
# Track a separate nixpkgs for unstable nixos
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
# Remove when lnav is updated on upstream nixpkgs
Expand Down Expand Up @@ -231,6 +231,7 @@
./galoisd/galoisd.nix
./unionvisor/unionvisor.nix
./voyager/voyager.nix
./mpc/mpc.nix
./lib/ics23/ics23.nix
./lib/ssz/ssz.nix
./lib/unionlabs/unionlabs.nix
Expand Down Expand Up @@ -560,6 +561,8 @@
self'.packages.tdc
self'.packages.voy-send-msg
yq
gdb
typescript
]) ++ (with unstablePkgs; [
wasm-tools
bun # for running TypeScript files on the fly
Expand Down
Loading