Trait parsec::SecretId [−][src]
pub trait SecretId { type PublicId: PublicId; fn public_id(&self) -> &Self::PublicId; fn sign_detached(
&self,
data: &[u8]
) -> <Self::PublicId as PublicId>::Signature; fn create_proof(&self, data: &[u8]) -> Proof<Self::PublicId> { ... } }
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
Required Methods
fn public_id(&self) -> &Self::PublicId
Returns the associated public identity.
fn sign_detached(&self, data: &[u8]) -> <Self::PublicId as PublicId>::Signature
Creates a detached Signature
of data
.