diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PrivateKey.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PrivateKey.kt index 6dfd2021d..574041d76 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PrivateKey.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PrivateKey.kt @@ -2,8 +2,8 @@ package org.hyperledger.identus.walletsdk.apollo.utils import org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters import org.bouncycastle.jce.provider.BouncyCastleProvider -import io.iohk.atala.prism.apollo.base64.base64UrlEncoded -import io.iohk.atala.prism.apollo.utils.KMMEdPrivateKey +import org.hyperledger.identus.apollo.base64.base64UrlEncoded +import org.hyperledger.identus.apollo.utils.KMMEdPrivateKey import org.hyperledger.identus.walletsdk.domain.models.Curve import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurveKey import org.hyperledger.identus.walletsdk.domain.models.keyManagement.ExportableKey diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PublicKey.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PublicKey.kt index df0588fe4..b28ef4243 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PublicKey.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Ed25519PublicKey.kt @@ -1,9 +1,9 @@ package org.hyperledger.identus.walletsdk.apollo.utils -import io.iohk.atala.prism.apollo.base64.base64UrlEncoded -import io.iohk.atala.prism.apollo.utils.KMMEdPublicKey import org.bouncycastle.crypto.params.Ed25519PublicKeyParameters import org.bouncycastle.jce.provider.BouncyCastleProvider +import org.hyperledger.identus.apollo.base64.base64UrlEncoded +import org.hyperledger.identus.apollo.utils.KMMEdPublicKey import org.hyperledger.identus.walletsdk.domain.models.Curve import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurveKey import org.hyperledger.identus.walletsdk.domain.models.keyManagement.ExportableKey diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PrivateKey.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PrivateKey.kt index 33e38aa18..1c16a613a 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PrivateKey.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PrivateKey.kt @@ -3,11 +3,12 @@ package org.hyperledger.identus.walletsdk.apollo.utils import org.bouncycastle.jce.ECNamedCurveTable import org.bouncycastle.jce.provider.BouncyCastleProvider import org.bouncycastle.jce.spec.ECNamedCurveSpec -import io.iohk.atala.prism.apollo.base64.base64UrlDecodedBytes -import io.iohk.atala.prism.apollo.base64.base64UrlEncoded -import io.iohk.atala.prism.apollo.derivation.DerivationPath -import io.iohk.atala.prism.apollo.derivation.HDKey -import io.iohk.atala.prism.apollo.utils.KMMECSecp256k1PrivateKey +import org.hyperledger.identus.apollo.base64.base64UrlDecodedBytes +import org.hyperledger.identus.apollo.base64.base64UrlEncoded +import org.hyperledger.identus.apollo.derivation.DerivationPath +import org.hyperledger.identus.apollo.derivation.HDKey +import org.hyperledger.identus.apollo.utils.KMMECSecp256k1PrivateKey +import org.hyperledger.identus.apollo.utils.KMMEllipticCurve import org.hyperledger.identus.walletsdk.domain.models.Curve import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurveKey import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurvePointXKey diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PublicKey.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PublicKey.kt index 698b61432..79b7ca915 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PublicKey.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/Secp256k1PublicKey.kt @@ -3,9 +3,9 @@ package org.hyperledger.identus.walletsdk.apollo.utils import org.bouncycastle.jce.ECNamedCurveTable import org.bouncycastle.jce.provider.BouncyCastleProvider import org.bouncycastle.jce.spec.ECNamedCurveSpec -import io.iohk.atala.prism.apollo.base64.base64UrlEncoded -import io.iohk.atala.prism.apollo.utils.KMMECSecp256k1PublicKey -import io.iohk.atala.prism.apollo.utils.KMMEllipticCurve +import org.hyperledger.identus.apollo.base64.base64UrlEncoded +import org.hyperledger.identus.apollo.utils.KMMECSecp256k1PublicKey +import org.hyperledger.identus.apollo.utils.KMMEllipticCurve import org.hyperledger.identus.walletsdk.apollo.config.ECConfig import org.hyperledger.identus.walletsdk.domain.models.Curve import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurveKey diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PrivateKey.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PrivateKey.kt index 23411d5fe..66b2c6f69 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PrivateKey.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PrivateKey.kt @@ -2,8 +2,8 @@ package org.hyperledger.identus.walletsdk.apollo.utils import org.bouncycastle.crypto.params.X25519PrivateKeyParameters import org.bouncycastle.jce.provider.BouncyCastleProvider -import io.iohk.atala.prism.apollo.base64.base64UrlEncoded -import io.iohk.atala.prism.apollo.utils.KMMX25519PrivateKey +import org.hyperledger.identus.apollo.base64.base64UrlEncoded +import org.hyperledger.identus.apollo.utils.KMMX25519PrivateKey import org.hyperledger.identus.walletsdk.domain.models.Curve import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurveKey import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurvePointXKey diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PublicKey.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PublicKey.kt index cfd9be002..30b3de84f 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PublicKey.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/apollo/utils/X25519PublicKey.kt @@ -2,7 +2,7 @@ package org.hyperledger.identus.walletsdk.apollo.utils import org.bouncycastle.crypto.params.X25519PublicKeyParameters import org.bouncycastle.jce.provider.BouncyCastleProvider -import io.iohk.atala.prism.apollo.base64.base64UrlEncoded +import org.hyperledger.identus.apollo.base64.base64UrlEncoded import org.hyperledger.identus.walletsdk.domain.models.Curve import org.hyperledger.identus.walletsdk.domain.models.keyManagement.CurveKey import org.hyperledger.identus.walletsdk.domain.models.keyManagement.ExportableKey diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/buildingblocks/Pollux.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/buildingblocks/Pollux.kt index 44428096c..6a113d3c2 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/buildingblocks/Pollux.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/buildingblocks/Pollux.kt @@ -4,11 +4,6 @@ import anoncreds_wrapper.CredentialOffer import anoncreds_wrapper.CredentialRequest import anoncreds_wrapper.CredentialRequestMetadata import anoncreds_wrapper.LinkSecret -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationDefinitionRequest -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationOptions -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptions -import java.security.interfaces.ECPublicKey -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmission import kotlinx.serialization.json.JsonObject import org.hyperledger.identus.walletsdk.domain.models.AttachmentDescriptor import org.hyperledger.identus.walletsdk.domain.models.Credential @@ -21,6 +16,8 @@ import org.hyperledger.identus.walletsdk.domain.models.keyManagement.PrivateKey import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationDefinitionRequest import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationOptions import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmission +import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptions +import java.security.interfaces.ECPublicKey /** * The `Pollux` interface represents a set of operations for working with verifiable credentials. diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/models/keyManagement/ExportableImportableKey.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/models/keyManagement/ExportableImportableKey.kt index 0394824b4..8488d7d48 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/models/keyManagement/ExportableImportableKey.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/models/keyManagement/ExportableImportableKey.kt @@ -3,8 +3,8 @@ package org.hyperledger.identus.walletsdk.domain.models.keyManagement import kotlinx.serialization.Serializable import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json -import io.iohk.atala.prism.apollo.base64.base64PadEncoded -import io.iohk.atala.prism.apollo.base64.base64UrlDecodedBytes +import org.hyperledger.identus.apollo.base64.base64PadEncoded +import org.hyperledger.identus.apollo.base64.base64UrlDecodedBytes /** * This interface defines what is required for a key to be exportable diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/EdgeAgent.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/EdgeAgent.kt index 11ffa815f..055c2c916 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/EdgeAgent.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/EdgeAgent.kt @@ -3,7 +3,6 @@ package org.hyperledger.identus.walletsdk.edgeagent import anoncreds_wrapper.CredentialOffer import anoncreds_wrapper.CredentialRequestMetadata import anoncreds_wrapper.LinkSecret -import eu.europa.ec.eudi.sdjwt.vc.SD_JWT_VC_TYPE import com.nimbusds.jose.EncryptionMethod import com.nimbusds.jose.JWEAlgorithm import com.nimbusds.jose.JWEDecrypter @@ -15,6 +14,7 @@ import com.nimbusds.jose.crypto.X25519Decrypter import com.nimbusds.jose.crypto.X25519Encrypter import com.nimbusds.jose.jwk.OctetKeyPair import com.nimbusds.jose.util.Base64URL +import eu.europa.ec.eudi.sdjwt.vc.SD_JWT_VC_TYPE import io.ktor.client.plugins.contentnegotiation.ContentNegotiation import io.ktor.http.ContentType import io.ktor.http.HttpMethod @@ -39,8 +39,8 @@ import kotlinx.serialization.json.decodeFromJsonElement import kotlinx.serialization.json.jsonArray import kotlinx.serialization.json.jsonObject import kotlinx.serialization.json.jsonPrimitive -import io.iohk.atala.prism.apollo.base64.base64UrlDecoded -import io.iohk.atala.prism.apollo.base64.base64UrlEncoded +import org.hyperledger.identus.apollo.base64.base64UrlDecoded +import org.hyperledger.identus.apollo.base64.base64UrlEncoded import org.hyperledger.identus.walletsdk.apollo.utils.Ed25519KeyPair import org.hyperledger.identus.walletsdk.apollo.utils.Ed25519PrivateKey import org.hyperledger.identus.walletsdk.apollo.utils.Secp256k1KeyPair @@ -60,6 +60,7 @@ import org.hyperledger.identus.walletsdk.domain.models.AttachmentData.Attachment import org.hyperledger.identus.walletsdk.domain.models.AttachmentData.AttachmentJsonData import org.hyperledger.identus.walletsdk.domain.models.AttachmentDescriptor import org.hyperledger.identus.walletsdk.domain.models.Credential +import org.hyperledger.identus.walletsdk.domain.models.CredentialOperationsOptions import org.hyperledger.identus.walletsdk.domain.models.CredentialType import org.hyperledger.identus.walletsdk.domain.models.Curve import org.hyperledger.identus.walletsdk.domain.models.DID @@ -71,6 +72,7 @@ import org.hyperledger.identus.walletsdk.domain.models.PeerDID import org.hyperledger.identus.walletsdk.domain.models.PolluxError import org.hyperledger.identus.walletsdk.domain.models.PresentationClaims import org.hyperledger.identus.walletsdk.domain.models.PrismDIDInfo +import org.hyperledger.identus.walletsdk.domain.models.ProvableCredential import org.hyperledger.identus.walletsdk.domain.models.Seed import org.hyperledger.identus.walletsdk.domain.models.Signature import org.hyperledger.identus.walletsdk.domain.models.UnknownError @@ -97,11 +99,6 @@ import org.hyperledger.identus.walletsdk.edgeagent.protocols.outOfBand.Invitatio import org.hyperledger.identus.walletsdk.edgeagent.protocols.outOfBand.OutOfBandInvitation import org.hyperledger.identus.walletsdk.edgeagent.protocols.outOfBand.PrismOnboardingInvitation import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.Presentation -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.RequestPresentation -import java.util.* -import org.hyperledger.identus.walletsdk.domain.models.CredentialOperationsOptions -import org.hyperledger.identus.walletsdk.domain.models.PresentationClaims -import org.hyperledger.identus.walletsdk.domain.models.ProvableCredential import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationDefinitionRequest import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationOptions import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmission @@ -120,6 +117,8 @@ import org.hyperledger.identus.walletsdk.pollux.models.JWTCredential import org.hyperledger.identus.walletsdk.pollux.models.SDJWTCredential import org.kotlincrypto.hash.sha2.SHA256 import java.net.UnknownHostException +import java.util.* +import kotlin.text.encodeToByteArray /** * Check if the passed URL is valid or not. @@ -997,7 +996,7 @@ class EdgeAgent { is AttachmentJsonData -> it.data.data else -> null } - }.first() + } presentationString = credential.presentation( requestData.encodeToByteArray(), listOf( diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/PolluxImpl.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/PolluxImpl.kt index 53af76636..c0528228a 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/PolluxImpl.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/PolluxImpl.kt @@ -8,10 +8,6 @@ import anoncreds_wrapper.CredentialRequest import anoncreds_wrapper.CredentialRequestMetadata import anoncreds_wrapper.LinkSecret import anoncreds_wrapper.Prover -import anoncreds_wrapper.RequestedAttribute -import anoncreds_wrapper.RequestedPredicate -import anoncreds_wrapper.Schema -import anoncreds_wrapper.SchemaId import com.apicatalog.jsonld.JsonLd import com.apicatalog.jsonld.document.JsonDocument import com.apicatalog.rdf.Rdf @@ -26,7 +22,6 @@ import com.nimbusds.jwt.SignedJWT import org.hyperledger.identus.apollo.base64.base64UrlDecoded import org.hyperledger.identus.apollo.utils.KMMECSecp256k1PublicKey import org.hyperledger.identus.apollo.base64.base64UrlDecodedBytes -import org.hyperledger.identus.apollo.utils.KMMEllipticCurve import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationOptions import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptions import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptionsJWT @@ -48,7 +43,6 @@ import org.hyperledger.identus.walletsdk.domain.buildingblocks.Castor import org.hyperledger.identus.walletsdk.domain.buildingblocks.Pollux import org.hyperledger.identus.walletsdk.domain.models.Api import org.hyperledger.identus.walletsdk.domain.models.ApiImpl -import org.hyperledger.identus.walletsdk.domain.models.AttachmentData.AttachmentBase64 import org.hyperledger.identus.walletsdk.domain.models.AttachmentDescriptor import org.hyperledger.identus.walletsdk.domain.models.Credential import org.hyperledger.identus.walletsdk.domain.models.CredentialType @@ -65,7 +59,6 @@ import org.hyperledger.identus.walletsdk.domain.models.keyManagement.PublicKey import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationDefinitionRequest import org.hyperledger.identus.walletsdk.domain.models.keyManagement.TypeKey import org.hyperledger.identus.walletsdk.domain.models.keyManagement.VerifiableKey -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.RequestPresentation import org.hyperledger.identus.walletsdk.edgeagent.shared.KeyValue import org.hyperledger.identus.walletsdk.pollux.models.AnonCredential import org.hyperledger.identus.walletsdk.pollux.models.JWTCredential diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/AnonCredential.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/AnonCredential.kt index 7716cd3ba..59af921e4 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/AnonCredential.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/AnonCredential.kt @@ -12,20 +12,17 @@ import anoncreds_wrapper.Schema import anoncreds_wrapper.SchemaId import io.ktor.http.HttpHeaders import io.ktor.http.HttpMethod +import kotlinx.serialization.ExperimentalSerializationApi +import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json +import kotlinx.serialization.json.JsonNames import kotlinx.serialization.json.JsonObject import kotlinx.serialization.json.jsonArray import kotlinx.serialization.json.jsonPrimitive import org.didcommx.didcomm.common.Typ import org.hyperledger.identus.walletsdk.domain.models.Api -import kotlinx.serialization.ExperimentalSerializationApi -import kotlinx.serialization.SerialName -import kotlinx.serialization.Serializable -import kotlinx.serialization.encodeToString -import kotlinx.serialization.json.Json -import kotlinx.serialization.json.JsonNames import org.hyperledger.identus.walletsdk.domain.models.Claim import org.hyperledger.identus.walletsdk.domain.models.ClaimType import org.hyperledger.identus.walletsdk.domain.models.Credential diff --git a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/JWTCredential.kt b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/JWTCredential.kt index c4ae488ad..c0e10db4d 100644 --- a/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/JWTCredential.kt +++ b/edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/pollux/models/JWTCredential.kt @@ -25,12 +25,17 @@ import kotlinx.serialization.json.jsonObject import kotlinx.serialization.json.jsonPrimitive import org.hyperledger.identus.apollo.base64.base64UrlDecoded import org.hyperledger.identus.walletsdk.domain.VC +import org.hyperledger.identus.walletsdk.domain.models.Claim +import org.hyperledger.identus.walletsdk.domain.models.ClaimType +import org.hyperledger.identus.walletsdk.domain.models.Credential import org.hyperledger.identus.walletsdk.domain.models.CredentialOperationsOptions import org.hyperledger.identus.walletsdk.domain.models.DID +import org.hyperledger.identus.walletsdk.domain.models.JWTPayload import org.hyperledger.identus.walletsdk.domain.models.JWTVerifiableCredential import org.hyperledger.identus.walletsdk.domain.models.JWTVerifiablePresentation 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.pollux.CHALLENGE import org.hyperledger.identus.walletsdk.pollux.CONTEXT import org.hyperledger.identus.walletsdk.pollux.CONTEXT_URL @@ -43,13 +48,6 @@ import org.hyperledger.identus.walletsdk.pollux.VERIFIABLE_PRESENTATION import org.hyperledger.identus.walletsdk.pollux.VP import java.security.PrivateKey import java.security.interfaces.ECPrivateKey -import org.hyperledger.identus.walletsdk.domain.models.Claim -import org.hyperledger.identus.walletsdk.domain.models.ClaimType -import org.hyperledger.identus.walletsdk.domain.models.Credential -import org.hyperledger.identus.walletsdk.domain.models.JWTPayload -import org.hyperledger.identus.walletsdk.domain.models.JWTVerifiableCredential -import org.hyperledger.identus.walletsdk.domain.models.JWTVerifiablePresentation -import org.hyperledger.identus.walletsdk.domain.models.StorableCredential @Serializable /** diff --git a/edge-agent-sdk/src/commonTest/kotlin/org/hyperledger/identus/walletsdk/edgeagent/PolluxMock.kt b/edge-agent-sdk/src/commonTest/kotlin/org/hyperledger/identus/walletsdk/edgeagent/PolluxMock.kt index 1699819a1..c2fd895da 100644 --- a/edge-agent-sdk/src/commonTest/kotlin/org/hyperledger/identus/walletsdk/edgeagent/PolluxMock.kt +++ b/edge-agent-sdk/src/commonTest/kotlin/org/hyperledger/identus/walletsdk/edgeagent/PolluxMock.kt @@ -3,11 +3,6 @@ package org.hyperledger.identus.walletsdk.edgeagent import anoncreds_wrapper.CredentialOffer import anoncreds_wrapper.CredentialRequestMetadata import anoncreds_wrapper.LinkSecret -import anoncreds_wrapper.Presentation -import anoncreds_wrapper.Schema -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationOptions -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptions -import java.security.interfaces.ECPublicKey import kotlinx.serialization.json.JsonObject import org.hyperledger.identus.walletsdk.domain.buildingblocks.Pollux import org.hyperledger.identus.walletsdk.domain.models.AttachmentDescriptor @@ -22,8 +17,6 @@ import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationOptions import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmission import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.PresentationSubmissionOptions -import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.RequestPresentation -import org.hyperledger.identus.walletsdk.pollux.models.AnonCredential import org.hyperledger.identus.walletsdk.pollux.models.CredentialRequest import org.hyperledger.identus.walletsdk.pollux.models.CredentialRequestMeta import java.security.interfaces.ECPublicKey diff --git a/sampleapp/src/main/java/org/hyperledger/identus/walletsdk/sampleapp/ui/messages/MessagesViewModel.kt b/sampleapp/src/main/java/org/hyperledger/identus/walletsdk/sampleapp/ui/messages/MessagesViewModel.kt index 6eb17e983..c865a188f 100644 --- a/sampleapp/src/main/java/org/hyperledger/identus/walletsdk/sampleapp/ui/messages/MessagesViewModel.kt +++ b/sampleapp/src/main/java/org/hyperledger/identus/walletsdk/sampleapp/ui/messages/MessagesViewModel.kt @@ -18,6 +18,7 @@ import org.hyperledger.identus.walletsdk.domain.models.DIDDocument import org.hyperledger.identus.walletsdk.domain.models.InputFieldFilter import org.hyperledger.identus.walletsdk.domain.models.Message import org.hyperledger.identus.walletsdk.domain.models.PresentationClaims +import org.hyperledger.identus.walletsdk.domain.models.ProvableCredential import org.hyperledger.identus.walletsdk.edgeagent.DIDCOMM1 import org.hyperledger.identus.walletsdk.edgeagent.DIDCOMM_MESSAGING import org.hyperledger.identus.walletsdk.edgeagent.protocols.ProtocolType @@ -26,8 +27,6 @@ import org.hyperledger.identus.walletsdk.edgeagent.protocols.issueCredential.Off import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.RequestPresentation import org.hyperledger.identus.walletsdk.sampleapp.Sdk import java.time.LocalDateTime -import kotlinx.coroutines.CoroutineExceptionHandler -import org.hyperledger.identus.walletsdk.domain.models.ProvableCredential import org.hyperledger.identus.walletsdk.sampleapp.db.Message as MessageEntity class MessagesViewModel(application: Application) : AndroidViewModel(application) {