diff options
Diffstat (limited to 'src/cmd')
| -rw-r--r-- | src/cmd/hash.rs | 3 | ||||
| -rw-r--r-- | src/cmd/new.rs | 2 | ||||
| -rw-r--r-- | src/cmd/sign.rs | 6 |
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; |
