mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-02 13:33:10 +00:00
include constants file into exec
This commit is contained in:
parent
cce59a4f22
commit
bce430f507
@ -5,13 +5,10 @@ use num_bigint::BigUint;
|
|||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use num_traits::Num;
|
use num_traits::Num;
|
||||||
|
|
||||||
|
const CONSTANTS_STR: &str = include_str!("poseidon_constants_opt.json");
|
||||||
|
|
||||||
pub static CONSTANTS: Lazy<serde_json::Value> = Lazy::new(|| {
|
pub static CONSTANTS: Lazy<serde_json::Value> = Lazy::new(|| {
|
||||||
let file = File::open(
|
serde_json::from_str(CONSTANTS_STR).unwrap()
|
||||||
"./src/poseidon/poseidon_constants_opt.json",
|
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
// Read the JSON contents of the file as an instance of `User`.
|
|
||||||
serde_json::from_reader(BufReader::new(file)).unwrap()
|
|
||||||
});
|
});
|
||||||
|
|
||||||
pub static C_CONST: Lazy<Vec<Vec<Fr>>> = Lazy::new(|| {
|
pub static C_CONST: Lazy<Vec<Vec<Fr>>> = Lazy::new(|| {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user