PresentProofProtocol

class PresentProofProtocol(holder: Holder? = null, verifier: Verifier? = null, requestedClaims: Collection<String>? = null, credentialScheme: ConstantIndex.CredentialScheme, serviceEndpoint: String?, challengeForPresentation: String) : ProtocolStateMachine<PresentProofProtocolResult> (source)

Use this class for exactly one instance of a protocol run.

Implements a trimmed-down version of ARIES RFC 0454 Present Proof V2 and uses DIF Presentation Exchange for attachments.

The verifier requests a Verifiable Presentation, and the holder fulfills this request.

If verifier is passed as null, no verification of the received presentation happens.

Constructors

Link copied to clipboard
constructor(holder: Holder? = null, verifier: Verifier? = null, requestedClaims: Collection<String>? = null, credentialScheme: ConstantIndex.CredentialScheme, serviceEndpoint: String?, challengeForPresentation: String)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
open override val isFinished: Boolean

Functions

Link copied to clipboard
Link copied to clipboard
open suspend override fun parseMessage(body: JsonWebMessage, senderKey: JsonWebKey): InternalNextMessage
Link copied to clipboard
Link copied to clipboard
open override fun startDirect(): InternalNextMessage