Skip to content

Commit 39b9a53

Browse files
committed
Update install notes
1 parent b763bb9 commit 39b9a53

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

contrib/remote_hsmd/NOTES.md

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
c-lightning
22
----------------------------------------------------------------
33

4-
Setup
5-
6-
# Add an "upstream" reference and fetch all tags (needed for pyln-{proto,client,testing})
7-
git remote add upstream [email protected]:ElementsProject/lightning.git
8-
git fetch upstream --tags
9-
10-
(cd contrib/remote_hsmd && \
11-
ln -s ../../../validating-lightning-signer/lightning-signer-server/src/server/remotesigner.proto)
12-
134
Additional Dependencies (needed after applying steps in `doc/INSTALL`):
145

156
On Ubuntu:
@@ -20,22 +11,42 @@ On Fedora:
2011

2112
sudo dnf install -y grpc-devel grpc-plugins
2213

23-
Building
14+
Python packages:
15+
16+
pip3 install --user base58 bitstring secp256k1 mrkd
17+
18+
# In c-lightning root, remote-hsmd branch:
19+
pip3 install --user -r requirements.txt
20+
21+
# Temporarily downgrade markupsafe to avoid breaking dependencies
22+
pip3 install --user markupsafe==2.0.1
2423

24+
Validating Lightning Signer:
25+
26+
# In parent directory of c-lightning root
27+
git clone [email protected]:lightning-signer/validating-lightning-signer.git
28+
cargo build --features log_pretty_print,debug_enforcement_state
29+
30+
C-Lightning:
31+
32+
# Add an "upstream" reference and fetch all tags (needed for pyln-{proto,client,testing})
33+
# Use the HTTPS pointer if you have authentication issues with git
34+
git remote add upstream [email protected]:ElementsProject/lightning.git
35+
git fetch upstream --tags
36+
37+
(cd contrib/remote_hsmd && \
38+
ln -s ../../../validating-lightning-signer/lightning-signer-server/src/server/remotesigner.proto)
39+
# Then do ls -alt contrib/remote_hsmd/remotesigner.proto and make sure the link is valid
40+
41+
# Build c-lightning
2542
make distclean
2643
./configure --enable-developer
2744
make
2845

29-
Build libsecp256k1 with `./configure --enable-module-recovery`, see
30-
https://github.com/golemfactory/golem/issues/2168 for background.
31-
32-
pip3 install --user base58
33-
pip3 install --user bitstring
34-
pip3 install --user secp256k1
35-
pip3 install --user mrkd
46+
Tests:
3647

37-
# in c-lightning root:
38-
pip3 install --user -r requirements.txt
48+
# Run this single test to check that everything is set up correctly:
49+
./contrib/remote_hsmd/scripts/run-one-test tests/test_pay.py::test_pay_no_secret
3950

4051
Run all of the integration tests:
4152

0 commit comments

Comments
 (0)