addPubKey abstract method

void addPubKey(
  1. PeerId id,
  2. PublicKey pk
)

AddPubKey stores the public key of a peer.

Implementation

void addPubKey(PeerId id, PublicKey pk);