barrel_design_token (barrel_design v0.1.0)

View Source

Continuation tokens: deterministic CBOR fields authenticated with HMAC-SHA256 under a secret drawn when the application starts, so a token is valid only on the node that issued it and only until it restarts, as its cursor is. At most 8 KiB.

Summary

Functions

Draw this node's secret; called once at application start.

Functions

decode(Token)

-spec decode(term()) -> {ok, map()} | {error, invalid_continuation}.

encode(Fields)

-spec encode(map()) -> binary().

init()

-spec init() -> ok.

Draw this node's secret; called once at application start.