withPurpose

Create a copy with a different purpose.

Example:

val options = proofOptionsForIssuance()
.withPurpose(ProofPurpose.Authentication)