Commit 1c4b7f98 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Remove unnecessary fields from Issuer, CredentialInfo


Co-authored-by: Tomas's avatarConfiks <confiks@scriptbase.org>
parent c6c33ac0
......@@ -15,7 +15,6 @@ type CredentialInfo struct {
SignedOn Timestamp // Unix timestamp
Expires Timestamp // Unix timestamp
Attributes map[AttributeTypeIdentifier]TranslatedString // Human-readable rendered attributes
Logo string // Path to logo on storage
Hash string // SHA256 hash over the attributes
}
......@@ -39,7 +38,6 @@ func NewCredentialInfo(ints []*big.Int, conf *Configuration) *CredentialInfo {
SignedOn: Timestamp(meta.SigningDate()),
Expires: Timestamp(meta.Expiry()),
Attributes: attrs.Map(conf),
Logo: credtype.Logo(conf),
Hash: attrs.Hash(),
}
}
......
......@@ -40,8 +40,7 @@ type Issuer struct {
SchemeManagerID string `xml:"SchemeManager"`
ContactAddress string
ContactEMail string
URL string `xml:"baseURL"`
XMLVersion int `xml:"version,attr"`
XMLVersion int `xml:"version,attr"`
Valid bool `xml:"-"`
}
......
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