neofsid

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWrapper

type ClientWrapper neofsid.Client

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 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