Skip to content

Commit

Permalink
Align Credential Issuer Metadata with SD-JWT-VC.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzarras committed Sep 25, 2024
1 parent f9fa641 commit 019d58d
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,10 @@ internal fun SdJwtVcCredentialConfiguration.toTransferObject(isOffer: Boolean):
}
}
}
putJsonObject("credential_definition") {
put("type", type.value)
if (!isOffer) {
putJsonObject("claims") {
claims.forEach { attribute -> attribute.toTransferObject(this) }
}
put("vct", type.value)
if (!isOffer) {
putJsonObject("claims") {
claims.forEach { attribute -> attribute.toTransferObject(this) }
}
}
}
Expand Down

0 comments on commit 019d58d

Please sign in to comment.