build: update mix RLN plugin integration

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
Prem Chaitanya Prathi 2026-03-27 11:57:17 +05:30
parent bb4bd12e6e
commit 7a5b09ac5e
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,10 @@ cd "$(dirname "$0")"
MIXNET_DIR=$(pwd)
cd ../..
ROOT_DIR=$(pwd)
source "$ROOT_DIR/env.sh"
# Prefer explicitly provided RLN library path, otherwise use local migrated build.
LIBRLN_PATH=${LIBRLN_PATH:-"/Users/prem/Code/mix-rln-spam-protection-plugin/librln.a"}
# Clean up old files first
rm -f "$MIXNET_DIR/rln_tree.db" "$MIXNET_DIR"/rln_keystore_*.json
@ -10,7 +14,7 @@ rm -f "$MIXNET_DIR/rln_tree.db" "$MIXNET_DIR"/rln_keystore_*.json
echo "Building and running credentials setup..."
# Compile to temp location, then run from mixnet directory
nim c -d:release --mm:refc \
--passL:"-L$ROOT_DIR/vendor/zerokit/target/release -lrln" \
--passL:"$LIBRLN_PATH" --passL:-lm \
-o:/tmp/setup_credentials_$$ \
"$MIXNET_DIR/setup_credentials.nim" 2>&1 | tail -30

@ -1 +1 @@
Subproject commit b3e3f72932d53fe0959e182fc081fe14c0c2c2f0
Subproject commit 32f2af4c9b8b7d8d455a26843e74a441f7cb94cf