Skip to content

Commit

Permalink
stop 2 hash fn from being pub with wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
RGGH committed Nov 4, 2024
1 parent e541fd9 commit cee3b65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use sha2::{Sha256, Digest};
use ripemd::Ripemd160;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]

pub fn sha256(input: &[u8]) -> Vec<u8> {
let mut hasher = Sha256::new();
hasher.update(input);
hasher.finalize().to_vec()
}

#[wasm_bindgen]

pub fn ripemd160(input: &[u8]) -> Vec<u8> {
let mut hasher = Ripemd160::new();
hasher.update(input);
Expand Down

0 comments on commit cee3b65

Please sign in to comment.