Skip to content

Commit bfe5f9a

Browse files
committed
feat: add zcash interfaces
1 parent c99b140 commit bfe5f9a

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

rust/apps/zcash/src/lib.rs

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ pub mod pczt;
77

88
use errors::{Result, ZcashError};
99

10-
use alloc::string::{String, ToString};
10+
use alloc::{
11+
string::{String, ToString},
12+
vec::Vec,
13+
};
14+
use pczt::structs::ParsedPczt;
1115
use zcash_vendor::{
1216
zcash_keys::keys::{UnifiedAddressRequest, UnifiedFullViewingKey},
1317
zcash_protocol::consensus::MainNetwork,
@@ -22,6 +26,18 @@ pub fn get_address(ufvk_text: &str) -> Result<String> {
2226
Ok(address.encode(&MainNetwork))
2327
}
2428

29+
pub fn check_pczt(pczt: &[u8], ufvk_text: &str, seed_fingerprint: &[u8; 32]) -> Result<()> {
30+
unimplemented!()
31+
}
32+
33+
pub fn parse_pczt(pczt: &[u8], ufvk_text: &str, seed_fingerprint: &[u8; 32]) -> Result<ParsedPczt> {
34+
unimplemented!()
35+
}
36+
37+
pub fn sign_pczt(pczt: &[u8], seed: &[u8]) -> Result<Vec<u8>> {
38+
unimplemented!()
39+
}
40+
2541
// pub fn sign_transaction(tx: &[u8], seed: &[u8]) -> Result<Vec<u8>> {
2642
// let mut transaction = tx.clone();
2743
// let pczt = PartiallyCreatedTransaction::decode(transaction)?;

0 commit comments

Comments
 (0)