Skip to content

Commit

Permalink
include_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
qiweiii committed Jul 22, 2024
1 parent 80990f0 commit 4a857c0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Utils/Sources/bandersnatch/src/bandersnatch_vrfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@ fn ring_context() -> &'static RingContext {
});
RING_CTX.get_or_init(|| {
use bandersnatch::PcsParams;
use std::{fs::File, io::Read};
let manifest_dir = "../Utils/Sources/bandersnatch";
let filename = format!("{}/data/zcash-srs-2-11-uncompressed.bin", manifest_dir);
let mut file = File::open(filename).unwrap();
let mut buf = Vec::new();
file.read_to_end(&mut buf).unwrap();
let buf: &'static [u8] = include_bytes!("../data/zcash-srs-2-11-uncompressed.bin");
let pcs_params = PcsParams::deserialize_uncompressed_unchecked(&mut &buf[..]).unwrap();
RingContext::from_srs(ring_size, pcs_params).unwrap()
})
Expand Down

0 comments on commit 4a857c0

Please sign in to comment.