diff --git a/src/main/kotlin/id/walt/credentials/w3c/VerifiablePresentation.kt b/src/main/kotlin/id/walt/credentials/w3c/VerifiablePresentation.kt index 2883ca9e..f74ddbdb 100644 --- a/src/main/kotlin/id/walt/credentials/w3c/VerifiablePresentation.kt +++ b/src/main/kotlin/id/walt/credentials/w3c/VerifiablePresentation.kt @@ -62,7 +62,7 @@ data class PresentableCredential( } else { verifiableCredential.sdJwt!!.present(selectiveDisclosure?.let { SDMapBuilder().addField(claimKey, false, it).build() }) } - JsonPrimitive(presentedJwt.toString(formatForPresentation = true)) + JsonPrimitive(presentedJwt.toString(formatForPresentation = false)) } else verifiableCredential.toJsonElement() val isJwt diff --git a/src/main/kotlin/id/walt/signatory/WaltIdSignatory.kt b/src/main/kotlin/id/walt/signatory/WaltIdSignatory.kt index 8bf57f21..7a3a6e44 100644 --- a/src/main/kotlin/id/walt/signatory/WaltIdSignatory.kt +++ b/src/main/kotlin/id/walt/signatory/WaltIdSignatory.kt @@ -101,7 +101,9 @@ class WaltIdSignatory(configurationPath: String) : Signatory() { val fullProofConfig = fillProofConfig(config) val vcRequest = credentialBuilder.apply { issuer?.let { setIssuer(it) } - setIssuerId(fullProofConfig.issuerDid) + if(issuer?.id.isNullOrEmpty()) { + setIssuerId(fullProofConfig.issuerDid) + } setIssuanceDate(fullProofConfig.issueDate ?: Instant.now()) setIssued(fullProofConfig.issueDate ?: Instant.now()) fullProofConfig.subjectDid?.let { setSubjectId(it) }