From 0053e98f00086f4c045d2c9968d9bdff8017805a Mon Sep 17 00:00:00 2001 From: Jules Date: Tue, 29 Sep 2020 11:54:43 +0200 Subject: [PATCH] Revert "Add a function to return encrypted data of a Note" --- src/note.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/note.rs b/src/note.rs index 743f5da..0b4e1fe 100644 --- a/src/note.rs +++ b/src/note.rs @@ -1,6 +1,5 @@ // Copyright (c) DUSK NETWORK. All rights reserved. -// Licensed under the MPL 2.0 license. See LICENSE file in the project root for -// details. +// Licensed under the MPL 2.0 license. See LICENSE file in the project root for details. use kelvin::{ByteHash, Content, Sink, Source}; use std::convert::TryFrom; @@ -307,11 +306,6 @@ impl Note { &self.value_commitment } - /// Return the encrypted data of the note. - pub fn encrypted_data(&self) -> [u8; ENCRYPTED_DATA_SIZE] { - self.encrypted_data - } - /// Attempt to decrypt the note value provided a [`ViewKey`]. Always /// succeeds for transparent notes, might fails or return random values for /// obfuscated notes if the provided view key is wrong.