Source code for aries_cloudagent.protocols.endorse_transaction.v1_0.controller

"""Protocol controller for endorse transaction."""

from typing import Sequence

ENDORSE_TRANSACTION = "aries.transaction.endorse"
REFUSE_TRANSACTION = "aries.transaction.refuse"
WRITE_TRANSACTION = "aries.transaction.ledger.write"


[docs]class Controller: """Endorse transaction protocol controller.""" def __init__(self, protocol: str): """Initialize the controller."""
[docs] def determine_goal_codes(self) -> Sequence[str]: """Return defined goal_codes.""" return [ENDORSE_TRANSACTION, REFUSE_TRANSACTION, WRITE_TRANSACTION]