Packages

Typed distributed messaging for Gleam on the BEAM.

Retired package: Deprecated - The project needs to be redesigned around a much smaller and clearer core.

Current section

Files

Jump to
distribute include distribute@handshake@state_CryptoProvider.hrl
Raw

include/distribute@handshake@state_CryptoProvider.hrl

-record(crypto_provider, {
init :: fun(() -> distribute@crypto@provider:provider_state()),
start_key_exchange :: fun((distribute@crypto@provider:provider_state(), bitstring()) -> {bitstring(),
distribute@crypto@provider:provider_state()}),
handle_key_exchange :: fun((distribute@crypto@provider:provider_state(), bitstring()) -> {gleam@option:option(bitstring()),
distribute@crypto@provider:provider_state(),
gleam@option:option(distribute@crypto@provider:secure_context())})
}).