Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 499 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 499 Bytes

NIF for Elixir.Cairo

To build the NIF module:

  • Your NIF will now build along with your project.

To load the NIF:

defmodule Cairo do
  use Rustler, otp_app: :anoma, crate: "cairo"

  # When your NIF is loaded, it will override this function.
  def cairo_prove(_arg1, _arg2, _arg3), do: :erlang.nif_error(:nif_not_loaded)
  def cairo_verify(_arg1, _arg2), do: :erlang.nif_error(:nif_not_loaded)
end

A full example can be found in cairo_vm/README.md