Scenic.Assets.Static.to_hash

You're seeing just the function to_hash, go back to Scenic.Assets.Static module for more information.

Specs

to_hash(id :: String.t() | atom()) ::
  {:ok, binary(), String.t()} | {:error, :not_found}

Return the cryptographic hash of an asset.

Return is in the form of {:ok, binary_hash, string_hash}

If the named asset is not in the library, {:error, :not_found} is returned.

Example:

iex(1)> Scenic.Assets.Static.to_hash( :roboto )
{:ok,
 <<243, 145, 76, 95, 149, 49, 167, 23, 114, 99, 197, 95, 239, 40, 165, 67, 253,
   202, 42, 117, 16, 198, 39, 218, 236, 72, 219, 150, 94, 195, 187, 33>>,
 "85FMX5UxpxdyY8Vf7yilQ_3KKnUQxifa7Ejbll7DuyE"}