Spectre.Gate.Receipt.Ref (Spectre v0.3.0)

Copy Markdown View Source

Content-addressed identity of a governance gate receipt.

Summary

Types

t()

@type t() :: %Spectre.Gate.Receipt.Ref{algorithm: :sha256, digest: String.t()}

Functions

new(receipt)

@spec new(Spectre.Gate.Receipt.t()) :: t()

parse(value)

@spec parse(String.t()) :: {:ok, t()} | {:error, term()}

to_string(ref)

@spec to_string(t()) :: String.t()

valid?(arg1)

@spec valid?(term()) :: boolean()

verify(expected, receipt)

@spec verify(t(), Spectre.Gate.Receipt.t()) :: :ok | {:error, term()}