save mpack

This commit is contained in:
Jaremy Creechley 2023-12-22 19:28:11 -07:00
parent 76e34b4b5e
commit 7fa60f0fb5
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 7 additions and 0 deletions

View File

@ -207,6 +207,10 @@ pub unsafe extern "C" fn free_proof_ctx(ctx: *mut ProofCtx) {
#[cfg(test)]
mod tests {
use std::fs::File;
use std::io::prelude::*;
use ark_std::rand::{distributions::Alphanumeric, rngs::StdRng, Rng, SeedableRng};
use rs_poseidon::poseidon::hash;
use ruint::aliases::U256;
@ -371,6 +375,9 @@ mod tests {
write_value(&mut buf, &mpk_data ).unwrap();
let rd: &[u8] = &buf[..];
let mut file = File::create("proof_test.mpack").unwrap();
file.write_all(rd).unwrap();
let args_buff = Buffer {
data: rd.as_ptr() as *const u8,
len: rd.len(),

BIN
test/proof_test.mpack Normal file

Binary file not shown.