 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ErrInvalidPassword = errors.New("invalid password")
    ErrInvalidPassword is returned when the password for decrypting content where private key is stored is not valid.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
	// Key returns the private key for a specified name that was encrypted with
	// the provided password. If the private key does not exists it creates
	// a new one with a name and the password, and returns with created set
	// to true.
	Key(name, password string) (k *ecdsa.PrivateKey, created bool, err error)
	// Exists returns true if the key with specified name exists.
	Exists(name string) (bool, error)
}
    Service for managing keystore private keys.
 Click to show internal directories. 
   Click to hide internal directories.