STORY
LNContract
AUTHOR
Joined 2022.09.22
PROJECT
DATE
VOTES
sats
COMMENTS

LNContract

Week 2 recap:

  1. Created Django front-end skeleton.

  2. Defined the basic models needed:

    1. Contract. This is the fundamental model.

    2. Party. Many to Many Relationship with Contract.

    3. LN_Node. This will manage the LN Node of a Party: the tls_path and macaroon_path.

    4. Contract obligations will be of three types, each a model:

      1. SaleOfGoods

      2. SaleOfServices

      3. MonetaryObligations

    5. Goods. Points to a SaleOfGoods

    6. Services. Points to a Sale0fServices

    7. ContractText. The actual contract.

  3. 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:

  1. Connect to a LN node.

    1. Will use Polar for now to simulate the LN and BTC nodes.

    2. Starting with an lnd node and connect via gRPC.

    3. 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.

    4. Connection will return the status of the LN Node to the app.

    5. App will display the updated status.