Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeysPrm ¶
type AccountKeysPrm struct {
// contains filtered or unexported fields
}
AccountKeysPrm groups parameters of AccountKeys operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a wrapper over StaticClient which makes calls with the names and arguments of the FrostFS ID contract.
Working client must be created via constructor New. Using the Client that has been created with new(Client) expression (or just declaring a Client variable) is unsafe and can lead to panic.
func NewFromMorph ¶
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...Option) (*Client, error)
NewFromMorph wraps client to work with FrostFS ID contract.
func (*Client) AccountKeys ¶
func (x *Client) AccountKeys(p AccountKeysPrm) (keys.PublicKeys, error)
AccountKeys requests public keys of FrostFS account from FrostFS ID contract.
func (*Client) AddKeys ¶
func (x *Client) AddKeys(p CommonBindPrm) error
AddKeys adds a list of public keys to/from FrostFS account.
func (*Client) RemoveKeys ¶
func (x *Client) RemoveKeys(args CommonBindPrm) error
RemoveKeys removes a list of public keys to/from FrostFS account.
type CommonBindPrm ¶
type CommonBindPrm struct { client.InvokePrmOptional // contains filtered or unexported fields }
func (*CommonBindPrm) SetKeys ¶
func (x *CommonBindPrm) SetKeys(v [][]byte)
SetKeys sets a list of public keys in a binary format.
func (*CommonBindPrm) SetOptionalPrm ¶
func (x *CommonBindPrm) SetOptionalPrm(prm client.InvokePrmOptional)
func (*CommonBindPrm) SetOwnerID ¶
func (x *CommonBindPrm) SetOwnerID(v []byte)
SetOwnerID sets FrostFS account identifier.
type Option ¶
type Option func(*opts)
Option allows to set an optional parameter of ClientWrapper.
func AsAlphabet ¶
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.