neofsid

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: GPL-3.0 Imports: 9 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.27.0

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

AccountKeysPrm groups parameters of AccountKeys operation.

func (*AccountKeysPrm) SetID added in v0.27.0

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

SetID sets owner ID.

type ClientWrapper

type ClientWrapper struct {
	internal.StaticClient
	// contains filtered or unexported fields
}

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(prm AccountKeysPrm) (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(prm ManageKeysPrm) error

ManageKeys adds/removes list of public keys to/from NeoFS account.

type ManageKeysPrm added in v0.27.0

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

ManageKeysPrm groups parameters of ManageKeys operation.

func (*ManageKeysPrm) SetAdd added in v0.27.0

func (m *ManageKeysPrm) SetAdd(add bool)

SetAdd sets operation type.

func (*ManageKeysPrm) SetKeys added in v0.27.0

func (m *ManageKeysPrm) SetKeys(ks [][]byte)

SetKeys sets keys to add/remove.

func (*ManageKeysPrm) SetOwnerID added in v0.27.0

func (m *ManageKeysPrm) SetOwnerID(ownerID []byte)

SetOwnerID sets Owner ID.

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.

func TryNotary added in v0.22.1

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