[−][src]Trait parsec::SecretId
The secret identity of a node. It provides functionality to allow it to be used as an asymmetric signing secret key and to also yield the associated public identity.
Associated Types
Loading content...Required methods
pub fn public_id(&self) -> &Self::PublicId
[src]
Returns the associated public identity.
pub fn sign_detached(
&self,
data: &[u8]
) -> <Self::PublicId as PublicId>::Signature
[src]
&self,
data: &[u8]
) -> <Self::PublicId as PublicId>::Signature
Creates a detached Signature
of data
.
pub fn encrypt<M: AsRef<[u8]>>(
&self,
to: &Self::PublicId,
msg: M
) -> Option<Vec<u8>>
[src]
&self,
to: &Self::PublicId,
msg: M
) -> Option<Vec<u8>>
Encrypts the message using own Rng to to
pub fn decrypt(&self, from: &Self::PublicId, ct: &[u8]) -> Option<Vec<u8>>
[src]
Decrypt message from from
.