Struct NoiseSettings

Settings for the connectNoiseStream function.

struct NoiseSettings;

Constructors

Constructors

NameDescription
thisConvenience constructor.

Fields

Fields

NameTypeDescription
kindNoiseKindClient or server role.
privateKeyconst(ubyte)[]Private key in memory.
privateKeyPathvibe.inet.path.PathPath to private key file. Either this or the privateKey field must be set. If both are set the privateKeyPath field is used.
remoteKeyPathvibe.inet.path.PathPath to public key file of remote server
verifyRemoteKeynothrow bool delegate(scope const(ubyte[]))If provided will be used to verify the remote public key. If this is not set remoteKeyPath is used instead.