53 using EltW =
typename LogicF::EltW;
54 using BitW =
typename LogicF::BitW;
59 explicit CborTesting(
const Field &F) : f_(F) {}
61 void convert_witnesses(
62 size_t n,
typename CborL::v8 in[],
63 typename CborL::position_witness pw[],
64 typename CborL::global_witness &gw,
65 const typename CborWitnessF::v8 inS[],
68 const EvalBackend ebk(f_);
69 const LogicF L(&ebk, f_);
71 for (
size_t i = 0; i < n; ++i) {
72 for (
size_t j = 0; j < 8; ++j) {
73 in[i][j] = BitW(L.konst(inS[i][j]), f_);
75 pw[i].encoded_sel_header = L.konst(pwS[i].encoded_sel_header);
78 gw.invprod_decode = L.konst(gwS.invprod_decode);
79 gw.cc0 = L.konst(gwS.cc0);
80 gw.invprod_parse = L.konst(gwS.invprod_parse);
85 typename CborL::vindex index(
size_t j)
const {
86 const EvalBackend ebk(f_);
87 const LogicF L(&ebk, f_);
88 return L.template vbit<CborConstants::kIndexBits>(j);