Open pgte opened 5 years ago
I like this idea. One possible way to ensure that those extensions do not conflict with each other is by using Symbols. The extensions would have a "getter" where you pass the PeerInfo and it would return the underlying data. For instance, getIdentity(PeerInfo)
would return that symbol key's value that the identity extension created.
Would also love to have your input on this @alanshaw
Could you give some more info on the requirements please?
In peer-star-app we pass around
PeerInfo
objects to represent peers in apps and collaborations. Once we introduce identity and capabilities, we need to encode and exchange this new information, and I'm thinking whether thePeerInfo
objects would be the best place for this.If yes, is there a safe extension mechanism where an app can store arbitrary information about a peer?