pub fn prf_ock(
    ovk: &OutgoingViewingKey,
    cv: &jubjub::ExtendedPoint,
    cmu: &bls12_381::Scalar,
    epk: &jubjub::ExtendedPoint,
) -> OutgoingCipherKey {
    OutgoingCipherKey(
        Blake2bParams::new()
            .hash_length(32)
            .personal(PRF_OCK_PERSONALIZATION)
            .to_state()
            .update(&ovk.0)
            .update(&cv.to_bytes())
            .update(&cmu.to_repr())
            .update(&epk.to_bytes())
            .finalize()
            .as_bytes()
            .try_into()
            .unwrap(),
    )
}
/// Sapling PRF^ock.
///
/// Implemented per section 5.4.2 of the Zcash Protocol Specification.
Sapling PRF^ock.
Implemented per section 5.4.2 of the Zcash Protocol Specification.
Sapling PRF^ock . Implemented per section 5 . 4 . 2 of the Zcash Protocol Specification .
pub fn prf_ock(
    ovk: &OutgoingViewingKey,
    cv: &jubjub::ExtendedPoint,
    cmu: &bls12_381::Scalar,
    epk: &jubjub::ExtendedPoint,
) -> OutgoingCipherKey {
    OutgoingCipherKey(
        Blake2bParams::new()
            .hash_length(32)
            .personal(PRF_OCK_PERSONALIZATION)
            .to_state()
            .update(&ovk.0)
            .update(&cv.to_bytes())
            .update(&cmu.to_repr())
            .update(&epk.to_bytes())
            .finalize()
            .as_bytes()
            .try_into()
            .unwrap(),
    )
}
pub fn prf_ock ( ovk : & OutgoingViewingKey , cv : & jubjub :: ExtendedPoint , cmu : & bls12_381 :: Scalar , epk : & jubjub :: ExtendedPoint , ) -> OutgoingCipherKey { OutgoingCipherKey ( Blake2bParams :: new ( ) . hash_length ( 32 ) . personal ( PRF_OCK_PERSONALIZATION ) . to_state ( ) . update ( & ovk . 0 ) . update ( & cv . to_bytes ( ) ) . update ( & cmu . to_repr ( ) ) . update ( & epk . to_bytes ( ) ) . finalize ( ) . as_bytes ( ) . try_into ( ) . unwrap ( ) , ) }
Sapling PRF^ock.
Sapling PRF^ock .
ovk
&OutgoingViewingKey
cv
&jubjub::ExtendedPoint
cmu
&bls12_381::Scalar
epk
&jubjub::ExtendedPoint
ovk
&OutgoingViewingKey
cv
&jubjub::ExtendedPoint
cmu
&bls12_381::Scalar
epk
&jubjub::ExtendedPoint