-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account-based EACL targets #278
Comments
how about: LEN=33 => key, otherwise account? |
Huh. That'd be similar to |
good. My main question is - can account be 33B in theory? |
To me they all 20 bytes (unfortunately, 25 in real life). If for whatever reason we need some new kind of account and it's 33 bytes originally, we can just add a prefix to distinguish it. |
then i think we can just shift existing field to |
Closes #278. Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
Closes #278. Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
Closes #278. Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
Is your feature request related to a problem? Please describe.
I'm always frustrated when I see public keys in the protocol used instead of accounts. Account is a very powerful abstraction that is not limited to a single key. Current EACL target requirement to have public keys leads to problems in the service layer like nspcc-dev/neofs-s3-gw#861 and while workarounds are possible the root cause of the issue is the requirement to have public keys in targets, they should not be needed to process EACL.
Describe the solution you'd like
Extend target definition with a list of accounts. Deprecate key usage.
Describe alternatives you've considered
Reusing the same field is technically possible (it's just bytes). Not sure it's any better, but you can try convincing me.
The text was updated successfully, but these errors were encountered: