This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
70 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[workspace] | ||
members = ["brakedown", "challenger", "code", "field", "pcs", "multistark", "symmetric", "tensor_pcs"] | ||
members = ["brakedown", "challenger", "code", "field", "fri", "pcs", "multistark", "symmetric", "tensor_pcs"] |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
use core::marker::PhantomData; | ||
use hyperfield::field::Field; | ||
use p3_symmetric::permutation::AlgebraicPermutation; | ||
use p3_symmetric::permutation::CryptographicPermutation; | ||
|
||
pub struct DuplexChallenger<F: Field, P: AlgebraicPermutation<F, WIDTH>, const WIDTH: usize> { | ||
pub struct DuplexChallenger<F: Field, P: CryptographicPermutation<F, WIDTH>, const WIDTH: usize> { | ||
_permutation: P, | ||
_phantom_f: PhantomData<F>, | ||
} |
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
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,9 @@ | ||
[package] | ||
name = "p3-fri" | ||
version = "0.1.0" | ||
edition = "2021" | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
hyperfield = { path = "../field" } | ||
hyperpcs = { path = "../pcs" } |
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,23 @@ | ||
// use alloc::vec::Vec; | ||
// use hyperfield::field::Field; | ||
// use hyperfield::matrix::dense::DenseMatrix; | ||
// use hyperpcs::{PCS, UnivariatePCS}; | ||
// use crate::proof::FriProof; | ||
// | ||
// pub struct FriPcs<F: Field, H: H>; | ||
// | ||
// impl<F: Field> PCS<F> for FriPcs { | ||
// type Commitment = Hash; | ||
// type ProverData = ProverData; | ||
// type Proof = FriProof<F>; | ||
// | ||
// fn commit_batches(polynomials: Vec<DenseMatrix<F>>) -> (Commitment, ProverData) { | ||
// todo!() | ||
// } | ||
// } | ||
// | ||
// impl<F: Field> UnivariatePCS<F> for FriPcs {} | ||
// | ||
// struct ProverData { | ||
// // merkle_tree: MerkleTree<F, Hasher>, | ||
// } |
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,6 @@ | ||
#![no_std] | ||
|
||
extern crate alloc; | ||
|
||
pub mod fri_pcs; | ||
pub mod proof; |
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,5 @@ | ||
use hyperfield::field::Field; | ||
|
||
pub struct FriProof<F: Field> { | ||
_todo: F, | ||
} |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
use alloc::vec::Vec; | ||
|
||
pub trait CryptographicHasher<T, const OUT_WIDTH: usize> { | ||
fn hash(input: Vec<T>) -> [T; OUT_WIDTH]; | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
|
||
extern crate alloc; | ||
|
||
pub mod hash; | ||
pub mod hasher; | ||
pub mod permutation; | ||
pub mod sponge; |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
use hyperfield::field::Field; | ||
|
||
pub trait AlgebraicPermutation<F: Field, const WIDTH: usize> { | ||
fn permute(input: [F; WIDTH]) -> [F; WIDTH]; | ||
pub trait CryptographicPermutation<T, const WIDTH: usize> { | ||
fn permute(input: [T; WIDTH]) -> [T; WIDTH]; | ||
} |
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