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

SentProposal

@JsonClass(true) data class SentProposal : ProofRecord

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).

Constructors

<init>

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).

SentProposal(id: String, connectionContext: ConnectionContext, proposalJson: String)

Properties

connectionContext

context about the connection for this instance of the protocol

val connectionContext: ConnectionContext

id

is the wallet record ID.

val id: String

proposalJson

the proposal JSON format

val proposalJson: String

Functions

toReceivedRequest

Converts the SentProposal record to ReceivedRequest record

fun toReceivedRequest(requestJson: String): ReceivedRequest