Skip to content

Commit

Permalink
Merge pull request #22 from hashcloak/skeleton_vm
Browse files Browse the repository at this point in the history
Skeleton VM for StoffelMPC
  • Loading branch information
Mikerah authored Jan 27, 2022
2 parents d6da2ad + 577f8a8 commit b43a12b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ tokio = {version = "0.2", features = ["full"] }
ark-ff = "0.3"
ark-poly = "0.3"
ark-ec = "0.3"
once_cell = "1.9"
2 changes: 1 addition & 1 deletion vm/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ impl Program {
Program(vec![])
}

fn parse(&mut self, bytes: impl AsRef<[u8]>) {
pub fn parse_bytes(&mut self, bytes: impl AsRef<[u8]>) {
todo!();
}

Expand Down
2 changes: 1 addition & 1 deletion vm/src/stoffel_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<T: SecretSharing + Number, U: Number, const M: usize, const N: usize> Stoff
}

pub fn load_byte_code(&mut self, bytes: impl AsRef<[u8]>) {
todo!();
self.code.parse_bytes(bytes.as_ref())
}

pub fn execute(&mut self) -> i32 {
Expand Down

0 comments on commit b43a12b

Please sign in to comment.