Consensys / anonymous-zether

A private payment system for Ethereum-based blockchains, with no trusted setup.
Other
295 stars 73 forks source link

One question about anonymous transfers #15

Closed DoubleCherish closed 4 years ago

DoubleCherish commented 4 years ago

Why all the transfer amounts have to be kept pending ?

describe from zether.pdf appendix D.1 Replay and double-spend protection

benediamond commented 4 years ago

this is essentially explained in the Zether paper, D.1., as you point out.

the essential idea is that when i send you a transfer, I change both my account state and yours. thus your account state could change unpredictably. but if you want to make a transfer, your account should be stable throughout the duration of the epoch (if it changed unpredictably, your transfer would fail). Thus all transfers are temporarily kept pending for a period of about 6 seconds—to give you time to make a transfer, without your account state changing.

this discussion would be better suited for Slack—please ping me (@benediamond) and we can carry on there.

DoubleCherish commented 4 years ago

@benediamond It seems i have no Slack's email address