Content-addressed identity of redacted Experience evidence.
Summary
Functions
Builds a Ref for validated Experience evidence.
Parses the canonical experience:sha256:<lowercase hex> representation.
Returns the canonical textual representation.
Checks the Ref algorithm and lowercase digest shape.
Verifies that a Ref addresses the supplied evidence.
Types
@type t() :: %Spectre.Experience.Evidence.Ref{algorithm: :sha256, digest: String.t()}
Functions
@spec new(Spectre.Experience.Evidence.t()) :: t()
Builds a Ref for validated Experience evidence.
Parses the canonical experience:sha256:<lowercase hex> representation.
Returns the canonical textual representation.
Checks the Ref algorithm and lowercase digest shape.
@spec verify(t(), Spectre.Experience.Evidence.t()) :: :ok | {:error, term()}
Verifies that a Ref addresses the supplied evidence.