Skip to content

Commit

Permalink
Update bound/kt/src/main/kotlin/web5/sdk/vc/StatusListCredential.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-neal authored Sep 16, 2024
1 parent 9b7b867 commit 5a1f9f5
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions bound/kt/src/main/kotlin/web5/sdk/vc/StatusListCredential.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,28 +79,7 @@ data class StatusListCredential(
*
* Example usage:
* ```
* val issuerBearerDid = DidJwk.create(null)
* val subjectDidUri = "did:dht:ng4hmqtrgujox4agpf8okxihnyy1zqnq97qfeq15x8oar7yepzhy"
*
* val verifiableCredential = VerifiableCredential.create(
* Issuer.StringIssuer(issuerBearerDid.did.uri),
* CredentialSubject(id = subjectDidUri),
* VerifiableCredentialCreateOptions(
* credentialStatus = CredentialStatus(
* id = "https://example.com/status/1",
* type = "StatusList2021Entry",
* statusPurpose = "revocation",
* statusListIndex = "3",
* statusListCredential = "https://example.com/status/1"
* )
* )
* )
*
* val statusListCredential = StatusListCredential.create(
* Issuer.StringIssuer(issuerBearerDid.did.uri),
* "revocation",
* listOf(verifiableCredential)
* )
*
* val isDisabled = statusListCredential.isDisabled(verifiableCredential)
* ```
Expand Down

0 comments on commit 5a1f9f5

Please sign in to comment.