mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-02 13:33:10 +00:00
save mpack
This commit is contained in:
parent
76e34b4b5e
commit
7fa60f0fb5
@ -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
BIN
test/proof_test.mpack
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user