func NewServerKeyStore(keyStore api.MutableKeyStore) *ServerKeyStore {
	return &ServerKeyStore{keyStore, log.WithField("service", serviceName)}
}
NewServerKeyStore configures keystore for AcraServer.
package keystore
import (
	"errors"
	"path/filepath"
	"strings"
	connector_mode "github.com/cossacklabs/acra/cmd/acra-connector/connector-mode"
	"github.com/cossacklabs/acra/keystore"
	"github.com/cossacklabs/acra/keystore/v2/keystore/api"
	log "github.com/sirupsen/logrus"
)
const serviceName = "keystore"
var (
	ErrUnrecognizedKeyPurpose = errors.New("key purpose not recognized")
)
const (
	PurposePoisonRecord        = "poison record key"
	PurposeAuthentication      = "authentication key"
	PurposeStorageClient       = "client storage key"
	PurposeStorageZone         = "zone storage key"
	PurposeTransportServer     = "AcraServer transport key"
	PurposeTransportConnector  = "AcraConnector transport key"
	PurposeTransportTranslator = "AcraTranslator transport key"
)
type ServerKeyStore struct {
	api.MutableKeyStore
	log *log.Entry
}
type ConnectorKeyStore struct {
	ServerKeyStore
	clientID []byte
	mode     connector_mode.ConnectorMode
}
type TranslatorKeyStore struct {
	ServerKeyStore
}