Small QoL improvements for wallet developers (#2651)

* Small changes for wallet devs

* Move create_nonce into Keychain trait

* Replace match by map_err

* Add flag to Slate to skip fee check

* Fix secp dependency

* Remove check_fee flag in Slate
This commit is contained in:
jaspervdm
2019-03-19 17:13:49 +01:00
committed by Yeastplume
parent 7fad5b040f
commit f4d3b2e204
5 changed files with 22 additions and 20 deletions
+4
View File
@@ -131,6 +131,10 @@ impl WalletSeed {
Ok(WalletSeed::from_bytes(&bytes))
}
pub fn to_bytes(&self) -> Vec<u8> {
self.0.clone()
}
pub fn to_hex(&self) -> String {
util::to_hex(self.0.to_vec())
}