Add simple FullViewingKey for now

This commit is contained in:
Deirdre Connolly 2020-03-28 04:12:06 -04:00 committed by Deirdre Connolly
parent 8e42c6d8b0
commit 98a91ab92f
1 changed files with 11 additions and 0 deletions

View File

@ -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 {