AshOnetime.Fingerprint (ash_onetime v0.1.1)

Copy Markdown View Source

Computes SHA-256 fingerprints over exact canonical bytes.

Summary

Functions

compute(value, max_bytes \\ :infinity)

@spec compute(term(), pos_integer() | :infinity) ::
  {:ok, <<_::256>>} | {:error, AshOnetime.Error.t()}