livepeer / prob-pay

Probabilistic payments built on Ethereum
0 stars 1 forks source link

Bounding the time to detect double spends #5

Open yondonfu opened 5 years ago

yondonfu commented 5 years ago

We can bound the time to detect double spends T by having recipients default to cashing winning tickets on-chain immediately after receiving them. The downside of this approach is that recipients lose flexibility in deciding when to cash winning tickets.

If recipients are running full nodes they can also watch the transaction mempool for broadcasted winning tickets which allows recipients to obtain information faster than simply waiting to see a transaction confirm on-chain. One idea that might be worth exploring in a subsequent iteration is to use a separate gossip network for the recipient set that is used for broadcasting winning tickets instead of relying on the Ethereum network for broadcasts which might be useful for giving recipients more flexibility in deciding when to cash winning tickets. For the time being an initial implementation can use the simple default of cashing winning tickets immediately.

dob commented 5 years ago

A worst case bound for T would be accomplished by including an expiration date in the ticket, right?