ExWapp.Noise.HandshakeSecrets (ExWapp v0.1.2)

Copy Markdown View Source

Immutable container for the transport keys and metadata derived from a Noise handshake.

Summary

Functions

Builds a t/0 struct from a map or keyword list.

Types

t()

@type t() :: %ExWapp.Noise.HandshakeSecrets{
  handshake_hash: binary(),
  handshake_salt: binary(),
  read_key: binary(),
  server_certificate: binary(),
  server_static: binary(),
  write_key: binary()
}

Functions

new(attrs)

@spec new(map() | keyword()) :: t()

Builds a t/0 struct from a map or keyword list.