nam_reddsa/sapling.rs
1//! Signature types for the Sapling protocol.
2
3use super::SigType;
4
5/// A type variable corresponding to Zcash's Sapling `SpendAuthSig`.
6#[derive(Copy, Clone, PartialEq, Eq, Debug)]
7pub enum SpendAuth {}
8// This should not exist, but is necessary to use zeroize::DefaultIsZeroes.
9impl Default for SpendAuth {
10 fn default() -> Self {
11 unimplemented!()
12 }
13}
14impl SigType for SpendAuth {}
15impl super::SpendAuth for SpendAuth {}
16
17/// A type variable corresponding to Zcash's Sapling `BindingSig`.
18#[derive(Copy, Clone, PartialEq, Eq, Debug)]
19pub enum Binding {}
20// This should not exist, but is necessary to use zeroize::DefaultIsZeroes.
21impl Default for Binding {
22 fn default() -> Self {
23 unimplemented!()
24 }
25}
26impl SigType for Binding {}
27impl super::Binding for Binding {}