You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
Instead of implementing authentication in every protocol, it would be nice to have a simple service that negotiates capabilities out of band. At its core, this service would provide the simple interface:
typeCapabilitiesinterface {
// Has checks if peer `p` has capability `cap`.// cap has the form `/ns/string`.Has(p peer.ID, capCapability) bool
}
typeCapabilityServiceinterface {
Capabilities// Register a handler for capabilities with namespace `ns`.Register(nsstring, hHandler)
}
Other services could simply check capabilities by calling capService.Hash(peer, cap). The actual capability service would be responsible for determining if the peer has the capability (out of band).
@diasdavid IIRC, you were working on this. However, I can't find any relevant issues.
This came up in both #270 and #236.
Instead of implementing authentication in every protocol, it would be nice to have a simple service that negotiates capabilities out of band. At its core, this service would provide the simple interface:
Other services could simply check capabilities by calling
capService.Hash(peer, cap). The actual capability service would be responsible for determining if the peer has the capability (out of band).@diasdavid IIRC, you were working on this. However, I can't find any relevant issues.