-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/NethermindEth/cairo-vm-go i…
…nto cairo1_parse_instructions
- Loading branch information
Showing
51 changed files
with
2,847 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
integration_tests/cairo_zero_file_tests/keccak_builtin.starknet_with_keccak.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
%builtins keccak | ||
from starkware.cairo.common.cairo_builtins import KeccakBuiltin | ||
from starkware.cairo.common.keccak_state import KeccakBuiltinState | ||
|
||
func main{keccak_ptr: KeccakBuiltin*}() { | ||
assert keccak_ptr[0].input = KeccakBuiltinState(1, 2, 3, 4, 5, 6, 7, 8); | ||
let result = keccak_ptr[0].output; | ||
let keccak_ptr = keccak_ptr + KeccakBuiltin.SIZE; | ||
assert result.s0 = 528644516554364142278482415480021626364691973678134577961206; | ||
assert result.s1 = 768681319646568210457759892191562701823009052229295869963057; | ||
assert result.s2 = 1439835513376369408063324968379272676079109225238241190228026; | ||
assert result.s3 = 1150396629165612276474514703759718478742374517669870754478270; | ||
assert result.s4 = 1515147102575186161827863034255579930572231617017100845406254; | ||
assert result.s5 = 1412568161597072838250338588041800080889949791225997426843744; | ||
assert result.s6 = 982235455376248641031519404605670648838699214888770304613539; | ||
assert result.s7 = 1339947803093378278438908448344904300127577306141693325151040; | ||
return (); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.