Stub out transparent addresses, keys with secp256k1
This commit is contained in:
parent
0998b90392
commit
9a4e4e4236
|
@ -0,0 +1,6 @@
|
|||
//! Address types.
|
||||
|
||||
pub enum TransparentAddress {
|
||||
PayToScriptHash,
|
||||
PayToPublicKeyHash,
|
||||
}
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
mod sapling;
|
||||
mod sprout;
|
||||
mod transparent;
|
||||
|
|
|
@ -13,6 +13,6 @@ use crate::serialization::{SerializationError, ZcashDeserialize, ZcashSerialize}
|
|||
#[cfg(test)]
|
||||
proptest! {
|
||||
|
||||
#[test]
|
||||
fn test() {}
|
||||
// #[test]
|
||||
// fn test() {}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
use std::io;
|
||||
|
||||
use secp256k1::PublicKey;
|
||||
|
||||
use crate::serialization::{
|
||||
ReadZcashExt, SerializationError, WriteZcashExt, ZcashDeserialize, ZcashSerialize,
|
||||
};
|
||||
|
||||
impl ZcashSerialize for PublicKey {
|
||||
fn zcash_serialize<W: io::Write>(&self, mut writer: W) -> Result<(), io::Error> {
|
||||
writer.write_all(&self.serialize())?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl ZcashDeserialize for PublicKey {
|
||||
fn zcash_deserialize<R: io::Read>(mut _reader: R) -> Result<Self, SerializationError> {
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue