Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform cleanup, std and pure-prove #268

Merged
merged 2 commits into from Sep 4, 2022
Merged

Conversation

shkoo
Copy link
Contributor

@shkoo shkoo commented Sep 3, 2022

  • Fix rust prover sha bug, sha tests now pass

  • Trim dependencies, less stuff to build in guest

  • Add some Result propagation

  • Guest methods can now decide whether they want to be no_std or not, and get the proper panic and alloc error implementations

  • Merge separate "verify" method crate into regular "inner" method crate

* Fix sha bug in rust prover
* Fix rust prover sha bug, sha tests now pass

* Trim dependencies, less stuff to build in guest

* Add some Result propagation

* Guest methods can now decide whether they want to be no_std or not, and get the proper panic and alloc error implementations

* Merge separate "verify" method crate into regular "inner" method crate
@shkoo shkoo requested a review from flaub September 3, 2022 21:35
@shkoo shkoo marked this pull request as ready for review September 3, 2022 21:35
@@ -751,7 +752,7 @@ where
self.code[CodeIndex::Data1High] = round.1;
} else {
self.code[CodeIndex::ShaCtrl] = ONE;
self.code[CodeIndex::P1] = Fp::new((sha_phase - 64 + 4) as u32);
self.code[CodeIndex::P1] = Fp::new((sha_phase - 68 + 4) as u32);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@@ -120,34 +120,35 @@ impl<'a> ProverImpl<'a> {
}

impl<'a> exec::IoHandler for ProverImpl<'a> {
fn on_txrx(&mut self, channel: u32, buf: &[u8]) -> Vec<u8> {
fn on_txrx(&mut self, channel: u32, buf: &[u8]) -> Result<Vec<u8>> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shkoo shkoo merged commit b8fa897 into main Sep 4, 2022
@shkoo shkoo deleted the nils/platform_pure_prove branch September 4, 2022 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants