accountmanager

package
v0.0.0-...-7838e69 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Generate generates a new account.
	Generate(ctx context.Context,
		credentials *checker.Credentials,
		account string,
		passphrase []byte,
		participants uint32,
		signingThreshold uint32,
	) (
		core.Result,
		[]byte,
		[]*core.Endpoint,
		error,
	)

	// Unlock unlocks an account.
	Unlock(ctx context.Context,
		credentials *checker.Credentials,
		account string,
		passphrase []byte,
	) (
		core.Result,
		error,
	)
	// Lock locks an account.
	Lock(ctx context.Context,
		credentials *checker.Credentials,
		account string,
	) (
		core.Result,
		error,
	)
}

Service is the account manager service.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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