wallets

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

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

func NewConnector

func NewConnector(store stores.WalletStore, db database.Wallets, authorizator auth.Authorizator, logger log.Logger) *Connector

func (Connector) Create

func (c Connector) Create(ctx context.Context, id string, attr *entities.Attributes) (*entities.Wallet, error)

func (Connector) Delete

func (c Connector) Delete(ctx context.Context, pubkey string) error

func (Connector) Destroy

func (c Connector) Destroy(ctx context.Context, pubkey string) error

func (Connector) Get

func (c Connector) Get(ctx context.Context, pubkey string) (*entities.Wallet, error)

func (Connector) GetDeleted

func (c Connector) GetDeleted(ctx context.Context, pubkey string) (*entities.Wallet, error)

func (Connector) Import

func (c Connector) Import(ctx context.Context, id string, privKey []byte, attr *entities.Attributes) (*entities.Wallet, error)

func (Connector) List

func (c Connector) List(ctx context.Context, limit, offset uint64) ([]string, error)

func (Connector) ListDeleted

func (c Connector) ListDeleted(ctx context.Context, limit, offset uint64) ([]string, error)

func (Connector) Restore

func (c Connector) Restore(ctx context.Context, pubkey string) error

func (Connector) Sign

func (c Connector) Sign(ctx context.Context, pubkey, typeSign string, data []byte) ([]byte, error)

func (Connector) Update

func (c Connector) Update(ctx context.Context, pubkey string, attr *entities.Attributes) (*entities.Wallet, error)

Jump to

Keyboard shortcuts

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