file

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: BSD-3-Clause Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is the file-based keystore.Service implementation.

Keys are stored in directory where each private key is stored in a file, which is encrypted with symmetric key using some password.

func New

func New(dir string) *Service

New creates new file-based keystore.Service implementation.

func (*Service) Exists

func (s *Service) Exists(name string) (bool, error)

func (*Service) ExportKey added in v1.2.2

func (s *Service) ExportKey(name, password string) ([]byte, error)

func (*Service) ImportKey added in v1.2.2

func (s *Service) ImportKey(name, password string, keyJson []byte) (err error)

func (*Service) ImportPrivateKey added in v1.2.3

func (s *Service) ImportPrivateKey(name, password string, pk *ecdsa.PrivateKey) (err error)

func (*Service) Key

func (s *Service) Key(name, password string) (pk *ecdsa.PrivateKey, created bool, err error)

Jump to

Keyboard shortcuts

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