aries / net.globalid.aries.features.presentproof.record / ProofRecord

ProofRecord

open class ProofRecord : BaseRecord

Represents a wallet record for the present proof protocol.

Types

AcceptedRequest

The present proof record in the "accepted request" state.

data class AcceptedRequest : ProofRecord

AckPresentationReceived

The present proof record was received by Verifier and he responded with acknowledge.

data class AckPresentationReceived : ProofRecord

ReceivedRequest

The present proof record in the "received request" state. We are the prover in this case. When we receive a request, we save the corresponding connection ID and the request JSON. We use the thread ID to decorate the response, if there will be one.

data class ReceivedRequest : ProofRecord

RejectedRequest

The present proof record in the "rejected request" state.

data class RejectedRequest : ProofRecord

SentProposal

The present proof record in the "sent proposal" state. We are the prover in this case. When we send a proposal, we save the corresponding connection ID and the proposal JSON. We use the thread ID to reference a received request back to the proposal (if there is one, as a request can also be the first message).

data class SentProposal : ProofRecord

Constructors

<init>

Represents a wallet record for the present proof protocol.

ProofRecord(id: String, connectionContext: ConnectionContext, state: String)

Properties

connectionContext

context about the connection for this instance of the protocol

open val connectionContext: ConnectionContext

id

is the wallet record ID.

open val id: String

state

is the current state of the record (used for serialization/deserialization).

val state: String

typeName

must be the same for all sub-classes for correct wallet operation.

open val typeName: String

Companion Object Properties

PROPERTY_STATE

const val PROPERTY_STATE: String