LN Contract : Week 5
Week 4 Recap:
-
Displayed the returning wallet info from the connection above in a little friendly view.
- Retrieved the node balance and Public Key, displaying both, as an initial view. This demonstrates that the app connects to the LN Node.
-
Created a connection to a counterparty's ln node.
- App instructs its node to connect to the counterparty node. The return from the gRPC command is None so apt instructs node to run listpeers and verify that the applicable peer is connected
-
Created a channel with the counterparty.
- App instructs LN node to create a channel.
Week 5 Plan:
-
Make/Receive a payment.
-
With a channel in place, will provide action for the app to make a payment
- Receiving party will need to obtain an invoice. Initially, I will assume it has received the invoice and make the functionality for the other node to pay the invoice.
-
-
Need to think how the receiving party should receive the invoice. Might use a separate specialized server app to communicate between the two parties. This is a plausible way, but I don't really think its a good Lightning way to do this. Need to do some research on this. The plan is to have a more detailed plan on how to accomplish this communication. I'd like to do it within the LN itself.
-
Need to think more specifically as to how to demo the app. Here again the plan is to make a more detailed plan.