Commit 82a4ad47 authored by Tomas's avatar Tomas Committed by Sietse Ringers
Browse files

feat: Add IssuanceTime to DisclosuedAttribute struct (for 'de vita' attestation case)

parent 7ef0df0f
......@@ -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
}
......
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