mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-02 03:26:23 -04:00
Import tiny_keccak inside hash function
This commit is contained in:
parent
bf8bc68816
commit
06f1ada2b1
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue