-
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(pollux): add sdjwt capability (#174)
Signed-off-by: goncalo-frade-iohk <goncalo.frade@iohk.io>
- Loading branch information
1 parent
079b6a9
commit cd3baf8
Showing
22 changed files
with
800 additions
and
256 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
22 changes: 22 additions & 0 deletions
22
...c/commonMain/kotlin/org/hyperledger/identus/walletsdk/domain/models/ProvableCredential.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,22 @@ | ||
package org.hyperledger.identus.walletsdk.domain.models | ||
|
||
import org.hyperledger.identus.walletsdk.domain.models.keyManagement.PrivateKey | ||
|
||
sealed class CredentialOperationsOptions { | ||
data class Schema(val id: String, val json: String) : CredentialOperationsOptions() | ||
data class SchemaDownloader(val api: Api) : CredentialOperationsOptions() | ||
data class CredentialDefinition(val id: String, val json: String) : CredentialOperationsOptions() | ||
data class CredentialDefinitionDownloader(val api: Api) : CredentialOperationsOptions() | ||
data class LinkSecret(val id: String, val secret: String) : CredentialOperationsOptions() | ||
data class SubjectDID(val did: DID) : CredentialOperationsOptions() | ||
data class Entropy(val entropy: String) : CredentialOperationsOptions() | ||
data class SignableKey(val key: SignableKey?) : CredentialOperationsOptions() | ||
data class ExportableKey(val key: PrivateKey?) : CredentialOperationsOptions() | ||
data class ZkpPresentationParams(val attributes: Map<String, Boolean>, val predicates: List<String>) : CredentialOperationsOptions() | ||
data class DisclosingClaims(val claims: List<String>) : CredentialOperationsOptions() | ||
data class Custom(val key: String, val data: ByteArray) : CredentialOperationsOptions() | ||
} | ||
|
||
interface ProvableCredential { | ||
suspend fun presentation(request: ByteArray, options: List<CredentialOperationsOptions>): 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
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
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
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
Oops, something went wrong.