Skip to content

Commit

Permalink
Revert "Final extraction merge message (#88)" (#89)
Browse files Browse the repository at this point in the history
This reverts commit 346ee4f.
  • Loading branch information
hackaugusto authored Oct 10, 2024
1 parent 346ee4f commit c6b76ca
Show file tree
Hide file tree
Showing 12 changed files with 289 additions and 388 deletions.
51 changes: 37 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ resolver = "2"
members = ["lgn-auth", "lgn-messages", "lgn-provers", "lgn-worker"]

[workspace.dependencies]
mp2_common = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", branch = "feat/merge_table" }
mp2_v1 = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", branch = "feat/merge_table" }
parsil = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", branch = "feat/merge_table" }
verifiable-db = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", branch = "feat/merge_table" }
ryhope = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", branch = "feat/merge_table" }
groth16_framework_v1 = { package = "groth16_framework", git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", branch = "feat/merge_table" }
mp2_common = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", rev = "4d0e96f" }
mp2_v1 = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", rev = "4d0e96f" }
parsil = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", rev = "4d0e96f" }
verifiable-db = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", rev = "4d0e96f" }
ryhope = { git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", rev = "4d0e96f" }
groth16_framework_v1 = { package = "groth16_framework", git = "https://github.com/Lagrange-Labs/mapreduce-plonky2.git", rev = "4d0e96f" }

[patch.crates-io]
plonky2 = { git = "https://github.com/Lagrange-Labs/plonky2", branch = "upstream" }
Expand Down
12 changes: 7 additions & 5 deletions lgn-messages/src/types/v0/preprocessing/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ use serde_derive::{Deserialize, Serialize};

use crate::types::Position;

pub type BlockNr = u64;
pub type ChainId = u64;
pub type Contract = Address;
pub type MptNodeHash = String;

pub type QueryId = String;
pub type TableId = u64;
pub type TableHash = u64;

pub type MptNodeHash = String;

pub type BlockNr = u64;

pub type Contract = Address;

/// Level in binary tree
pub type Level = usize;
Expand Down
8 changes: 7 additions & 1 deletion lgn-messages/src/types/v1/preprocessing/db_keys.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
use crate::types::v0::preprocessing::keys::{BlockNr, TableId};
use crate::types::v1::preprocessing::KEYS_PREPROCESSING_PREFIX;
use object_store::path::Path;
use serde_derive::{Deserialize, Serialize};
use std::fmt::Display;

type BlockNr = u64;

type TableId = u64;

type RowId = String;

type CellId = usize;

const CELL_PREFIX: &str = "CELL";

const ROW_PREFIX: &str = "ROW";

const BLOCK_PREFIX: &str = "DB_BLOCK";

#[derive(Debug, Clone, PartialEq, PartialOrd, Ord, Eq, Hash, Serialize, Deserialize)]
Expand Down
Loading

0 comments on commit c6b76ca

Please sign in to comment.