pravahio / go-mesh

Realtime data exchange platform for Smart Cities
https://pravah.io
MIT License
25 stars 5 forks source link

Account compatibility between RemoteAccess and Libp2p #2

Closed upperwal closed 5 years ago

upperwal commented 5 years ago

There are two account right now, one used for libp2p and other one for RemoteAccess (ethereum for now). As these two accounts could be generated differently (RSA vs ECC) we need a way to make them compatible and future proof.

Proposal

  1. Keep them independent of each other even if they are generated from the same generator. This would mean two key space one for libp2p and the other one for RemoteAccess.
Pros Cons
New RA implementations are easy to adopt Would have to export two account
Would be totally independent of each other hence no compatibility issues
upperwal commented 5 years ago

kept them independent. .msa account file contains both libp2p and RA keys.