Skip to content

Commit

Permalink
fix: omit pczt checking ATM
Browse files Browse the repository at this point in the history
  • Loading branch information
soralit committed Dec 11, 2024
1 parent 3eae55d commit fe3e07c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
11 changes: 6 additions & 5 deletions rust/apps/zcash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ pub fn get_address(ufvk_text: &str) -> Result<String> {
}

pub fn check_pczt(pczt: &[u8], ufvk_text: &str, seed_fingerprint: &[u8; 32]) -> Result<()> {
let ufvk = UnifiedFullViewingKey::decode(&MainNetwork, ufvk_text)
.map_err(|e| ZcashError::InvalidDataError(e.to_string()))?;
let pczt =
Pczt::parse(pczt).map_err(|_e| ZcashError::InvalidPczt(format!("invalid pczt data")))?;
pczt::check::check_pczt(seed_fingerprint, &ufvk, &pczt)?;
Ok(())
// let ufvk = UnifiedFullViewingKey::decode(&MainNetwork, ufvk_text)
// .map_err(|e| ZcashError::InvalidDataError(e.to_string()))?;
// let pczt =
// Pczt::parse(pczt).map_err(|_e| ZcashError::InvalidPczt(format!("invalid pczt data")))?;
// pczt::check::check_pczt(seed_fingerprint, &ufvk, &pczt)?;
// Ok(())
}

pub fn parse_pczt(pczt: &[u8], ufvk_text: &str, seed_fingerprint: &[u8; 32]) -> Result<ParsedPczt> {
Expand Down
Loading

0 comments on commit fe3e07c

Please sign in to comment.