nucypher / nucypher-kms-ethereum

Ethereum (solidity) code for nucypher-kms
18 stars 6 forks source link

Can Alice cancel a single Arrangement? #10

Open jMyles opened 6 years ago

jMyles commented 6 years ago

Clearly Alice can revoke an entire Policy.

But can she revoke just a single Agreement? If so, what are just grounds for doing so?

KPrasch commented 6 years ago
jMyles commented 6 years ago

Right - changed to Arrangement.

So, if that's the case, does Alice need specific grounds for doing so? Does she still need to pay Ursula for part of all of the remaining time?

KPrasch commented 6 years ago

IMO, Alice can revoke any arrangement at any time for any reason.

jMyles commented 6 years ago

And then not pay Ursula for any part of the remainder?

KPrasch commented 6 years ago

@szotov Is it possible to give Alice a refund if she cancels an Arrangement with one Ursula?

tuxxy commented 6 years ago

It would have to be within a specific amount of time when the arrangement was first made. Otherwise, Alice would be able to get a refund after any arbitrary time.

vzotova commented 6 years ago

Alice gets a refund when she revokes Arrangement. Refund is calculating for all future periods and for inactive past periods. Also Alice can refund in any time for past periods without revoking Arrangement

jMyles commented 6 years ago

That seems unfair and dangerous to me. Ursula can make all sorts of preparations / investments, creating a perfectly habitable environment for her PRE arrangements, only to have them pulled out from under her in the middle?

michwill commented 6 years ago

Isn't it Alice though who pays ethereum gas fees? So it isn't really convenient for Alice to grant and revoke access a million times just to make fool of Ursulas