mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-08 12:21:09 +03:00
move siphash out of pow and into util (#633)
we are going to use this for generating short ids
This commit is contained in:
parent
f1bbf5370e
commit
dae90543c2
4 changed files with 25 additions and 24 deletions
|
@ -23,7 +23,7 @@ use std::cmp;
|
||||||
use blake2;
|
use blake2;
|
||||||
|
|
||||||
use core::core::Proof;
|
use core::core::Proof;
|
||||||
use siphash::siphash24;
|
use util::siphash::siphash24;
|
||||||
use MiningWorker;
|
use MiningWorker;
|
||||||
|
|
||||||
const MAXPATHLEN: usize = 8192;
|
const MAXPATHLEN: usize = 8192;
|
||||||
|
|
|
@ -44,7 +44,6 @@ extern crate grin_util as util;
|
||||||
|
|
||||||
extern crate cuckoo_miner;
|
extern crate cuckoo_miner;
|
||||||
|
|
||||||
mod siphash;
|
|
||||||
pub mod plugin;
|
pub mod plugin;
|
||||||
pub mod cuckoo;
|
pub mod cuckoo;
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
|
@ -50,6 +50,8 @@ pub use secp_static::static_secp_instance;
|
||||||
pub mod types;
|
pub mod types;
|
||||||
pub use types::{LoggingConfig, LogLevel};
|
pub use types::{LoggingConfig, LogLevel};
|
||||||
|
|
||||||
|
pub mod siphash;
|
||||||
|
|
||||||
// other utils
|
// other utils
|
||||||
use std::cell::{Ref, RefCell};
|
use std::cell::{Ref, RefCell};
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright 2016 The Grin Developers
|
// Copyright 2018 The Grin Developers
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
Loading…
Reference in a new issue