addPrivKey abstract method

void addPrivKey(
  1. PeerId id,
  2. PrivateKey sk
)

AddPrivKey stores the private key of a peer.

Implementation

void addPrivKey(PeerId id, PrivateKey sk);