Insider.Sentinel.Verification.Receipt (Insider Lab v0.1.0)

Copy Markdown View Source

A strict bounded receipt from one trusted post-repair sandbox body.

Summary

Functions

canonical_binary(receipt)

@spec canonical_binary(term()) ::
  {:ok, binary()} | {:error, Insider.Protocol.Error.t()}

decode(value)

@spec decode(binary()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}

decode_map(receipt)

@spec decode_map(term()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}

new(options)

@spec new(term()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}

to_wire_map(receipt)

@spec to_wire_map(map()) :: map()

validate(receipt)

@spec validate(term()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}