LNContract
Week 2 recap:
-
Created Django front-end skeleton.
-
Defined the basic models needed:
-
Contract. This is the fundamental model.
-
Party. Many to Many Relationship with Contract.
-
LN_Node. This will manage the LN Node of a Party: the tls_path and macaroon_path.
-
Contract obligations will be of three types, each a model:
-
SaleOfGoods
-
SaleOfServices
-
MonetaryObligations
-
-
Goods. Points to a SaleOfGoods
-
Services. Points to a Sale0fServices
-
ContractText. The actual contract.
-
-
Completed the basic CRUD through the Django admin app. Will come back to this later as I want to focus on the interface with LN.
Looking to Week 3. I want to create the basic back end:
-
Connect to a LN node.
-
Will use Polar for now to simulate the LN and BTC nodes.
-
Starting with an lnd node and connect via gRPC.
-
The app will assume knowledge of the tls_cert and admin macaroon of its node. Later functionality will provide for credentialed user to allow app to obtain this info.
-
Connection will return the status of the LN Node to the app.
-
App will display the updated status.
-