leo/examples/core
Collin Chin e5ae160d1a
Implement new hash and commit functions (#2415)
* refactor hash -> hash_to_field

* refactor commit -> commit_to_field

* implement commit_to_address

* implement hash_to_address

* update hash and commit examples

* implement hash_to_scalar

* update tests

* implement bhp hash to integer variants

* implement bhp pedersen and poseidon integer variants

* Update compiler/passes/src/type_checking/checker.rs

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* Update compiler/passes/src/type_checking/checker.rs

Co-authored-by: Alessandro Coglio <coglio@kestrel.edu>
Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>

* fix pedersen hash type checks

---------

Signed-off-by: Collin Chin <16715212+collinc97@users.noreply.github.com>
Co-authored-by: Alessandro Coglio <coglio@kestrel.edu>
2023-06-15 19:55:03 -07:00
..
inputs add other examples 2022-07-20 16:07:37 -07:00
src Implement new hash and commit functions (#2415) 2023-06-15 19:55:03 -07:00
.gitignore add other examples 2022-07-20 16:07:37 -07:00
program.json add other examples 2022-07-20 16:07:37 -07:00
README.md add import example, remove directory nesting, improve examples readme 2022-08-01 16:04:00 -07:00

Leo core functions

Build Guide

To compile this program, run:

leo build

To run this program, run:

leo run