boltlabs-inc / zeekoe

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

Test malicious-customer pay scenarios #327

Open marsella opened 3 years ago

marsella commented 3 years ago

We need to test scenarios with properly malicious customer, e.g. one who does not use our lovely, misuse-resistant API.

Consider the following scenarios:

In both these cases, the merchant must reject the payment with a ReusedRevocationLock error.

To implement this (and other malicious-party tests), we need to implement a party that adheres to the protocol flow but behaves incorrectly.

indomitableSwan commented 3 years ago

Just a quick note that we should make sure to test all close methods.