diff --git a/changelogs/unreleased/1199-dark64 b/changelogs/unreleased/1199-dark64 index f2ab6066..11f3703d 100644 --- a/changelogs/unreleased/1199-dark64 +++ b/changelogs/unreleased/1199-dark64 @@ -1 +1 @@ -Add `backend` option in `zokrates-js`, bring back bellman, add a console writer to support printing logs to console \ No newline at end of file +Add `backend` option in `zokrates-js`, bring back bellman, add a log writer to support printing logs in js \ No newline at end of file diff --git a/zokrates_book/src/toolbox/zokrates_js.md b/zokrates_book/src/toolbox/zokrates_js.md index a4d4cde6..953e662e 100644 --- a/zokrates_book/src/toolbox/zokrates_js.md +++ b/zokrates_book/src/toolbox/zokrates_js.md @@ -128,12 +128,13 @@ const fileSystemResolver = (from, to) => { }; ``` -##### computeWitness(artifacts, args) +##### computeWitness(artifacts, args[, options]) Computes a valid assignment of the variables, which include the results of the computation. Parameters: * `artifacts` - Compilation artifacts * `args` - Array of arguments (eg. `["1", "2", true]`) +* `options` - Computation options Returns: `ComputationResult`