UNPKG

o1js

Version:

TypeScript framework for zk-SNARKs and zkApps

9 lines (6 loc) 231 B
import { ProvableType } from './provable-intf.js'; import { witness } from './witness.js'; export { emptyWitness }; function emptyWitness<T>(type: ProvableType<T>) { return witness(type, () => ProvableType.synthesize(type)); }