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:
Sanaz Taheri Boshrooyeh 2021-03-02 12:57:48 -08:00 committed by GitHub
parent 36c1441ce0
commit 168f8d1e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 4 deletions

4
.gitmodules vendored
View File

@ -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

View File

@ -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

@ -0,0 +1 @@
Subproject commit a80f5d013eb092ff18bd1d946c57565e2cdc65da

View File

@ -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") =

View File

@ -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):