Add method to read owner's subject hash from container #198
Labels
No labels
P0
P1
P2
P3
good first issue
pool
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-sdk-go#198
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.
It is not really a problem, but rather mere inconvenience. In order to obtain subject hash (in frostfs-id contract) of container's owner, I need to do the following:
It works, but requires knowledge of how internally encoding to string works. Ideally I would want a method that would encapsulate this knowledge.
Describe the solution you'd like
I would like Container structure to have method like:
OwnerSubjectHash()
that would return meutil.UInt160
representing subject hash of container owner. With this value I would be able to easily read subject from frostfs-id contract.We have
SetScriptHash()
, lets addScriptHash()
which returnsw[1:21]
asutil.Uint160