scanning_results_reader

Function main

Source
pub fn main()
Expand description

Prints the memos of transactions from Zebra’s scanning results storage.

Reads the results storage, iterates through all decrypted memos, and prints the them to standard output. Filters out some frequent and uninteresting memos typically associated with ZECPages.

Notes:

  • #[allow(clippy::print_stdout)] is set to allow usage of println! for displaying the memos.
  • This function expects Zebra’s RPC server to be available.

§Panics

When:

  • The Sapling key from the storage is not valid.
  • There is no diversifiable full viewing key (dfvk) available.
  • The RPC response cannot be decoded from a hex string to bytes.
  • The transaction fetched via RPC cannot be deserialized from raw bytes.