neofsid

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountKeysPrm added in v0.28.0

type AccountKeysPrm struct {
	// contains filtered or unexported fields
}

AccountKeysPrm groups parameters of AccountKeys operation.

func (*AccountKeysPrm) SetID added in v0.28.0

func (a *AccountKeysPrm) SetID(id user.ID)

SetID sets owner ID.

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 NeoFS 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 added in v0.28.0

func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...Option) (*Client, error)

NewFromMorph wraps client to work with NeoFS ID contract.

func (*Client) AccountKeys

func (x *Client) AccountKeys(p AccountKeysPrm) (keys.PublicKeys, error)

AccountKeys requests public keys of NeoFS account from NeoFS ID contract.

func (*Client) AddKeys added in v0.21.0

func (x *Client) AddKeys(p CommonBindPrm) error

AddKeys adds a list of public keys to/from NeoFS account.

func (*Client) RemoveKeys added in v0.21.0

func (x *Client) RemoveKeys(args CommonBindPrm) error

RemoveKeys removes a list of public keys to/from NeoFS account.

type CommonBindPrm added in v0.28.0

type CommonBindPrm struct {
	client.InvokePrmOptional
	// contains filtered or unexported fields
}

func (*CommonBindPrm) SetKeys added in v0.28.0

func (x *CommonBindPrm) SetKeys(v [][]byte)

SetKeys sets a list of public keys in a binary format.

func (*CommonBindPrm) SetOptionalPrm added in v0.28.0

func (x *CommonBindPrm) SetOptionalPrm(prm client.InvokePrmOptional)

func (*CommonBindPrm) SetOwnerID added in v0.28.0

func (x *CommonBindPrm) SetOwnerID(v []byte)

SetOwnerID sets NeoFS account identifier.

type Option

type Option func(*opts)

Option allows to set an optional parameter of ClientWrapper.

func AsAlphabet added in v0.28.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.

func TryNotary added in v0.28.0

func TryNotary() Option

TryNotary returns option to enable notary invocation tries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL