Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian G <[email protected]>
  • Loading branch information
cristianIOHK committed Sep 25, 2024
1 parent 9b4c0b9 commit 490e970
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import org.hyperledger.identus.walletsdk.domain.models.keyManagement.PublicKey
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.RawKey
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.SeedKey
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.StorableKey
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.StorablePrivateKey
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.TypeKey
import org.hyperledger.identus.walletsdk.logger.LogComponent
import org.hyperledger.identus.walletsdk.logger.LogLevel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import org.hyperledger.identus.walletsdk.domain.models.Credential
import org.hyperledger.identus.walletsdk.domain.models.CredentialType
import org.hyperledger.identus.walletsdk.domain.models.Error
import org.hyperledger.identus.walletsdk.domain.models.KnownPrismError
import kotlin.reflect.KClass
import kotlin.reflect.jvm.internal.impl.load.java.structure.JavaClass

sealed class EdgeAgentError : KnownPrismError() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import kotlinx.serialization.json.longOrNull

class DescriptorPath(private val jsonElement: JsonElement) {

fun getValue (path: String): Any? {
fun getValue(path: String): Any? {
val regex = Regex("[/\\[\\]`.]+")
val segments = path.split(regex).filter { it.isNotEmpty() }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation
import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptionsJWT
import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptionsSDJWT
import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.SDJWTPresentationOptions
import org.hyperledger.identus.walletsdk.logger.LogComponent
import org.hyperledger.identus.walletsdk.logger.Logger
import org.hyperledger.identus.walletsdk.logger.LoggerImpl
import org.hyperledger.identus.walletsdk.logger.LogComponent
import org.hyperledger.identus.walletsdk.pluto.RestorationID
import org.hyperledger.identus.walletsdk.pollux.models.AnonCredential
import org.hyperledger.identus.walletsdk.pollux.models.AnoncredsPresentationDefinitionRequest
Expand Down Expand Up @@ -1247,7 +1247,6 @@ open class PolluxImpl(
val inputDescriptor =
inputDescriptors.find { it.id == descriptorItem.id }
verifyInputDescriptors(inputDescriptor, Json.encodeToJsonElement(verifiableCredential))

} ?: throw PolluxError.VerificationUnsuccessful("Invalid submission, no value found for $pathNested")
return true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
package org.hyperledger.identus.walletsdk.pollux.models

import com.nimbusds.jose.JOSEObjectType
import com.nimbusds.jose.JWSAlgorithm
import com.nimbusds.jose.crypto.ECDSASigner
import com.nimbusds.jwt.SignedJWT
import eu.europa.ec.eudi.sdjwt.ClaimValidations.primitiveClaim
import eu.europa.ec.eudi.sdjwt.JsonPointer
import eu.europa.ec.eudi.sdjwt.JwtAndClaims
import eu.europa.ec.eudi.sdjwt.JwtSignatureVerifier
import eu.europa.ec.eudi.sdjwt.NoSignatureValidation
import eu.europa.ec.eudi.sdjwt.SdJwt
import eu.europa.ec.eudi.sdjwt.SdJwtFactory
import eu.europa.ec.eudi.sdjwt.SdJwtIssuer
import eu.europa.ec.eudi.sdjwt.SdJwtVerifier
import eu.europa.ec.eudi.sdjwt.exp
import eu.europa.ec.eudi.sdjwt.iat
import eu.europa.ec.eudi.sdjwt.iss
import eu.europa.ec.eudi.sdjwt.name
import eu.europa.ec.eudi.sdjwt.nimbus
import eu.europa.ec.eudi.sdjwt.plain
import eu.europa.ec.eudi.sdjwt.present
import eu.europa.ec.eudi.sdjwt.recreateClaims
import eu.europa.ec.eudi.sdjwt.sd
import eu.europa.ec.eudi.sdjwt.sdJwt
import eu.europa.ec.eudi.sdjwt.serialize
import eu.europa.ec.eudi.sdjwt.sub
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Transient
Expand All @@ -44,11 +27,7 @@ import org.hyperledger.identus.walletsdk.domain.models.CredentialOperationsOptio
import org.hyperledger.identus.walletsdk.domain.models.PolluxError
import org.hyperledger.identus.walletsdk.domain.models.ProvableCredential
import org.hyperledger.identus.walletsdk.domain.models.StorableCredential
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.PrivateKey
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.SignableKey
import java.security.interfaces.ECPrivateKey
import java.util.*
import kotlinx.serialization.json.put

@OptIn(ExperimentalSerializationApi::class)
data class SDJWTCredential(
Expand Down

0 comments on commit 490e970

Please sign in to comment.