Variable NoiseSettings.privateKey

Private key in memory.

struct NoiseSettings
{
  // ...
  const(ubyte)[] privateKey;
  // ...
}

Warning

When using this overload, make sure to use secure memory. The memory should be cleared after the createNoiseStream call returns.

The privateKeyPath allows for a simpler, secure API.