diff --git a/lib/src/lib.rs b/lib/src/lib.rs index eaa03ba..13e4d21 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -43,16 +43,13 @@ pub extern fn blake3_PW(pw: *const c_char) -> *mut c_char{ }; let data = passwd.as_bytes(); -// Hash an input all at once. -let hash1 = blake3::hash(data).to_hex(); -println!("\nBlake3 Hash: {}", hash1); - -//let sttring = CString::new(hash1).unwrap(); -let e_str = CString::new(format!("{}", hash1)).unwrap(); -return e_str.into_raw(); - - + // Hash an input all at once. + let hash1 = blake3::hash(data).to_hex(); + println!("\nBlake3 Hash: {}", hash1); + //let sttring = CString::new(hash1).unwrap(); + let e_str = CString::new(format!("{}", hash1)).unwrap(); + return e_str.into_raw(); } /// Create a new wallet and return the seed for the newly created wallet.