rubixchain / rubixgoplatform

GNU General Public License v3.0
8 stars 17 forks source link

Ping Peer Improvement by sharing slef-details with peer #155

Closed Maneesha-rubix closed 1 month ago

Maneesha-rubix commented 3 months ago

Previously, we were connecting a peer, say Alice is connecting Bob, to fetch it's DIDType for token ownership validation. Now the protocol is being improved. Now Alice can share her PeerId, DID and DIDType through the same API which she was using for fetching Bob's DIDType. Bob will register or update Alice's details in DIDPeerTable if not already registered or needs to be updated. Then Bob will return it's DIDType to Alice, as was previously.