aries-cloudagent-python icon indicating copy to clipboard operation
aries-cloudagent-python copied to clipboard

Clean Up Tagging of Endorser Connections

Open ianco opened this issue 1 year ago • 1 comments

Currently the Author and Endorser, when setting up a connection, add meta-data to the connection and exchange this data (so each side of the connection knows the "roles" attached to each side.

This is redundant and can result in errors due to timing issues (i.e. both sides are adding meta-data, sending messages to each other, and adding meta data due to the received messages).

I don't think it's necessary to exchange messages (i.e. to know the role attached to the other side of the connection) nor for the Endorser to even have any connection meta-data at all.

The Author MUST have meta-data on the connection in order to support the automated Endorse Transaction flows.

Suggested:

  • eliminate the messages between agents notifying of connection roles
  • eliminate the need for the Endorser to need meta-data on the connection

ianco avatar Jan 19 '24 17:01 ianco

Also wondering if, once the connection metadata is set to indicate the endorser details, if it is redundant for the author to have to tag the connection with transaction_my_job indicating that they are the author - that seems like it would be implicit.

esune avatar Feb 15 '24 00:02 esune