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) 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 memory-based keystore.Service implementation.
Keys are stored in an in-memory map, where the key is the name of the private key, and the value is the structure where the actual private key and the password are stored.
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.