Struct routing::FullId [−][src]
pub struct FullId { /* fields omitted */ }
Network identity component containing name, and public and private keys.
Methods
impl FullId
[src]
impl FullId
pub fn new() -> FullId
[src]
pub fn new() -> FullId
Construct a FullId
with newly generated keys.
pub fn with_keys(
encrypt_keys: (PublicKey, SecretKey),
sign_keys: (PublicKey, SecretKey)
) -> FullId
[src]
pub fn with_keys(
encrypt_keys: (PublicKey, SecretKey),
sign_keys: (PublicKey, SecretKey)
) -> FullId
Construct with given keys (client requirement).
pub fn within_range(start: &XorName, end: &XorName) -> FullId
[src]
pub fn within_range(start: &XorName, end: &XorName) -> FullId
Construct a FullId
whose name is in the interval [start, end] (both endpoints inclusive).
FIXME(Fraser) - time limit this function? Document behaviour
pub fn public_id(&self) -> &PublicId
[src]
pub fn public_id(&self) -> &PublicId
Returns public ID reference.
pub fn public_id_mut(&mut self) -> &mut PublicId
[src]
pub fn public_id_mut(&mut self) -> &mut PublicId
Returns mutable reference to public ID.
pub fn signing_private_key(&self) -> &SecretKey
[src]
pub fn signing_private_key(&self) -> &SecretKey
Secret signing key.
pub fn encrypting_private_key(&self) -> &SecretKey
[src]
pub fn encrypting_private_key(&self) -> &SecretKey
Private encryption key.
Trait Implementations
impl Clone for FullId
[src]
impl Clone for FullId
fn clone(&self) -> FullId
[src]
fn clone(&self) -> FullId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for FullId
[src]
impl Default for FullId