Add EIP-6617: Add a new bit based permission proposal#6617
Merged
eth-bot merged 15 commits intoethereum:masterfrom Mar 9, 2023
Merged
Add EIP-6617: Add a new bit based permission proposal#6617eth-bot merged 15 commits intoethereum:masterfrom
eth-bot merged 15 commits intoethereum:masterfrom
Conversation
Co-authored-by: Chiro Hiro <chiro8x@gmail.com> Co-authored-by: Victor Dusart <43795504+vdusart@users.noreply.github.com>
Collaborator
|
All reviewers have approved. Auto merging... |
Contributor
Author
|
Hi @Pandapip1, We add a new Bit Based Permission proposal as your request. I and @vdusart will update EIP-6366 as well. |
Merged
Contributor
|
The PR doesn't have a |
Pandapip1
suggested changes
Mar 6, 2023
EIPS/eip-bit_based_permission.md
Outdated
|
|
||
| The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174. | ||
|
|
||
| _Note_ The following specifications use syntax from Solidity `0.8.7` (or above) |
Member
There was a problem hiding this comment.
This doesn't include any solidity. I think you forgot to include the interface.
Contributor
Author
There was a problem hiding this comment.
@vdusart implemented a library to perform bit wise operators
EIPS/eip-bit_based_permission.md
Outdated
| With the `256` bits of the `uint256`, we can create up to `256` differents permissions which leads to `2²⁵⁶` unique combinaisons also called roles. | ||
| *(A role is a combination of multiple permissions).* All roles don't have to be predefined. | ||
|
|
||
| Since permissions are defined as powers of two, we can use the `OR` operator to create new role based on multiple permissions. |
Member
There was a problem hiding this comment.
Suggested change
| Since permissions are defined as powers of two, we can use the `OR` operator to create new role based on multiple permissions. | |
| Since permissions are defined as unsigned integers, we can use the binary OR operator to create new role based on multiple permissions. |
EIPS/eip-bit_based_permission.md
Outdated
| ## Motivation | ||
|
|
||
| Currently permission and access control are done using `string` or `keccak256(string)` comparaisons (see [ERC-5982](./eip-5982.md)). | ||
| By using bitwise and bitmask operations to determine access rights, we gain in efficiency, flexibility and more. |
Member
There was a problem hiding this comment.
Suggested change
| By using bitwise and bitmask operations to determine access rights, we gain in efficiency, flexibility and more. |
This reads like Rationale.
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Pandapip1
suggested changes
Mar 8, 2023
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
Co-authored-by: Gavin John <gavinnjohn@gmail.com>
|
The commit 775c356 (as a parent of 2eb7729) contains errors. |
chiro-hiro
commented
Mar 9, 2023
EIPS/eip-6617.md
Outdated
| /** | ||
| @notice Add permission | ||
| @param _permission The given permission | ||
| @param _permissionToAdd The permission that will be added |
Contributor
Author
There was a problem hiding this comment.
@vdusart I think, code formatter is broken.
eth-bot
approved these changes
Mar 9, 2023
fulldecent
pushed a commit
to fulldecent/EIPs
that referenced
this pull request
Mar 13, 2023
* Add a new bit based permission proposal Co-authored-by: Chiro Hiro <chiro8x@gmail.com> Co-authored-by: Victor Dusart <43795504+vdusart@users.noreply.github.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Add suggestions (ethereum#9) * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * fix typos and CI/CD * formatting --------- Co-authored-by: Victor Dusart <43795504+vdusart@users.noreply.github.com> Co-authored-by: Gavin John <gavinnjohn@gmail.com> Co-authored-by: Victor DUSART <dusartvictor@gmail.com>
axelcabee
pushed a commit
to axelcabee/EIPs
that referenced
this pull request
May 6, 2023
* Add a new bit based permission proposal Co-authored-by: Chiro Hiro <chiro8x@gmail.com> Co-authored-by: Victor Dusart <43795504+vdusart@users.noreply.github.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Add suggestions (ethereum#9) * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * fix typos and CI/CD * formatting --------- Co-authored-by: Victor Dusart <43795504+vdusart@users.noreply.github.com> Co-authored-by: Gavin John <gavinnjohn@gmail.com> Co-authored-by: Victor DUSART <dusartvictor@gmail.com>
GAEAlimited
pushed a commit
to GAEAlimited/EIPs
that referenced
this pull request
Jun 19, 2024
* Add a new bit based permission proposal Co-authored-by: Chiro Hiro <chiro8x@gmail.com> Co-authored-by: Victor Dusart <43795504+vdusart@users.noreply.github.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-bit_based_permission.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Add suggestions (#9) * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * Update EIPS/eip-6617.md Co-authored-by: Gavin John <gavinnjohn@gmail.com> * fix typos and CI/CD * formatting --------- Co-authored-by: Victor Dusart <43795504+vdusart@users.noreply.github.com> Co-authored-by: Gavin John <gavinnjohn@gmail.com> Co-authored-by: Victor DUSART <dusartvictor@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.