gen_browser v0.3.0 GenBrowser

Link to this section Summary

Functions

Validate signature and decode binary representation of an address

Encode any term and sign against tampering

Send message to a decoded address

Start a new backend for the GenBrowser clients

Link to this section Functions

Link to this function decode_address(secure_binary, secrets \\ [System.get_env("SECRET")])

Validate signature and decode binary representation of an address

If secrets is not set will look for value in SECRET environment variable

Link to this function encode_address(term, secrets \\ [System.get_env("SECRET")])

Encode any term and sign against tampering

If secrets is not set will look for value in SECRET environment variable

Link to this function send(term, message)

Send message to a decoded address

Link to this function start_link(config, options)

Start a new backend for the GenBrowser clients.

First argument is the configuration that clients will receive when started. This config must be JSON encodable. All addresses are sent to the client must be wrapped as a GenBrowser.Address struct, This will ensure they are signed to protect against tampering.

If the secrets option is not set the value will be read from environment variable SECRET