Shorten policy contract keys #61
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#61
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
Contract storage key has 65 byte limit. Proxy contract store CID and namespaces in the key. Both are almost hitting key limit and therefore reducing possible useful information that can be stored here.
Describe the solution you'd like
In TrueCloudLab/policy-engine#32 (comment) @fyrchik suggested to use numerical ID to encode and decode Container IDs. This approach can be applied for namespaces as well.
Describe alternatives you've considered
Store useful metadata in the storage value instead of the storage key.
Additional context
Issue: multiple transaction with same new CID or namespace potentially can produce FAULT state due to invalid GAS calculation. However this should not be the case here, because first transaction is always more expensive, so in the worst case scenario secondary transactions will pay a bit more than they should, but execution will not fail.
fyrchik referenced this issue2024-01-30 13:31:03 +00:00
Solved by #71