grin-wallet master now building against grin master (#402)

This commit is contained in:
Antioch Peverell
2020-05-11 10:27:47 +01:00
committed by GitHub
parent dceeda93be
commit 19da1e4aec
10 changed files with 75 additions and 76 deletions
+5 -5
View File
@@ -26,7 +26,7 @@ use ring::aead;
use ring::pbkdf2;
use crate::keychain::{mnemonic, Keychain};
use crate::util;
use crate::util::{self, ToHex};
use crate::{Error, ErrorKind};
use failure::ResultExt;
@@ -55,7 +55,7 @@ impl WalletSeed {
}
pub fn _to_hex(&self) -> String {
util::to_hex(self.0.to_vec())
self.0.to_vec().to_hex()
}
pub fn to_mnemonic(&self) -> Result<String, Error> {
@@ -266,9 +266,9 @@ impl EncryptedWalletSeed {
}
Ok(EncryptedWalletSeed {
encrypted_seed: util::to_hex(enc_bytes.to_vec()),
salt: util::to_hex(salt.to_vec()),
nonce: util::to_hex(nonce.to_vec()),
encrypted_seed: enc_bytes.to_hex(),
salt: salt.to_hex(),
nonce: nonce.to_hex(),
})
}