Closed kwannoel closed 2 years ago
See https://github.com/libp2p/go-libp2p-daemon for installing p2pd
, p2p-keygen
.
Use the -id
flag to configure private-key when starting daemon:
p2pd -id <private_key_file>
Use the following command to generate sample private keys:
p2p-keygen -f <private_key_file
I was having issues running this initially, however it worked when I did
a_addr=/ip4/127.0.0.1/tcp/10333
and
b_addr=/ip4/127.0.0.1/tcp/10300
I think something having to do with /ip not being a protocol
Implement Barebones of: https://github.com/Glow-Lang/glow/issues/106.
Run
buy_sig
over libp2pTo run the
buy_sig
interaction over libp2p, in one terminal run:You will be prompted:
Copy that into
dest
in the second terminal, and run:Select the relevant options to run the
buy_sig
interaction.Run the
buy_sig
over libp2p test case locallyProgress
[x] Use user-supplied keypair to derive peerid.
gerbil-ethereum/known-addresses.ss
.options: ["-id" filename]
.[x] Backend support and CLI to ensure the go-libp2p-daemon and/or JS library is started with the correct parameters (toggling libp2p, keypairs).
start-interaction
entrypoint to take in an option, which toggles off-chain communication betweenstdout
andlibp2p
.[x] Backend support and CLI to send and receive handshakes and agreements.
Polishes
Priority
- [] Randomly generate keypair file.