From 98a91ab92fffa8235caf154959725bd67257fe9e Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sat, 28 Mar 2020 04:12:06 -0400 Subject: [PATCH] Add simple FullViewingKey for now --- zebra-chain/src/keys/sapling.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/zebra-chain/src/keys/sapling.rs b/zebra-chain/src/keys/sapling.rs index 677a8383..3e60dd7d 100644 --- a/zebra-chain/src/keys/sapling.rs +++ b/zebra-chain/src/keys/sapling.rs @@ -166,6 +166,17 @@ impl fmt::Debug for Diversifier { /// pkd = gd * ivk pub type TransmissionKey = redjubjub::PublicKeyBytes; +/// Full Viewing Keys +/// +/// 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”. +pub struct FullViewingKey { + authorizing_key: AuthorizingKey, + nullifier_deriving_key: NullifierDerivingKey, + outgoing_viewing_key: OutgoingViewingKey, +} + #[cfg(test)] mod tests {