Module mydata_did.patched_protocols.present_proof.v1_0.messages.presentation_ack
Represents an explicit RFC 15 ack message, adopted into present-proof protocol.
Expand source code
"""Represents an explicit RFC 15 ack message, adopted into present-proof protocol."""
from marshmallow import EXCLUDE
from aries_cloudagent.messaging.ack.message import Ack, AckSchema
from ..message_types import PRESENTATION_ACK, PROTOCOL_PACKAGE
HANDLER_CLASS = (
f"{PROTOCOL_PACKAGE}.handlers.presentation_ack_handler.PresentationAckHandler"
)
class PresentationAck(Ack):
"""Base class representing an explicit ack message for present-proof protocol."""
class Meta:
"""PresentationAck metadata."""
handler_class = HANDLER_CLASS
message_type = PRESENTATION_ACK
schema_class = "PresentationAckSchema"
def __init__(self, status: str = None, **kwargs):
"""
Initialize an explicit ack message instance.
Args:
status: Status (default OK)
"""
super().__init__(status, **kwargs)
class PresentationAckSchema(AckSchema):
"""Schema for PresentationAck class."""
class Meta:
"""PresentationAck schema metadata."""
model_class = PresentationAck
unknown = EXCLUDE
Classes
class PresentationAck (status: str = None, **kwargs)
-
Base class representing an explicit ack message for present-proof protocol.
Initialize an explicit ack message instance.
Args
status
- Status (default OK)
Expand source code
class PresentationAck(Ack): """Base class representing an explicit ack message for present-proof protocol.""" class Meta: """PresentationAck metadata.""" handler_class = HANDLER_CLASS message_type = PRESENTATION_ACK schema_class = "PresentationAckSchema" def __init__(self, status: str = None, **kwargs): """ Initialize an explicit ack message instance. Args: status: Status (default OK) """ super().__init__(status, **kwargs)
Ancestors
- aries_cloudagent.messaging.ack.message.Ack
- aries_cloudagent.messaging.agent_message.AgentMessage
- aries_cloudagent.messaging.models.base.BaseModel
- abc.ABC
Class variables
var Meta
-
PresentationAck metadata.
class PresentationAckSchema (*args, **kwargs)
-
Schema for PresentationAck class.
Initialize an instance of AgentMessageSchema.
Raises
TypeError
- If Meta.model_class has not been set
Expand source code
class PresentationAckSchema(AckSchema): """Schema for PresentationAck class.""" class Meta: """PresentationAck schema metadata.""" model_class = PresentationAck unknown = EXCLUDE
Ancestors
- aries_cloudagent.messaging.ack.message.AckSchema
- aries_cloudagent.messaging.agent_message.AgentMessageSchema
- aries_cloudagent.messaging.models.base.BaseModelSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
var Meta
-
PresentationAck schema metadata.
var opts