11 Commits

Author SHA1 Message Date
Sydhds
b7967b85e8 Initial code to use Zerokit 0.9 + disable parallel feature (#36)
* Initial code to use Zerokit 0.9 + disable parallel feature

* Support IdSecret for user identity secret hash

* Fix clippy + bench

* Use PmTreeConfig builder

* Improve prover_bench perf

* Fix prover_bench 2nd assert

* Fix prover_bench 2nd assert 2

* Can now enable trace for bench prover_bench

* Use anyhow for error handling (+ error context) in prover_cli (#42)

* Use anyhow for error handling (+ error context) in prover_cli

* Cargo fmt pass

* Feature/feature/init user db ser de 2 (#45)

* Add user db serializer && deserializer init & re-use
2025-10-01 17:00:56 +02:00
Vinh Trịnh
f4a41073e4 Use exact zerokit version, move common deps to workspace, remove unuse deps to reduce build size 2025-08-18 16:41:17 +07:00
Vinh Trịnh
802872e155 Test and fix smart contract interaction (#24)
* chore: add karma_sc_test, karma_tiers_test, rln_sc_test script

* chore: fix rustls panic erro in prover_cli

* fix: update TierLimits's validate method to handle first tier's minKarma starts at 0

* chore: add NoTier

* chore: update Dockerfile

* chore: update rust version and tooling to build rocksdb deps

* fix: refactor smart contract interaction scripts, add error enum and remove unuse codes

* fix: add PRIVATE_KEY env variable, seperate specific error types, update Dockerfile, remove config.example.toml and use clap's default_value instead

* chore: update Dockerfile

* chore: remove unuse register_user_with_commitment and redundant KarmaSCInstance::from
2025-08-12 22:39:18 +07:00
Sydhds
9f4027ed2b Add UserRocksDb - initial attemp to rewrite UserDb with persistent st… (#10)
* Use RocksDb + PmTree for UserDb persistent storage
2025-06-27 15:41:41 +02:00
Sydhds
409cdcb651 Move all code related to smart contracts into lib smart_contract (#7)
* Move all code related to smart contracts into lib smart_contract
* Can start the prover with mocked smart contract
* Add KarmaTier integration
* Filter & validate initial tier limits
2025-06-13 12:04:10 +02:00
Sydhds
d8da43e535 Update to zerokit v0.8.0 (#6)
* Update to zerokit v0.8.0
* Switch to OptimalMerkleTree implementation (was pmTree)
* Update various crates
2025-06-10 10:53:26 +02:00
Sydhds
68fbc154bd Add rln sc in grpc register_user (#5)
* Add rln sc in grpc register_user
* Add app argument for RLN Smart contract address
2025-06-06 15:07:10 +02:00
Sydhds
632cf67142 Update RegistryListener to interact with Karma smart contract (#4)
* Update RegistryListener to interact with Karma smart contract
* Add karma sc instance in grpc service
2025-06-06 09:22:19 +02:00
Sydhds
7525c8c226 Add ProofGenerationData structure (#3)
* Add ProofGenerationData structure
* Use shared merkle tree
* Add unit tests for proof service
2025-06-05 10:03:31 +02:00
Sydhds
194ce101fc Add initial code for user db (user reg + tx counter + tier info) (#2)
* Add initial code for user db (user reg + tx counter + tier info)
* Switch to scc hashmap (+ updated benchmark)
* Add KSC into UserDB
* Start user db service in prover main
* Separate between user db service & user db
* Add set tier limits grpc endpoint
* Set tier limits unit test
* Use derive_more
2025-05-30 15:14:09 +02:00
sydhds
c286dca5d5 Add rln benchmarks (computation & serialization) 2025-05-15 16:07:48 +02:00