Move OutgoingViewingKey to zcash_primitives::keys
This commit is contained in:
parent
f58d191439
commit
0b43535203
|
@ -12,7 +12,7 @@ use zcash_primitives::{
|
|||
};
|
||||
|
||||
#[cfg(feature = "transparent-inputs")]
|
||||
use zcash_primitives::{legacy::keys as transparent, sapling::keys::OutgoingViewingKey};
|
||||
use zcash_primitives::{keys::OutgoingViewingKey, legacy::keys as transparent};
|
||||
|
||||
use crate::{
|
||||
address::RecipientAddress,
|
||||
|
|
|
@ -18,3 +18,7 @@ pub fn prf_expand_vec(sk: &[u8], ts: &[&[u8]]) -> Blake2bHash {
|
|||
}
|
||||
h.finalize()
|
||||
}
|
||||
|
||||
/// An outgoing viewing key
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct OutgoingViewingKey(pub [u8; 32]);
|
||||
|
|
|
@ -13,11 +13,7 @@ use group::{Group, GroupEncoding};
|
|||
use std::io::{self, Read, Write};
|
||||
use subtle::CtOption;
|
||||
|
||||
pub use crate::keys::{prf_expand, prf_expand_vec};
|
||||
|
||||
/// An outgoing viewing key
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
pub struct OutgoingViewingKey(pub [u8; 32]);
|
||||
pub use crate::keys::{prf_expand, prf_expand_vec, OutgoingViewingKey};
|
||||
|
||||
/// A Sapling expanded spending key
|
||||
#[derive(Clone)]
|
||||
|
|
Loading…
Reference in New Issue