rust: `zcash-inspect` 32-byte hex as maybe a commitment or nullifier

This commit is contained in:
Jack Grigg 2022-08-22 13:49:52 +00:00
parent a0efb40632
commit 2a21051fbe
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@ fn inspect_bytes(bytes: Vec<u8>, context: Option<Context>) {
fn inspect_fixed_length_bytes(bytes: Vec<u8>) {
match bytes.len() {
32 => {
eprintln!("This is most likely a hash of some sort.");
eprintln!(
"This is most likely a hash of some sort, or maybe a commitment or nullifier."
);
if bytes.iter().take(4).all(|c| c == &0) {
eprintln!("- It could be a mainnet block hash.");
}