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
82a4ad47
Commit
82a4ad47
authored
Sep 10, 2019
by
Tomas
Committed by
Sietse Ringers
Sep 10, 2019
Browse files
feat: Add IssuanceTime to DisclosuedAttribute struct (for 'de vita' attestation case)
parent
7ef0df0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
verify.go
View file @
82a4ad47
...
...
@@ -31,10 +31,11 @@ const (
// DisclosedAttribute represents a disclosed attribute.
type
DisclosedAttribute
struct
{
RawValue
*
string
`json:"rawvalue"`
Value
TranslatedString
`json:"value"`
// Value of the disclosed attribute
Identifier
AttributeTypeIdentifier
`json:"id"`
Status
AttributeProofStatus
`json:"status"`
RawValue
*
string
`json:"rawvalue"`
Value
TranslatedString
`json:"value"`
// Value of the disclosed attribute
Identifier
AttributeTypeIdentifier
`json:"id"`
Status
AttributeProofStatus
`json:"status"`
IssuanceTime
Timestamp
`json:"issuancetime"`
}
// ProofList is a gabi.ProofList with some extra methods.
...
...
@@ -243,10 +244,11 @@ func parseAttribute(index int, metadata *MetadataAttribute, attr *big.Int) (*Dis
status
=
AttributeProofStatusNull
}
return
&
DisclosedAttribute
{
Identifier
:
attrid
,
RawValue
:
attrval
,
Value
:
NewTranslatedString
(
attrval
),
Status
:
status
,
Identifier
:
attrid
,
RawValue
:
attrval
,
Value
:
NewTranslatedString
(
attrval
),
Status
:
status
,
IssuanceTime
:
Timestamp
(
metadata
.
SigningDate
()),
},
attrval
,
nil
}
...
...
Tomas
@_confiks
mentioned in commit
f8b269e7
·
Sep 25, 2019
mentioned in commit
f8b269e7
mentioned in commit f8b269e7be2225bcb42baa770136dc1a87979ed4
Toggle commit list
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