Skip to content

Commit

Permalink
Expose utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Feb 28, 2025
1 parent 970648c commit 4785f4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/utils/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use digest::{Digest, FixedOutputReset};
use ark_std::vec::Vec;

// Generic hash wrapper.
pub(crate) fn hash<H: Digest>(data: &[u8]) -> digest::Output<H> {
pub fn hash<H: Digest>(data: &[u8]) -> digest::Output<H> {
H::new().chain_update(data).finalize()
}

Expand Down
11 changes: 5 additions & 6 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
//! Common utilities
pub mod common;
pub mod te_sw_map;

/// Standard procedures.
pub(crate) mod common;
pub use common::*;
/// Twisted Edwards to Short Weierstrass mapping.
pub(crate) mod te_sw_map;

pub(crate) use common::*;

pub use te_sw_map::{sw_to_te, te_to_sw, SWMapping, TEMapping};
pub use te_sw_map::*;

0 comments on commit 4785f4c

Please sign in to comment.