viaduct
0.3.0
interpreter
/
io.github.aplcornell.viaduct.backend.zkp
/
R1CS
R1CS
class
R1CS
(
val
isProver
:
Boolean
,
val
wire
:
WireTerm
,
val
is_eq_to
:
Long
)
Constructors
Functions
Properties
Constructors
R1CS
Link copied to clipboard
fun
R1CS
(
isProver
:
Boolean
,
wire
:
WireTerm
,
is_eq_to
:
Long
)
Functions
gen
Keypair
Link copied to clipboard
fun
genKeypair
(
)
:
Keypair
make
Proof
Link copied to clipboard
fun
makeProof
(
pk
:
ByteBuf
)
:
ByteBuf
populate
Primary
Inputs
Link copied to clipboard
fun
WireTerm
.
populatePrimaryInputs
(
)
setup
Aux
Inputs
Link copied to clipboard
fun
WireTerm
.
setupAuxInputs
(
)
value
Link copied to clipboard
fun
WireTerm
.
value
(
)
:
Var
verify
Proof
Link copied to clipboard
fun
verifyProof
(
vk
:
ByteBuf
,
pf
:
ByteBuf
)
:
Boolean
Properties
aux
Input
Hashes
Link copied to clipboard
val
auxInputHashes
:
MutableMap
<
Int
,
VarArray
>
aux
Input
Nonces
Link copied to clipboard
val
auxInputNonces
:
MutableMap
<
Int
,
VarArray
>
aux
Inputs
Link copied to clipboard
val
auxInputs
:
MutableMap
<
Int
,
Var
>
is_eq_to
Link copied to clipboard
val
is_eq_to
:
Long
is
Prover
Link copied to clipboard
val
isProver
:
Boolean
output
Link copied to clipboard
var
output
:
Var
?
=
null
primary
Inputs
Link copied to clipboard
val
primaryInputs
:
MutableMap
<
Int
,
Var
>
r1cs
Link copied to clipboard
val
r1cs
:
R1CSInstance
wire
Link copied to clipboard
val
wire
:
WireTerm