ExecutionPlane.Target.Attestation (execution_plane v0.1.0)

Copy Markdown View Source

Raw Target attestation evidence presented before routing-table admission.

Summary

Types

t()

@type t() :: %ExecutionPlane.Target.Attestation{
  attestation_id: term(),
  attestation_type: term(),
  claimed_capability_classes: term(),
  contract_version: term(),
  evidence: term(),
  metadata: term(),
  presented_at: term()
}

Functions

dump(value)

@spec dump(struct()) :: map()

from_json!(json)

@spec from_json!(String.t()) :: struct()

load(attrs)

@spec load(map() | keyword() | struct()) :: {:ok, struct()} | {:error, Exception.t()}

load!(attrs)

@spec load!(map() | keyword() | struct()) :: struct()

new(value)

@spec new(map() | keyword() | struct()) :: {:ok, struct()} | {:error, Exception.t()}

new!(attrs \\ %{})

@spec new!(map() | keyword() | struct()) :: struct()

to_json!(value)

@spec to_json!(struct()) :: String.t()