Add method to read owner's subject hash from container #198
Labels
No Label
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 Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#198
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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