Commit graph

4 commits

Author SHA1 Message Date
Olaoluwa Osuntokun
2dcc903495
sidecar: update ticket w/ new offer field to indicate auto negotiation 2021-05-09 19:24:56 -07:00
Oliver Gugger
f84debaeff
sidecar+clientdb: add sidecar storage
Both the trader offering to buy a sidecar channel for another node as
well as the recipient node will need to store the involved sidecar
tickets in their local databases. We add a simple store interface and
its implementation that will be used in future commits.
2021-04-01 22:34:07 +02:00
Oliver Gugger
363ddd5a8e
sidecar: add multisig key index and lease duration
For proper and safe channel acceptance the recipient node also needs to
know which key index it used for a ticket's multisig key so it can sign
the authentication flow with the auctioneer correctly (which takes a key
locator and not key descriptor).

To make the offer and sidecar contract more explicit, we also include
the lease duration in blocks in the offer part. This field will
overwrite any value set when using the CLI to submit the bid order.
2021-04-01 22:34:07 +02:00
Oliver Gugger
ee0736d58c
sidecar: add sidecar ticket types
With this commit we add the main sidecar Ticket type and the partial
information types that are bundled within.
The ticket itself is meant to be used in a PSBT like manner where each
participant incrementally adds their information according to their role
and the current step.
2021-02-22 10:25:53 +01:00