Skip to content

Commit

Permalink
add default implementation for fork and merge functions (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunxian-xia authored and lispc committed Apr 12, 2023
1 parent 3d40ae4 commit 1c78e16
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,14 @@ pub trait Assignment<F: Field>: Sized + Send {
AR: Into<String>;

/// Fork
fn fork(&mut self, ranges: &[Range<usize>]) -> Result<Vec<Self>, Error>;
fn fork(&mut self, ranges: &[Range<usize>]) -> Result<Vec<Self>, Error> {
unimplemented!("fork is not implemented by default")
}

/// Merge
fn merge(&mut self, sub_cs: Vec<Self>) -> Result<(), Error>;
fn merge(&mut self, sub_cs: Vec<Self>) -> Result<(), Error> {
unimplemented!("merge is not implemented by default")
}

/// Queries the cell of an instance column at a particular absolute row.
///
Expand Down

0 comments on commit 1c78e16

Please sign in to comment.