From 48b6073e4b9dc40f241aae2994117da725054e0c Mon Sep 17 00:00:00 2001 From: Bartosz Nowak Date: Mon, 18 Dec 2023 19:32:58 +0100 Subject: [PATCH] cleanup --- calc.py | 3 +++ src/fri/fri_config.cairo | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 calc.py diff --git a/calc.py b/calc.py new file mode 100644 index 000000000..61fce91fe --- /dev/null +++ b/calc.py @@ -0,0 +1,3 @@ +DEFAULT_PRIME = 2**251 + 17 * 2**192 + 1 + +print(hex(pow(1934568044210770965733097210694395167600009938751278224656090409051406060084, 41, DEFAULT_PRIME))) \ No newline at end of file diff --git a/src/fri/fri_config.cairo b/src/fri/fri_config.cairo index fa1fccf53..1bb8011df 100644 --- a/src/fri/fri_config.cairo +++ b/src/fri/fri_config.cairo @@ -1,3 +1,4 @@ +use core::array::ArrayTrait; use core::option::OptionTrait; use core::array::SpanTrait; use core::traits::Into; @@ -15,7 +16,7 @@ struct FriConfig { n_layers: felt252, // Array of size n_layers - 1, each entry is a configuration of a table commitment for the // corresponding inner layer. - inner_layers: Span, + inner_layers: Array, // Array of size n_layers, each entry represents the FRI step size, // i.e. the number of FRI-foldings between layer i and i+1. fri_step_sizes: Span,