Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWrapper ¶
ClientWrapper is a wrapper over NeoFS ID contract client which provides convenient methods for working with a contract.
Working ClientWrapper must be created via Wrap.
func NewFromMorph ¶ added in v0.21.0
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...Option) (*ClientWrapper, error)
NewFromMorph wraps client to work with NeoFS ID contract.
func (*ClientWrapper) AccountKeys ¶
func (x *ClientWrapper) AccountKeys(id *owner.ID) (keys.PublicKeys, error)
AccountKeys requests public keys of NeoFS account from NeoFS ID contract.
func (*ClientWrapper) ManageKeys ¶ added in v0.21.0
func (x *ClientWrapper) ManageKeys(ownerID []byte, ks [][]byte, add bool) error
ManageKeys adds/removes list of public keys to/from NeoFS account.
type Option ¶ added in v0.22.1
type Option func(*opts)
Option allows to set an optional parameter of ClientWrapper.
func AsAlphabet ¶ added in v0.25.0
func AsAlphabet() Option
AsAlphabet returns option to sign main TX of notary requests with client's private key.
Considered to be used by IR nodes only.
Click to show internal directories.
Click to hide internal directories.