neofsid

package
v0.0.0-...-0ba0ddf Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 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

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

AccountKeysPrm groups parameters of AccountKeys operation.

func (*AccountKeysPrm) SetID

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

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

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

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

func (*Client) RemoveKeys

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

RemoveKeys removes a list of public keys to/from NeoFS 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 NeoFS 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.

Jump to

Keyboard shortcuts

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