Skip to content

Commit

Permalink
Merge pull request #14 from dusk-network/revert-12-read-enc-data
Browse files Browse the repository at this point in the history
Revert "Add a function to return encrypted data of a Note"
  • Loading branch information
jules authored Sep 29, 2020
2 parents 8cec24a + 0053e98 commit 63b80a9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/note.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 63b80a9

Please sign in to comment.