mirror of
https://github.com/logos-co/nomos-pocs.git
synced 2025-01-13 02:44:17 +00:00
use included sha
This commit is contained in:
parent
01925fa97e
commit
f5af878540
@ -12,5 +12,6 @@ rand = "0.8.5"
|
|||||||
rand_core = "0.6.0"
|
rand_core = "0.6.0"
|
||||||
hex = "0.4.3"
|
hex = "0.4.3"
|
||||||
curve25519-dalek = {version = "4.1", features = ["serde", "digest", "rand_core"]}
|
curve25519-dalek = {version = "4.1", features = ["serde", "digest", "rand_core"]}
|
||||||
sha2 = "0.10"
|
|
||||||
lazy_static = "1.5.0"
|
lazy_static = "1.5.0"
|
||||||
|
risc0-zkvm = "1.2"
|
||||||
|
sha2 = "0.10"
|
@ -1,6 +1,6 @@
|
|||||||
use rand_core::CryptoRngCore;
|
use rand_core::CryptoRngCore;
|
||||||
|
use risc0_zkvm::sha::rust_crypto::{Digest, Sha256};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sha2::{Digest, Sha256};
|
|
||||||
|
|
||||||
use crate::cl::PartialTxWitness;
|
use crate::cl::PartialTxWitness;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ use crate::{
|
|||||||
zone_layer::notes::ZoneId,
|
zone_layer::notes::ZoneId,
|
||||||
};
|
};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sha2::{Digest, Sha256};
|
use risc0_zkvm::sha::rust_crypto::{Digest, Sha256};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||||
pub struct Input {
|
pub struct Input {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sha2::{Digest, Sha256};
|
use risc0_zkvm::sha::rust_crypto::{Digest, Sha256};
|
||||||
|
|
||||||
pub fn padded_leaves<const N: usize>(elements: &[Vec<u8>]) -> [[u8; 32]; N] {
|
pub fn padded_leaves<const N: usize>(elements: &[Vec<u8>]) -> [[u8; 32]; N] {
|
||||||
let mut leaves = [[0u8; 32]; N];
|
let mut leaves = [[0u8; 32]; N];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::cl::merkle;
|
use crate::cl::merkle;
|
||||||
|
use risc0_zkvm::sha::rust_crypto::{Digest, Sha256};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sha2::{Digest, Sha256};
|
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Eq, Default, Serialize, Deserialize)]
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
use rand::RngCore;
|
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
use sha2::{Digest, Sha256};
|
|
||||||
|
|
||||||
use crate::cl::{balance::Unit, nullifier::NullifierCommitment};
|
use crate::cl::{balance::Unit, nullifier::NullifierCommitment};
|
||||||
|
use rand::RngCore;
|
||||||
|
use risc0_zkvm::sha::rust_crypto::{Digest, Sha256};
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
|
||||||
pub struct Constraint(pub [u8; 32]);
|
pub struct Constraint(pub [u8; 32]);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
use rand_core::RngCore;
|
use rand_core::RngCore;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sha2::{Digest, Sha256};
|
use risc0_zkvm::sha::rust_crypto::{Digest, Sha256};
|
||||||
|
|
||||||
use crate::cl::NoteCommitment;
|
use crate::cl::NoteCommitment;
|
||||||
|
|
||||||
|
@ -15,4 +15,3 @@ risc0-groth16 = { version = "1.0" }
|
|||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
rand_core = "0.6.0"
|
rand_core = "0.6.0"
|
||||||
thiserror = "1.0.62"
|
thiserror = "1.0.62"
|
||||||
sha2 = "0.10"
|
|
||||||
|
@ -6,4 +6,4 @@ edition = "2021"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
cl = { path = "../cl" }
|
cl = { path = "../cl" }
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
sha2 = "0.10"
|
risc0-zkvm = "1.2"
|
@ -4,8 +4,8 @@ use cl::{
|
|||||||
cl::{BalanceWitness, NoteCommitment, Nullifier},
|
cl::{BalanceWitness, NoteCommitment, Nullifier},
|
||||||
zone_layer::notes::ZoneId,
|
zone_layer::notes::ZoneId,
|
||||||
};
|
};
|
||||||
|
use risc0_zkvm::sha::rust_crypto::{Digest, Sha256};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use sha2::{Digest, Sha256};
|
|
||||||
|
|
||||||
use crate::ptx::PtxPublic;
|
use crate::ptx::PtxPublic;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user