You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Expose black box function solvers into TS#2811 we exposed black box functions to typescript so that users can easily calculate values in the same way as which it will be calculated inside their circuits.
A number of useful functions are only implemented in Noir however, e.g. Poseidon, Sha256, etc. so we should expose methods to easily execute custom Noir programs and use their return values in user business logic.
The content you are editing has changed. Please copy your edits and refresh the page.
Assigning P-HIGHP-MEDIUM to this Epic, as this helps the Private Kernel Circuit rewrite project plus very useful for Noir app devs in general, but not necessarily blocking any project.
In Expose black box function solvers into TS#2811 we exposed black box functions to typescript so that users can easily calculate values in the same way as which it will be calculated inside their circuits.
A number of useful functions are only implemented in Noir however, e.g. Poseidon, Sha256, etc. so we should expose methods to easily execute custom Noir programs and use their return values in user business logic.
Tasks
execute
method to@noir-lang/noir_js
#3080executeSync
function toacvm_js
#3084With #3080 we can already achieve the funcitonality with
const { returnValue } = await new Noir(program_json).execute(inputs)
.Outstanding tasks being:
const returnValue = executeCircuit(program_json, inputs)
syntax to be more functionalexecuteSync
function to be added to acvm_js so we can execute ACIR without foreign calls in a sync fashion.execute
function can hardly match native TS packages in computation speeds given its ACVM overheads#[codegen-ts]
attribute to mark a function as one to be compiled into a function for users to call.executeCircuit
which enforce type safety on the inputs.The text was updated successfully, but these errors were encountered: