mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Import tiny_keccak inside hash function
This commit is contained in:
parent
bf8bc68816
commit
06f1ada2b1
@ -3,7 +3,6 @@ use curve25519_dalek::constants::ED25519_BASEPOINT_POINT;
|
||||
use curve25519_dalek::edwards::EdwardsPoint;
|
||||
use curve25519_dalek::scalar::Scalar;
|
||||
use hash_edwards_to_edwards::hash_point_to_point;
|
||||
use tiny_keccak::{Hasher, Keccak};
|
||||
|
||||
pub const RING_SIZE: usize = 11;
|
||||
|
||||
|
@ -5,8 +5,9 @@ macro_rules! hash_to_scalar {
|
||||
($($e:tt) || +) => {
|
||||
{
|
||||
use crate::macros::AsByteSlice as _;
|
||||
use tiny_keccak::Hasher as _;
|
||||
|
||||
let mut hasher = Keccak::v256();
|
||||
let mut hasher = tiny_keccak::Keccak::v256();
|
||||
|
||||
$(
|
||||
hasher.update($e.as_byte_slice());
|
||||
|
Loading…
Reference in New Issue
Block a user