-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: connectionless credential offer (#207)
- Loading branch information
1 parent
e967a21
commit fce300e
Showing
8 changed files
with
309 additions
and
98 deletions.
There are no files selected for viewing
265 changes: 184 additions & 81 deletions
265
...-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/EdgeAgent.kt
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...in/kotlin/org/hyperledger/identus/walletsdk/edgeagent/models/ConnectionlessMessageData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.hyperledger.identus.walletsdk.edgeagent.models | ||
|
||
import org.hyperledger.identus.walletsdk.domain.models.AttachmentDescriptor | ||
|
||
data class ConnectionlessMessageData( | ||
val messageId: String, | ||
val messageBody: String, | ||
val attachmentDescriptor: AttachmentDescriptor, | ||
val messageThid: String, | ||
val messageFrom: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...erledger/identus/walletsdk/edgeagent/protocols/outOfBand/ConnectionlessCredentialOffer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.hyperledger.identus.walletsdk.edgeagent.protocols.outOfBand | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.hyperledger.identus.walletsdk.edgeagent.protocols.issueCredential.OfferCredential | ||
import java.util.* | ||
|
||
/** | ||
* Represents a connectionless credential offer. | ||
*/ | ||
@Serializable | ||
data class ConnectionlessCredentialOffer( | ||
val offerCredential: OfferCredential | ||
) : InvitationType() |
9 changes: 9 additions & 0 deletions
9
...dger/identus/walletsdk/edgeagent/protocols/outOfBand/ConnectionlessRequestPresentation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.hyperledger.identus.walletsdk.edgeagent.protocols.outOfBand | ||
|
||
import kotlinx.serialization.Serializable | ||
import org.hyperledger.identus.walletsdk.edgeagent.protocols.proofOfPresentation.RequestPresentation | ||
|
||
@Serializable | ||
data class ConnectionlessRequestPresentation( | ||
val requestPresentation: RequestPresentation | ||
) : InvitationType() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 67 additions & 15 deletions
82
...t-sdk/src/commonTest/kotlin/org/hyperledger/identus/walletsdk/edgeagent/EdgeAgentTests.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters