Commit 47edf57f authored by Sietse Ringers's avatar Sietse Ringers
Browse files

feat: irma server no longer emits warning on startup about private keys for...

feat: irma server no longer emits warning on startup about private keys for demo schemes (i.e. irma-demo)
parent 966b41a6
......@@ -113,6 +113,9 @@ func (conf *Configuration) Check() error {
func (conf *Configuration) HavePrivateKeys() bool {
var err error
for id := range conf.IrmaConfiguration.Issuers {
if conf.IrmaConfiguration.SchemeManagers[id.SchemeManagerIdentifier()].Demo {
continue
}
if _, err = conf.IrmaConfiguration.PrivateKeys.Latest(id); err == nil {
return true
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment