Function createNoiseStream

Create a noise encrypted stream on top of a normal stream.

NoiseStream createNoiseStream (
  vibe.core.stream.Stream stream,
  scope NoiseSettings settings
);

Throws

NoiseException on internal error, AuthException if authentication failed. Exceptions thrown from the low-level stream get passed through.