Skip to content

Commit

Permalink
rename membership owner to holder (avoid confusion with contract owner)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-tikhomirov committed Aug 12, 2024
1 parent 03e868c commit 6d3b946
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions standards/core/rln-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Membership registration is subject to the following conditions:
- if an _Expired_ membership A is overwritten by membership B:
- membership B MUST transition to _ErasedAwaitsWithdrawal_;
- the current total rate limit MUST be decremented by the rate limit of membership B;
- the contract MUST take all necessary steps to ensure that the owner of membership B can withdraw their deposit later;
- the contract MUST take all necessary steps to ensure that the holder of membership B can withdraw their deposit later;
- registration MUST fail if the total rate limit of _Active_, _GracePeriod_, and _Expired_ memberships, including the one being created, would exceed the limit;
- registration MUST fail if the requested rate limit for the new membership is lower than the minimal allowed rate limit;
- the user MUST lock-up a deposit to register a membership;
Expand All @@ -140,17 +140,17 @@ A Relay node MUST relay a message unless:

Extending a membership is subject to the following condition:
- extension MUST fail if the membership is in any state other than _GracePeriod_;
- the membership owner MUST be able to extend the membership;
- any user except the membership owner MUST NOT be able to extend the membership;
- the membership holder MUST be able to extend their membership;
- any user except the membership holder MUST NOT be able to extend a membership;
- after a successful extension, the membership MUST become _Active_.

Owning a membership means controlling the private key from which the RLN commitment ID (i.e., public key) was derived.

### Withdraw the deposit

Deposit withdrawal is subject to the following conditions:
- the owner of a membership MUST be able to withdraw their deposit;
- any user except the membership owner MUST NOT be able to withdraw its deposit;
- the membership holder MUST be able to withdraw their deposit;
- any user except the membership holder MUST NOT be able to withdraw its deposit;
- a deposit MUST be withdrawn in full;
- a withdrawal MUST fail if the membership is not in _GracePeriod_, _Expired_, or _ErasedAwaitsWithdrawal_;
- any withdrawal MUST move the membership to _Erased_.
Expand Down

0 comments on commit 6d3b946

Please sign in to comment.