Documentation ¶
Index ¶
- type Service
- func (s *Service) Exists(name string) (bool, error)
- func (s *Service) ExportKey(name, password string) ([]byte, error)
- func (s *Service) ImportKey(name, password string, keyJson []byte) (err error)
- func (s *Service) ImportPrivateKey(name, password string, pk *ecdsa.PrivateKey) (err error)
- func (s *Service) Key(name, password string) (pk *ecdsa.PrivateKey, created bool, err error)
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 (*Service) ImportPrivateKey ¶ added in v1.2.3
func (s *Service) ImportPrivateKey(name, password string, pk *ecdsa.PrivateKey) (err error)
Click to show internal directories.
Click to hide internal directories.