Skip to content

Commit 7a5b09a

Browse files
chaitanyapremcodex
andcommitted
build: update mix RLN plugin integration
Co-authored-by: Codex <codex@openai.com>
1 parent bb4bd12 commit 7a5b09a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

simulations/mixnet/build_setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ cd "$(dirname "$0")"
33
MIXNET_DIR=$(pwd)
44
cd ../..
55
ROOT_DIR=$(pwd)
6+
source "$ROOT_DIR/env.sh"
7+
8+
# Prefer explicitly provided RLN library path, otherwise use local migrated build.
9+
LIBRLN_PATH=${LIBRLN_PATH:-"/Users/prem/Code/mix-rln-spam-protection-plugin/librln.a"}
610

711
# Clean up old files first
812
rm -f "$MIXNET_DIR/rln_tree.db" "$MIXNET_DIR"/rln_keystore_*.json
913

1014
echo "Building and running credentials setup..."
1115
# Compile to temp location, then run from mixnet directory
1216
nim c -d:release --mm:refc \
13-
--passL:"-L$ROOT_DIR/vendor/zerokit/target/release -lrln" \
17+
--passL:"$LIBRLN_PATH" --passL:-lm \
1418
-o:/tmp/setup_credentials_$$ \
1519
"$MIXNET_DIR/setup_credentials.nim" 2>&1 | tail -30
1620

0 commit comments

Comments
 (0)