penumbra_sdk_keys/keys/ovk.rs
1pub const OVK_LEN_BYTES: usize = 32;
2
3/// Allows viewing outgoing notes, i.e., notes sent from the spending key this
4/// key is derived from.
5#[derive(Clone, Debug, PartialEq, Eq)]
6pub struct OutgoingViewingKey(pub(crate) [u8; OVK_LEN_BYTES]);
7
8impl OutgoingViewingKey {
9 pub fn to_bytes(&self) -> [u8; OVK_LEN_BYTES] {
10 self.0
11 }
12}