Struct routing::PrivAppendedData
[−]
[src]
pub struct PrivAppendedData(pub Vec<u8>);
A private appended data item: an encrypted AppendedData
.
Methods
impl PrivAppendedData
[src]
fn new(
appended_data: &AppendedData,
encrypt_pub_key: &PublicKey
) -> Result<PrivAppendedData, RoutingError>
appended_data: &AppendedData,
encrypt_pub_key: &PublicKey
) -> Result<PrivAppendedData, RoutingError>
Creates a new PrivAppendedData
encrypted with encrypting_key
.
fn open(
&self,
pub_key: &PublicKey,
secret_key: &SecretKey
) -> Result<AppendedData, RoutingError>
&self,
pub_key: &PublicKey,
secret_key: &SecretKey
) -> Result<AppendedData, RoutingError>
Returns AppendedData
decrypted from this item.
Trait Implementations
impl Hash for PrivAppendedData
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for PrivAppendedData
[src]
impl PartialEq for PrivAppendedData
[src]
fn eq(&self, __arg_0: &PrivAppendedData) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PrivAppendedData) -> bool
This method tests for !=
.
impl PartialOrd for PrivAppendedData
[src]
fn partial_cmp(&self, __arg_0: &PrivAppendedData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &PrivAppendedData) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &PrivAppendedData) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &PrivAppendedData) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &PrivAppendedData) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for PrivAppendedData
[src]
fn cmp(&self, __arg_0: &PrivAppendedData) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Clone for PrivAppendedData
[src]
fn clone(&self) -> PrivAppendedData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for PrivAppendedData
[src]
impl<'de> Deserialize<'de> for PrivAppendedData
[src]
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more