Skip to content

Commit

Permalink
feat: add zcash interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
soralit committed Nov 18, 2024
1 parent c99b140 commit bfe5f9a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion rust/apps/zcash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ pub mod pczt;

use errors::{Result, ZcashError};

use alloc::string::{String, ToString};
use alloc::{
string::{String, ToString},
vec::Vec,
};
use pczt::structs::ParsedPczt;
use zcash_vendor::{
zcash_keys::keys::{UnifiedAddressRequest, UnifiedFullViewingKey},
zcash_protocol::consensus::MainNetwork,
Expand All @@ -22,6 +26,18 @@ pub fn get_address(ufvk_text: &str) -> Result<String> {
Ok(address.encode(&MainNetwork))
}

pub fn check_pczt(pczt: &[u8], ufvk_text: &str, seed_fingerprint: &[u8; 32]) -> Result<()> {
unimplemented!()
}

pub fn parse_pczt(pczt: &[u8], ufvk_text: &str, seed_fingerprint: &[u8; 32]) -> Result<ParsedPczt> {
unimplemented!()
}

pub fn sign_pczt(pczt: &[u8], seed: &[u8]) -> Result<Vec<u8>> {
unimplemented!()
}

// pub fn sign_transaction(tx: &[u8], seed: &[u8]) -> Result<Vec<u8>> {
// let mut transaction = tx.clone();
// let pczt = PartiallyCreatedTransaction::decode(transaction)?;
Expand Down

0 comments on commit bfe5f9a

Please sign in to comment.