Skip to main content
Version: 2.15.0

memoizeWitness

memoizeWitness: <T>(type: FlexibleProvable<T>, compute: () => T) => T = Experimental_.memoizeWitness;

Defined in: index.ts:185

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

T

Parameters

type

FlexibleProvable<T>

compute

() => T

Returns

T