hyperledger-archives / aries-framework-go

Hyperledger Aries Framework Go provides packages for building Agent / DIDComm services.
https://wiki.hyperledger.org/display/ARIES/aries-framework-go
Apache License 2.0
241 stars 158 forks source link

DIDComm Mediator/Router - Mailbox feature #811

Open rolsonquadras opened 4 years ago

rolsonquadras commented 4 years ago

DIDComm mediator should store messages destined to edge agents when they can't connect to the router (mailbox).

part of #807

rolsonquadras commented 4 years ago

This feature can be divided into following components:

m00sey commented 4 years ago

Can you elaborate on what is required for "Integrate with framework"

Internally we initialized using

framework, err := aries.New(
        aries.WithTransportReturnRoute("all"),
        aries.WithOutboundTransports(ws.NewOutbound()),
        aries.WithStoreProvider(mem.NewProvider()),
        aries.WithProtocols(messagepickupSvc.ServiceCreator(), basicmessageSvc.ServiceCreator()),
    )
if err != nil {
    nil, err
}
llorllale commented 4 years ago

@m00sey the question on my mind is: how will the messagepickup protocol be integrated with the mediator one? This corresponds with Rolson's Store the messages when registered agent is unavailable point above

m00sey commented 4 years ago

We had our own router implementation but didn't get it submitted before you published mediator, I am going to be working on that integration.

rolsonquadras commented 4 years ago

Can you elaborate on what is required for "Integrate with framework"

Internally we initialized using

framework, err := aries.New(
      aries.WithTransportReturnRoute("all"),
      aries.WithOutboundTransports(ws.NewOutbound()),
      aries.WithStoreProvider(mem.NewProvider()),
      aries.WithProtocols(messagepickupSvc.ServiceCreator(), basicmessageSvc.ServiceCreator()),
  )
if err != nil {
    nil, err
}

It was been added to the default framework in https://github.com/hyperledger/aries-framework-go/pull/2001/files#diff-da8e5280b0328cb616f0b42390a35b00R72.