mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-14 00:46:44 +00:00
Adds rln as a submodule (#402)
* adds rln as submodule * removes the duplicate rln submodule * adds rln * Delete waku.nims
This commit is contained in:
parent
36c1441ce0
commit
168f8d1e1d
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -106,3 +106,7 @@
|
||||
[submodule "vendor/nim-web3"]
|
||||
path = vendor/nim-web3
|
||||
url = https://github.com/status-im/nim-web3.git
|
||||
[submodule "vendor/rln"]
|
||||
path = vendor/rln
|
||||
url = https://github.com/kilic/rln
|
||||
branch = full-node
|
||||
|
3
Makefile
3
Makefile
@ -119,8 +119,7 @@ installganache:
|
||||
npm install ganache-cli; npx ganache-cli -p 8540 -g 0 -l 3000000000000&
|
||||
|
||||
rlnlib:
|
||||
#cargo clean --manifest-path rln/Cargo.toml #TODO may need to clean the rln directory before cloning the rln repo
|
||||
rm -rf rln; git clone --branch full-node https://github.com/kilic/rln; git --git-dir=rln/.git reset --hard a80f5d0; cargo build --manifest-path rln/Cargo.toml;
|
||||
cargo build --manifest-path vendor/rln/Cargo.toml
|
||||
|
||||
test2: | build deps installganache
|
||||
echo -e $(BUILD_MSG) "build/$@" && \
|
||||
|
1
vendor/rln
vendored
Submodule
1
vendor/rln
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit a80f5d013eb092ff18bd1d946c57565e2cdc65da
|
@ -21,7 +21,8 @@ requires "nim >= 1.2.0",
|
||||
"stint",
|
||||
"metrics",
|
||||
"libp2p", # Only for Waku v2
|
||||
"web3"
|
||||
"web3",
|
||||
"rln"
|
||||
|
||||
### Helper functions
|
||||
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
|
||||
|
@ -5,7 +5,8 @@ import os
|
||||
# librln.dylib is the rln library taken from https://github.com/kilic/rln (originally implemented in rust with an exposed C API)
|
||||
# contains the key generation and other relevant functions
|
||||
|
||||
const libPath = "rln/target/debug/"
|
||||
|
||||
const libPath = "vendor/rln/target/debug/"
|
||||
when defined(Windows):
|
||||
const libName* = libPath / "rln.dll"
|
||||
elif defined(Linux):
|
||||
|
Loading…
x
Reference in New Issue
Block a user