penumbra_keys/keys/
ovk.rs

1
2
3
4
5
6
7
8
9
10
11
12
pub const OVK_LEN_BYTES: usize = 32;

/// Allows viewing outgoing notes, i.e., notes sent from the spending key this
/// key is derived from.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct OutgoingViewingKey(pub(crate) [u8; OVK_LEN_BYTES]);

impl OutgoingViewingKey {
    pub fn to_bytes(&self) -> [u8; OVK_LEN_BYTES] {
        self.0
    }
}