Skip to content

Commit

Permalink
chore: fix no-std compilation for nomt-core
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier authored and pepyakin committed Feb 18, 2025
1 parent 02aa9b0 commit d965ec0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/hasher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub trait BinaryHash {
/// the space 2^256, i.e. all 256 bit outputs are valid and inputs are uniformly distributed.
///
/// Functions like Sha2/Blake3/Keccak/Groestl all meet these criteria.
pub struct BinaryHasher<H>(std::marker::PhantomData<H>);
pub struct BinaryHasher<H>(core::marker::PhantomData<H>);

impl<H: BinaryHash> ValueHasher for BinaryHasher<H> {
fn hash_value(value: &[u8]) -> [u8; 32] {
Expand Down
2 changes: 1 addition & 1 deletion core/src/proof/multi_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
use alloc::{vec, vec::Vec};

use bitvec::prelude::*;
use std::cmp::Ordering;
use core::cmp::Ordering;

/// This struct includes the terminal node and its depth
#[derive(Debug, Clone)]
Expand Down

0 comments on commit d965ec0

Please sign in to comment.