Skip to content

Instantly share code, notes, and snippets.

View schouhy's full-sized avatar

Sergio Chouhy schouhy

  • Eryx
  • Argentina
View GitHub Profile
@schouhy
schouhy / fibonacci_air_prove_verify_2.cc
Last active October 13, 2023 22:59
Stone prover Fibonacci AIR case 2
#include "starkware/air/fibonacci/fibonacci_trace_context.h"
#include "starkware/channel/noninteractive_prover_channel.h"
#include "starkware/channel/noninteractive_verifier_channel.h"
#include "starkware/crypt_tools/keccak_256.h"
#include "starkware/stark/stark.h"
#include "starkware/stark/test_utils.h"
#include "starkware/stark/utils.h"
using namespace starkware;
using StarkField252Element = PrimeFieldElement<252, 0>;
@schouhy
schouhy / fibonacci_air_prove_verify.cc
Created October 13, 2023 21:55
Fibonacci AIR example
#include "starkware/air/fibonacci/fibonacci_trace_context.h"
#include "starkware/channel/noninteractive_prover_channel.h"
#include "starkware/channel/noninteractive_verifier_channel.h"
#include "starkware/crypt_tools/keccak_256.h"
#include "starkware/stark/stark.h"
#include "starkware/stark/test_utils.h"
#include "starkware/stark/utils.h"
using namespace starkware;
using StarkField252Element = PrimeFieldElement<252, 0>;
@schouhy
schouhy / fibonacci_export_proof.cc
Created October 11, 2023 20:31
Example to export a proof
#include "starkware/stark/stark.h"
#include <algorithm>
#include <cstddef>
#include <fstream>
#include <map>
#include <optional>
#include <string>
#include <utility>
@schouhy
schouhy / composition_poly_evaluation.cc
Last active September 14, 2023 15:48
An example on how to evaluate a composition polynomial in Stone PRover
#include "starkware/stark/stark.h"
#include <algorithm>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <map>
#include <optional>
#include <string>
#include <utility>
#include "starkware/stark/stark.h"
#include <algorithm>
#include <cstddef>
#include <fstream>
#include <map>
#include <optional>
#include <string>
#include <utility>