aries_cloudagent.protocols.endorse_transaction.v1_0.models package
Submodules
aries_cloudagent.protocols.endorse_transaction.v1_0.models.transaction_record module
Handle transaction information interface.
- class aries_cloudagent.protocols.endorse_transaction.v1_0.models.transaction_record.TransactionRecord(*, transaction_id: Optional[str] = None, _type: Optional[str] = None, comment: Optional[str] = None, signature_request: Optional[list] = None, signature_response: Optional[list] = None, timing: Optional[dict] = None, formats: Optional[list] = None, messages_attach: Optional[list] = None, thread_id: Optional[str] = None, connection_id: Optional[str] = None, state: Optional[str] = None, endorser_write_txn: Optional[bool] = None, meta_data: Optional[dict] = None, **kwargs)[source]
Bases:
BaseExchangeRecord
Represents a single transaction record.
- ADD_SIGNATURE = 'add-signature'
- CACHE_ENABLED = True
- ENDORSE_TRANSACTION = 'aries.transaction.endorse'
- FORMAT_VERSION = 'dif/endorse-transaction/request@v1.0'
- class Meta[source]
Bases:
object
Transaction Record metadata.
- schema_class = 'TransactionRecordSchema'
- RECORD_ID_NAME = 'transaction_id'
- RECORD_TYPE = 'transaction'
- REFUSE_TRANSACTION = 'aries.transaction.refuse'
- REGISTER_PUBLIC_DID = 'aries.transaction.register_public_did'
- SIGNATURE_CONTEXT = 'did:sov'
- SIGNATURE_REQUEST = 'https://didcomm.org/sign-attachment/1.0/signature-request'
- SIGNATURE_RESPONSE = 'https://didcomm.org/sign-attachment/1.0/signature-response'
- SIGNATURE_TYPE = 'default'
- STATE_INIT = 'init'
- STATE_REQUEST_RECEIVED = 'request_received'
- STATE_REQUEST_SENT = 'request_sent'
- STATE_TRANSACTION_ACKED = 'transaction_acked'
- STATE_TRANSACTION_CANCELLED = 'transaction_cancelled'
- STATE_TRANSACTION_CREATED = 'transaction_created'
- STATE_TRANSACTION_ENDORSED = 'transaction_endorsed'
- STATE_TRANSACTION_REFUSED = 'transaction_refused'
- STATE_TRANSACTION_RESENT = 'transaction_resent'
- STATE_TRANSACTION_RESENT_RECEIVED = 'transaction_resent_received'
- TAG_NAMES = {'connection_id', 'state', 'thread_id'}
- WRITE_DID_TRANSACTION = 'aries.transaction.ledger.write_did'
- WRITE_TRANSACTION = 'aries.transaction.ledger.write'
- property record_value: dict
Accessor for the JSON record value generated for this transaction record.
- async classmethod retrieve_by_connection_and_thread(session: ProfileSession, connection_id: str, thread_id: str) TransactionRecord [source]
Retrieve a TransactionRecord by connection and thread ID.
- class aries_cloudagent.protocols.endorse_transaction.v1_0.models.transaction_record.TransactionRecordSchema(*args: Any, **kwargs: Any)[source]
Bases:
BaseExchangeSchema
Schema to allow serialization/deserialization of transaction records.