MCPcopy Create free account
hub / github.com/NilFoundation/zkLLVM / field_arithmetic_example

Function field_arithmetic_example

examples/cpp/private_input_array.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace nil::crypto3::algebra::curves;
4
5[[circuit]] std::array<typename pallas::base_field_type::value_type, 2>
6 field_arithmetic_example([[private_input]] std::array<typename pallas::base_field_type::value_type, 2> a,
7 std::array<typename pallas::base_field_type::value_type, 2> b) {
8
9 std::array<typename pallas::base_field_type::value_type, 2> res;
10 res[0] = a[0] + b[0];
11 res[1] = a[1] + b[1];
12
13 return res;
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected