Index Mathematics Conjectures nbv lettuce Widgets

bdlop_linear_nizk_comm

stdlib/bdlop/bdlop_linear_nizk_comm.nbv

bdlop_linear_nizk_comm(static N, static msg_len, let arg)

extract the commitment elements from an nizk arg

Calls
bdlop/bdlop_lattice, slice_from_start
Used by
bdlop/bdlop_r1cs_verify

Source

# extract the commitment elements from an nizk arg
(static N, static msg_len, let arg)

# compute the lattice base
(static a_1, static a_2) = bdlop_lattice(N, msg_len)

static a_1_height = a_1[0]
static a_1_width = a_1[1]
static a_2_height = a_2[0]
static a_2_width = a_2[1]

slice_from_start(arg, 2 * N * a_1_height + 2 * N * a_2_height)