From ecbd1bf82527cccb8c2258269610e0ea901ebbbb Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Wed, 18 Mar 2020 14:57:23 -0400 Subject: [PATCH] Make ReceivingKey a type alias for x25519_dalek::StaticSecret Plus some doc comments --- zebra-chain/src/keys/sprout.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zebra-chain/src/keys/sprout.rs b/zebra-chain/src/keys/sprout.rs index 23d257ee5..0740502fb 100644 --- a/zebra-chain/src/keys/sprout.rs +++ b/zebra-chain/src/keys/sprout.rs @@ -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; ///