diff --git a/Cargo.lock b/Cargo.lock index 751938de7b..d7a25fb1a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1493,7 +1493,6 @@ dependencies = [ "cairo-lang-runner", "cairo-lang-sierra", "cairo-lang-starknet-classes", - "cairo-lang-utils", "cairo-native", "cairo-vm", "criterion", @@ -1721,9 +1720,9 @@ dependencies = [ [[package]] name = "cairo-lang-compiler" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5852668d1c6966b34d6e4fe249732769ab9cb2012c201e3889d8119f206760a0" +checksum = "e2016966ed29f3a44487fd1bbdb05320fb6ea8ec46201c04c6b222ccb5264e0a" dependencies = [ "anyhow", "cairo-lang-defs", @@ -1919,9 +1918,9 @@ dependencies = [ [[package]] name = "cairo-lang-runner" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528a247ac59cb35b2f99d64605a81de815fa5fb0b0e7f7ece1d4e7fcf267d4ea" +checksum = "6c5b9e6a21d92255b92f64c60658b4224dd7d290cde8beea783fadc10fbfcd8c" dependencies = [ "ark-ff 0.4.2", "ark-secp256k1", @@ -1976,9 +1975,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891488c1a3184ce91679f5bdb63015a1d24769a48bd07e5d51a1779d0031dfbe" +checksum = "424f55450494e959c1ae26c52a71075767a90f76e3ecca6e81056dd7517e8ba0" dependencies = [ "anyhow", "cairo-lang-utils", @@ -2003,9 +2002,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-ap-change" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea7752cd48c86b2cde8603b753a6df4da086dacd16a73d288854d5f040b51171" +checksum = "053dd520e0b9d1c1078d93ea69045f6f334c3d41b4b75db183ab33e32cfd8570" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -2019,9 +2018,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-gas" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "340892a09c9421414b2ac45b03c705f16e2bd737e4559dfd98ee1d20718dec9e" +checksum = "9a73227867377efc62ebb893cddaa88df3940bf2be5dbdc2f0b00f9edf69288e" dependencies = [ "cairo-lang-eq-solver", "cairo-lang-sierra", @@ -2035,9 +2034,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-generator" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5cc616e8df44c4d685fe3c5f81f35ebbda57225098b35cea8602457c45c9e96" +checksum = "a3752cacd475ea089d9a536357804150e693a124e703fcc33a55566d568094b3" dependencies = [ "cairo-lang-debug", "cairo-lang-defs", @@ -2059,9 +2058,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-to-casm" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c22ff7e8113a46a907f82f191096c96935cc48247e3079971ddf536ccc2f4f8" +checksum = "7162fb3c93960dfc6d8005b65064e518e3f1ed6102e8981b42ea41879c331184" dependencies = [ "assert_matches", "cairo-lang-casm", @@ -2080,9 +2079,9 @@ dependencies = [ [[package]] name = "cairo-lang-sierra-type-size" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bf41941776e7410a8853a8e2a116292fc24d219df1989a92ffe5ab0e98037eb" +checksum = "a51b80c117e2b05a6d300f2e2247892cc99e42e950e79f6085e6ed6cbcb44d12" dependencies = [ "cairo-lang-sierra", "cairo-lang-utils", @@ -2090,9 +2089,9 @@ dependencies = [ [[package]] name = "cairo-lang-starknet" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5508fa5ee8d24adf7d2c65505d0ac35efc892eac16d1449c6f7e314a0288cb8" +checksum = "aafaabc43f78dfa2f45d935993ba21c05c164bbb3bf277d348847a51e5939a9f" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -2120,9 +2119,9 @@ dependencies = [ [[package]] name = "cairo-lang-starknet-classes" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "482b8f9d7f8cc7140f1260ee71f3308a66d15bd228a06281067ca3f8f4410db2" +checksum = "832fd9072ddf4204ca6d227c0238929349f10146bd066a98025d51ac15d27fad" dependencies = [ "cairo-lang-casm", "cairo-lang-sierra", @@ -2169,9 +2168,9 @@ dependencies = [ [[package]] name = "cairo-lang-test-plugin" -version = "2.8.2" +version = "2.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74f1597b8229a3649183ff33b19f0aeca5d86505253ebbbce377b271d1732835" +checksum = "4d5f036132e07b7829cb1d61b1ecc02789a70c7d16b2733722a2aca992492bc3" dependencies = [ "anyhow", "cairo-lang-compiler", @@ -2225,16 +2224,19 @@ dependencies = [ [[package]] name = "cairo-native" -version = "0.2.0-alpha.2" +version = "0.2.0-alpha.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dde4be6d8ba366c1adc51d0ad728907bac1cffa4f7d2c9c442d4d4f3734565bc" +checksum = "3623d7ea61c1ab6c734fc7801e8aa1756f2759d1c8cdcc8413335b8a9da2f4df" dependencies = [ "anyhow", "aquamarine", + "ark-ec", + "ark-ff 0.4.2", + "ark-secp256k1", + "ark-secp256r1", "bumpalo", "cairo-lang-compiler", "cairo-lang-defs", - "cairo-lang-diagnostics", "cairo-lang-filesystem", "cairo-lang-runner", "cairo-lang-semantic", @@ -2252,7 +2254,6 @@ dependencies = [ "colored", "educe", "itertools 0.13.0", - "k256", "keccak", "lazy_static", "libc", @@ -2261,9 +2262,8 @@ dependencies = [ "melior", "mlir-sys", "num-bigint 0.4.6", + "num-integer", "num-traits 0.2.19", - "p256", - "sec1", "serde", "serde_json", "sha2", @@ -2278,14 +2278,13 @@ dependencies = [ [[package]] name = "cairo-native-runtime" -version = "0.2.0-alpha.2" +version = "0.2.0-alpha.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f61fd24fe792b11ded659bc1868cec3e5e47bd7fc01e0e8f75f3a71c24c74a34" +checksum = "ec29c9429695c4ef18dbe3cff569afbb9eaa777fd4cf363fd194e1911fea18a7" dependencies = [ "cairo-lang-sierra-gas", "itertools 0.13.0", "lazy_static", - "libc", "num-traits 0.2.19", "rand 0.8.5", "starknet-curve 0.5.1", @@ -3096,7 +3095,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", - "pem-rfc7468", "zeroize", ] @@ -3393,7 +3391,6 @@ dependencies = [ "ff", "generic-array", "group", - "pem-rfc7468", "pkcs8", "rand_core 0.6.4", "sec1", @@ -7163,18 +7160,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" -[[package]] -name = "p256" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" -dependencies = [ - "ecdsa", - "elliptic-curve", - "primeorder", - "sha2", -] - [[package]] name = "page_size" version = "0.6.0" @@ -7814,15 +7799,6 @@ dependencies = [ "serde", ] -[[package]] -name = "pem-rfc7468" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" -dependencies = [ - "base64ct", -] - [[package]] name = "percent-encoding" version = "2.3.1" @@ -8129,15 +8105,6 @@ dependencies = [ "syn 2.0.79", ] -[[package]] -name = "primeorder" -version = "0.13.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" -dependencies = [ - "elliptic-curve", -] - [[package]] name = "primitive-types" version = "0.12.2" diff --git a/Cargo.toml b/Cargo.toml index e08820a161..750bb508fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -90,13 +90,13 @@ byteorder = "1.4.3" bytes = "1" cached = "0.44.0" cairo-felt = "0.9.1" -cairo-lang-casm = "2.8.2" -cairo-lang-runner = "2.8.2" -cairo-lang-sierra = "=2.8.2" -cairo-lang-sierra-to-casm = "2.8.2" -cairo-lang-starknet-classes = "2.8.2" -cairo-lang-utils = "2.8.2" -cairo-native = "0.2.0-alpha.2" +cairo-lang-casm = "2.8.4" +cairo-lang-runner = "2.8.4" +cairo-lang-sierra = "=2.8.4" +cairo-lang-sierra-to-casm = "2.8.4" +cairo-lang-starknet-classes = "2.8.4" +cairo-lang-utils = "2.8.4" +cairo-native = "0.2.0-alpha.4" cairo-vm = "=1.0.1" camelpaste = "0.1.0" chrono = "0.4.26" diff --git a/crates/blockifier/src/execution/native/syscall_handler.rs b/crates/blockifier/src/execution/native/syscall_handler.rs index d0798b58a4..1b11df2e30 100644 --- a/crates/blockifier/src/execution/native/syscall_handler.rs +++ b/crates/blockifier/src/execution/native/syscall_handler.rs @@ -297,10 +297,10 @@ impl<'state> StarknetSyscallHandler for &mut NativeSyscallHandler<'state> { fn sha256_process_block( &mut self, - _prev_state: &[u32; 8], + _prev_state: &mut [u32; 8], _current_block: &[u32; 16], _remaining_gas: &mut u128, - ) -> SyscallResult<[u32; 8]> { + ) -> SyscallResult<()> { todo!("Implement sha256_process_block syscall."); } }