memoizeWitness
function memoizeWitness<T>(type: FlexibleProvable<T>, compute: () => T): T
Defined in: index.ts:161
Like Provable.witness, but memoizes the witness during transaction construction for reuse by the prover. This is needed to witness non-deterministic values.
Type Parameters
• T
Parameters
type
compute
() => T
Returns
T