Print transactions list

This commit is contained in:
Aditya Kulkarni
2019-09-07 15:25:50 -07:00
parent a2c45646d7
commit d7ff2a8792
2 changed files with 78 additions and 25 deletions

View File

@@ -90,7 +90,6 @@ impl BlockData {
}
}
pub struct SaplingNoteData {
account: usize,
extfvk: ExtendedFullViewingKey, // Technically, this should be recoverable from the account number, but we're going to refactor this in the future, so I'll write it again here.
@@ -254,6 +253,13 @@ impl SaplingNoteData {
Ok(())
}
pub fn note_address(&self) -> Option<String> {
match self.extfvk.fvk.vk.into_payment_address(self.diversifier, &JUBJUB) {
Some(pa) => Some(encode_payment_address(HRP_SAPLING_PAYMENT_ADDRESS, &pa)),
None => None
}
}
}
pub struct WalletTx {