Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
a2a7f94f
Commit
a2a7f94f
authored
Oct 01, 2017
by
Sietse Ringers
Browse files
Add hash to CredentialInfo
parent
b2f42cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
credential.go
View file @
a2a7f94f
...
...
@@ -26,6 +26,7 @@ type CredentialInfo struct {
SchemeManager
*
SchemeManager
// Scheme manager information from ConfigurationStore
Attributes
[]
TranslatedString
// Human-readable rendered attributes
Logo
string
// Path to logo on storage
Hash
string
// SHA256 hash over the attributes
}
// A CredentialInfoList is a list of credentials (implements sort.Interface).
...
...
@@ -51,6 +52,7 @@ func NewCredentialInfo(ints []*big.Int, store *ConfigurationStore) *CredentialIn
SchemeManager
:
store
.
SchemeManagers
[
issid
.
SchemeManagerIdentifier
()],
Attributes
:
attrs
,
Logo
:
""
,
// TODO
Hash
:
NewAttributeListFromInts
(
ints
,
store
)
.
hash
(),
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment