Closed matjazv closed 1 year ago
Each peer needs to have a unique and fixed peer ID. On boot if a peer doesn't have a peer ID, generate and save it for a later use.
peer ID
Consider a possibility to import private key via config file. Than something like this can be used: privKey, err := crypto.UnmarshalPrivateKey([]byte)
privKey, err := crypto.UnmarshalPrivateKey([]byte)
crypto.GetKeys
Description
Each peer needs to have a unique and fixed
peer ID
. On boot if a peer doesn't have apeer ID
, generate and save it for a later use.Consider a possibility to import private key via config file. Than something like this can be used:
privKey, err := crypto.UnmarshalPrivateKey([]byte)
Acceptance Criteria
peer ID
and is not changed during a system reset.Additional Information
crypto.GetKeys
can be used for generating key pairs