diff --git a/components/zcash_note_encryption/Cargo.toml b/components/zcash_note_encryption/Cargo.toml index caf262480..044e9131d 100644 --- a/components/zcash_note_encryption/Cargo.toml +++ b/components/zcash_note_encryption/Cargo.toml @@ -20,3 +20,4 @@ rand_core = "0.5.1" [dev-dependencies] zcash_primitives = { version = "0.5", path = "../../zcash_primitives" } +jubjub = "0.5.1" diff --git a/components/zcash_note_encryption/src/lib.rs b/components/zcash_note_encryption/src/lib.rs index 2b965cc5e..4f3471939 100644 --- a/components/zcash_note_encryption/src/lib.rs +++ b/components/zcash_note_encryption/src/lib.rs @@ -168,9 +168,10 @@ pub trait ShieldedOutput<'a, D: Domain> { /// use rand_core::OsRng; /// use zcash_primitives::{ /// consensus::TestNetwork, +/// memo::MemoBytes, /// sapling::{ /// keys::{OutgoingViewingKey, prf_expand}, -/// note_encryption::{Memo, sapling_note_encryption}, +/// note_encryption::{sapling_note_encryption}, /// Diversifier, PaymentAddress, Rseed, ValueCommitment /// }, /// }; @@ -192,7 +193,7 @@ pub trait ShieldedOutput<'a, D: Domain> { /// let note = to.create_note(value, Rseed::BeforeZip212(rcm)).unwrap(); /// let cmu = note.cmu(); /// -/// let mut enc = sapling_note_encryption::<_, TestNetwork>(ovk, note, to, Memo::default(), &mut rng); +/// let mut enc = sapling_note_encryption::<_, TestNetwork>(ovk, note, to, MemoBytes::empty(), &mut rng); /// let encCiphertext = enc.encrypt_note_plaintext(); /// let outCiphertext = enc.encrypt_outgoing_plaintext(&cv.commitment().into(), &cmu, &mut rng); /// ```