OnFlow.Credentials.new

You're seeing just the function new, go back to OnFlow.Credentials module for more information.

Specs

new(keys_with_address()) :: {:ok, t()} | {:error, :missing_keys}

Initializes a %Credentials{} struct. Returns {:ok, credentials} on success. The params must contain a :private_key and :public_key, or {:error, :missing_keys} will be returned.

:public_key and :private_key must be hex-encoded strings.