From 1219f1b55255847b6ccb54ea974f0b9c7db4ac90 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sat, 28 Mar 2020 15:50:07 -0400 Subject: [PATCH] Improve FullViewingKey doc comment --- zebra-chain/src/keys/sapling.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zebra-chain/src/keys/sapling.rs b/zebra-chain/src/keys/sapling.rs index ac521b41..00aa31f5 100644 --- a/zebra-chain/src/keys/sapling.rs +++ b/zebra-chain/src/keys/sapling.rs @@ -175,9 +175,14 @@ pub type TransmissionKey = redjubjub::PublicKeyBytes; /// Full Viewing Keys /// +/// Allows recognizing both incoming and outgoing notes without having +/// spend authority. +/// /// For incoming viewing keys on the production network, the /// Human-Readable Part is “zviews”. For incoming viewing keys on the /// test network, the Human-Readable Part is “zviewtestsapling”. +/// +/// https://zips.z.cash/protocol/protocol.pdf#saplingfullviewingkeyencoding pub struct FullViewingKey { authorizing_key: AuthorizingKey, nullifier_deriving_key: NullifierDerivingKey,