Skip to content

Commit

Permalink
docs: Fix signature verification example
Browse files Browse the repository at this point in the history
Following change introduced in #67.
  • Loading branch information
gnarea committed Oct 25, 2023
1 parent ef9f487 commit 458d3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ suspend fun verifySignature(

val now = ZonedDateTime.now()
val verificationPeriod = now.minus(TTL.toJavaDuration())..now
val member = try {
val (_, member) = try {
signatureBundle.verify(plaintext, SERVICE_OID, verificationPeriod)
} catch (exc: SignatureException) {
throw Exception("Invalid signature bundle", exc)
Expand Down

0 comments on commit 458d3f4

Please sign in to comment.