aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2021-08-21 07:35:13 +0000
committerNicholas Rodrigues Lordello <[email protected]>2021-08-21 07:35:13 +0000
commitf608cce748d80d46f49ba25999e4334fd959b070 (patch)
tree9fc73440b321933cfd6e6ead10ee18d93bc99c89 /src/cmd
parentc05487949a5cb9808945b5bdd174e14fdd7e51ea (diff)
Refactor into lib+bin and start adding e2e tests
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/hash.rs3
-rw-r--r--src/cmd/new.rs2
-rw-r--r--src/cmd/sign.rs6
3 files changed, 6 insertions, 5 deletions
diff --git a/src/cmd/hash.rs b/src/cmd/hash.rs
index aade76b..4a650ff 100644
--- a/src/cmd/hash.rs
+++ b/src/cmd/hash.rs
@@ -1,7 +1,8 @@
//! Module implementing the `hash` subcommand for `keccak256` hashing data.
-use crate::{cmd, hash};
+use crate::cmd;
use anyhow::Result;
+use hdwallet::hash;
use std::path::PathBuf;
use structopt::StructOpt;
diff --git a/src/cmd/new.rs b/src/cmd/new.rs
index d247213..002e5d0 100644
--- a/src/cmd/new.rs
+++ b/src/cmd/new.rs
@@ -1,8 +1,8 @@
//! Module implementing the `new` subcommand for generating a mnemonic for a new
//! hierarchical deterministic wallet.
-use crate::mnemonic::{Language, Mnemonic};
use anyhow::Result;
+use hdwallet::mnemonic::{Language, Mnemonic};
use structopt::StructOpt;
#[derive(Debug, StructOpt)]
diff --git a/src/cmd/sign.rs b/src/cmd/sign.rs
index 85aec8b..290b1a3 100644
--- a/src/cmd/sign.rs
+++ b/src/cmd/sign.rs
@@ -1,11 +1,11 @@
//! Module implementing the `sign` subcommand for generating ECDSA signatures.
-use crate::{
- cmd::{self, AccountOptions},
+use crate::cmd::{self, AccountOptions};
+use anyhow::{ensure, Context as _, Result};
+use hdwallet::{
hash,
transaction::{LegacyTransaction, Transaction},
};
-use anyhow::{ensure, Context as _, Result};
use std::{convert::TryInto, path::PathBuf};
use structopt::StructOpt;