0.21.0 • Published 3 months ago

@aztec/acir-simulator v0.21.0

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

ACIR Simulator

Responsibilities

This library package is responsible for simulating function circuits compiled to ACIR.

Simulating a function implies generating the partial witness and the public inputs of the function, as well as collecting all the data (such as created notes or nullifiers, or state changes) that are necessary for components upstream.

It's able to simulate three different types of functions:

Private Functions

Private functions are simulated and proved client-side, and verified client-side in the private kernel circuit.

The public inputs of private functions is defined here.

They are run with the assistance of a DB oracle that provides any private data requested by the function.

Private functions can call another private function, and can request to call a public function, but the public function execution will be performed by the sequencer asynchronously, thus having no access to the return values.

Public Functions

Public functions are simulated and proved on the sequencer side, and verified by the public kernel circuit.

The public inputs of public functions is defined here.

They are run with the assistance of an oracle that provides any value read from the public state tree.

Public functions can call other public function, but no private functions.

Unconstrained (view) Functions

Unconstrained functions are used to extract useful data for users, such as the user balance. They are not proved, and are simulated client-side.

They are run with the assistance of a DB oracle that provides any private data requested by the function.

At the moment, unconstrained functions cannot call any other function. It would be possible to allow them to call other unconstrained functions.

Usage

Development

Same steps as any other library. They are detailed here

Testing

Same steps as any other library. They are detailed here

0.21.0

3 months ago

0.20.0

4 months ago

0.19.0

4 months ago

0.18.0

4 months ago

0.17.0

4 months ago

0.16.8

5 months ago

0.16.9

5 months ago

0.16.5

5 months ago

0.16.6

5 months ago

0.16.7

5 months ago

0.16.3

5 months ago

0.16.4

5 months ago

0.16.2

5 months ago

0.16.0

6 months ago

0.16.1

6 months ago

0.15.0

6 months ago

0.15.1

6 months ago

0.14.0

6 months ago

0.14.1

6 months ago

0.14.2

6 months ago

0.11.0

7 months ago

0.11.1

7 months ago

0.13.0

7 months ago

0.13.1

7 months ago

0.12.0

7 months ago

0.10.1

7 months ago

0.10.0

7 months ago

0.9.0

7 months ago

0.8.14

7 months ago

0.8.13

7 months ago

0.8.12

7 months ago

0.8.11

7 months ago

0.8.10

7 months ago

0.8.9

7 months ago

0.8.8

7 months ago

0.8.7

7 months ago

0.8.6

7 months ago

0.8.5

7 months ago

0.7.10

8 months ago

0.7.9

8 months ago

0.7.8

8 months ago

0.7.7

8 months ago

0.7.5

8 months ago

0.7.4

8 months ago

0.7.3

8 months ago

0.7.2

8 months ago

0.7.0

8 months ago

0.6.7

8 months ago

0.6.6

8 months ago

0.6.5

8 months ago

0.6.4

8 months ago

0.6.2

8 months ago

0.1.0-alpha63

8 months ago

0.1.0-alpha62

8 months ago

0.1.0-alpha61

8 months ago

0.1.0-alpha60

8 months ago

0.1.0-alpha59

8 months ago

0.1.0-alpha57

8 months ago

0.1.0-alpha49

9 months ago

0.1.0-alpha48

9 months ago

0.1.0-alpha47

9 months ago

0.1.0-alpha46

9 months ago

0.1.0-alpha45

9 months ago

0.1.0-alpha44

9 months ago

0.1.0-alpha43

9 months ago

0.1.0-alpha42

9 months ago

0.1.0-alpha41

9 months ago

0.1.0-alpha40

9 months ago

0.1.0-alpha39

9 months ago

0.1.0-alpha23

10 months ago

0.1.0-alpha22

10 months ago

0.1.0-alpha21

10 months ago

0.1.0-alpha20

10 months ago

0.1.0-alpha17

10 months ago

0.1.0-alpha16

10 months ago

0.1.0-alpha15

10 months ago

0.1.0-alpha14

10 months ago

0.1.0-alpha13

10 months ago

0.1.0-alpha12

10 months ago

0.1.0-alpha11

10 months ago