mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-12-01 11:23:55 +01:00
add wallet unpack command (#433)
This commit is contained in:
@@ -45,9 +45,9 @@ impl<'a> PathToSlatepack<'a> {
|
||||
Ok(data)
|
||||
}
|
||||
|
||||
pub fn get_slatepack(&self) -> Result<Slatepack, Error> {
|
||||
pub fn get_slatepack(&self, decrypt: bool) -> Result<Slatepack, Error> {
|
||||
let data = self.get_slatepack_file_contents()?;
|
||||
self.packer.deser_slatepack(data)
|
||||
self.packer.deser_slatepack(data, decrypt)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ impl<'a> SlatePutter for PathToSlatepack<'a> {
|
||||
impl<'a> SlateGetter for PathToSlatepack<'a> {
|
||||
fn get_tx(&self) -> Result<(Slate, bool), Error> {
|
||||
let data = self.get_slatepack_file_contents()?;
|
||||
let slatepack = self.packer.deser_slatepack(data)?;
|
||||
let slatepack = self.packer.deser_slatepack(data, true)?;
|
||||
Ok((self.packer.get_slate(&slatepack)?, true))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user