Make ReceivingKey a type alias for x25519_dalek::StaticSecret

Plus some doc comments
This commit is contained in:
Deirdre Connolly 2020-03-18 14:57:23 -04:00 committed by Deirdre Connolly
parent c836dcf3b6
commit ecbd1bf825
1 changed files with 4 additions and 4 deletions

View File

@ -21,14 +21,14 @@ use crate::serialization::{SerializationError, ZcashDeserialize, ZcashSerialize}
/// All other Sprout key types derive from the SpendingKey value.
pub struct SpendingKey;
///
pub struct ReceivingKey;
/// Derived from a _SpendingKey_.
pub type ReceivingKey = x25519_dalek::StaticSecret;
///
/// Derived from a _SpendingKey_.
#[derive(Copy, Clone, Eq, PartialEq)]
pub struct PayingKey(pub [u8; 32]);
///
/// Derived from a _ReceivingKey_.
pub type TransmissionKey = x25519_dalek::PublicKey;
///