boltlabs-inc / zeekoe

Zero-knowledge layer-2 payment channels
MIT License
24 stars 1 forks source link

Fix expiry status flow #344

Closed marsella closed 2 years ago

marsella commented 2 years ago

Closes #298

Three main changes in this PR:

indomitableSwan commented 2 years ago

Closes #298

Three main changes in this PR:

  • Fixes status flow. @indomitableSwan , can you confirm that there is no scenario where a unilateral customer close would be permissible, but a unilateral merchant close would not be (and vice versa)?

Can you clarify terminology here? Not entirely sure what you are asking.

That said, a desired property of the scheme is that either party can force an open channel to close at will.

At the chain level, this means that either party can (start to) close an open escrow account at any time. The chain is happy to receive either an expiry message from the merchant, a close message from the customer, or a mutual close message (for Tezos, I think we designated this as from the customer?), so long as the escrow account has status OPEN.