mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-05-12 05:19:33 +00:00
build: update mix RLN plugin integration
Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
parent
bb4bd12e6e
commit
7a5b09ac5e
@ -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
|
||||
|
||||
|
||||
2
vendor/mix-rln-spam-protection-plugin
vendored
2
vendor/mix-rln-spam-protection-plugin
vendored
@ -1 +1 @@
|
||||
Subproject commit b3e3f72932d53fe0959e182fc081fe14c0c2c2f0
|
||||
Subproject commit 32f2af4c9b8b7d8d455a26843e74a441f7cb94cf
|
||||
Loading…
x
Reference in New Issue
Block a user