code: public void addPrivateKey(PrivateKey key, NetworkParameters network) {
        _privateKeys.put(key.getPublicKey(), key);
        addPublicKey(key.getPublicKey(), network);
     }
docs: Add a private key to the key ring.
  
  @param key private key
  @param network bitcoin network to talk to