Commit 7d0fa81d authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Rename stuff

parent 68fd4425
......@@ -5,7 +5,7 @@ import "strings"
// Base object for identifiers
type objectIdentifier struct {
string `json:"identifier"`
Parts []string
parts []string
}
// IssuerIdentifier identifies an issuer.
......@@ -47,11 +47,11 @@ func NewAttributeTypeIdentifier(identifier string) *AttributeTypeIdentifier {
}
func (o *objectIdentifier) split() []string {
if o.Parts == nil {
o.Parts = strings.Split(o.string, ".")
if o.parts == nil {
o.parts = strings.Split(o.string, ".")
}
return o.Parts
return o.parts
}
// SchemeManagerName returns the name of the scheme maanger of the current credential type.
......
......@@ -18,7 +18,8 @@ var MetaStore = ConfigurationStore{
make(map[string]*gabi.PublicKey),
}
// ConfigurationStore ...
// ConfigurationStore keeps track of scheme managers, issuers, credential types and public keys.
// Use the global MetaStore instance.
type ConfigurationStore struct {
managers map[string]*SchemeManagerDescription
issuers map[string]*IssuerDescription
......
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