mirror of https://github.com/waku-org/nwaku.git
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
|
@ -106,3 +106,7 @@
|
||||||
[submodule "vendor/nim-web3"]
|
[submodule "vendor/nim-web3"]
|
||||||
path = vendor/nim-web3
|
path = vendor/nim-web3
|
||||||
url = https://github.com/status-im/nim-web3.git
|
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&
|
npm install ganache-cli; npx ganache-cli -p 8540 -g 0 -l 3000000000000&
|
||||||
|
|
||||||
rlnlib:
|
rlnlib:
|
||||||
#cargo clean --manifest-path rln/Cargo.toml #TODO may need to clean the rln directory before cloning the rln repo
|
cargo build --manifest-path vendor/rln/Cargo.toml
|
||||||
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;
|
|
||||||
|
|
||||||
test2: | build deps installganache
|
test2: | build deps installganache
|
||||||
echo -e $(BUILD_MSG) "build/$@" && \
|
echo -e $(BUILD_MSG) "build/$@" && \
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a80f5d013eb092ff18bd1d946c57565e2cdc65da
|
|
@ -21,7 +21,8 @@ requires "nim >= 1.2.0",
|
||||||
"stint",
|
"stint",
|
||||||
"metrics",
|
"metrics",
|
||||||
"libp2p", # Only for Waku v2
|
"libp2p", # Only for Waku v2
|
||||||
"web3"
|
"web3",
|
||||||
|
"rln"
|
||||||
|
|
||||||
### Helper functions
|
### Helper functions
|
||||||
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
|
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)
|
# 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
|
# contains the key generation and other relevant functions
|
||||||
|
|
||||||
const libPath = "rln/target/debug/"
|
|
||||||
|
const libPath = "vendor/rln/target/debug/"
|
||||||
when defined(Windows):
|
when defined(Windows):
|
||||||
const libName* = libPath / "rln.dll"
|
const libName* = libPath / "rln.dll"
|
||||||
elif defined(Linux):
|
elif defined(Linux):
|
||||||
|
|
Loading…
Reference in New Issue