summaryrefslogtreecommitdiff
path: root/src/merkle.rs
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2018-09-29 23:48:01 -0500
committerStuart Stock <stuart@int08h.com>2018-09-29 23:48:01 -0500
commit146ed83d361ffd44d09e3879dde809150bb07a7a (patch)
treec5d4defd34d1f58feb36a9b5fa5b55e490683749 /src/merkle.rs
parent606b144dc40ed418253d26bb56bcbe9469d04cf1 (diff)
downloadroughenough-146ed83d361ffd44d09e3879dde809150bb07a7a.zip
Major refeactoring for better code structure
* Extract distinct types for online and long-term keys * Extract and create separate configuration trait and implementation(s) * Clean-ups, renames, tidying
Diffstat (limited to 'src/merkle.rs')
-rw-r--r--src/merkle.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/merkle.rs b/src/merkle.rs
index ba52f96..e34a5b4 100644
--- a/src/merkle.rs
+++ b/src/merkle.rs
@@ -1,4 +1,4 @@
-// Copyright 2018 int08h LLC
+// Copyright 2017-2018 int08h LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -18,8 +18,8 @@
extern crate ring;
-use super::{HASH_LENGTH, TREE_LEAF_TWEAK, TREE_NODE_TWEAK};
use self::ring::digest;
+use super::{HASH_LENGTH, TREE_LEAF_TWEAK, TREE_NODE_TWEAK};
type Data = Vec<u8>;
type Hash = Data;
@@ -32,7 +32,6 @@ pub struct MerkleTree {
}
impl MerkleTree {
-
///
/// Create a new empty Merkle Tree
///