[][src]Struct koibumi_core::identity::Public

pub struct Public { /* fields omitted */ }

A public identity of a Bitmessage message receiver.

Implementations

impl Public[src]

pub fn new(
    version: AddressVersion,
    stream: StreamNumber,
    features: Features,
    public_signing_key: PublicKey,
    public_encryption_key: PublicKey,
    nonce_trials_per_byte: NonceTrialsPerByte,
    payload_length_extra_bytes: PayloadLengthExtraBytes
) -> Result<Self, AddressError>
[src]

Creates a public identity.

pub fn address(&self) -> Address[src]

Returns the address

pub fn version(&self) -> AddressVersion[src]

Returns the address version.

pub fn stream(&self) -> StreamNumber[src]

Returns the stream number.

pub fn features(&self) -> Features[src]

Returns the features.

pub fn public_signing_key(&self) -> &PublicKey[src]

Returns the public signing key.

pub fn public_encryption_key(&self) -> &PublicKey[src]

Returns the public encryption key.

pub fn nonce_trials_per_byte(&self) -> NonceTrialsPerByte[src]

Returns the nonce trials per byte.

pub fn payload_length_extra_bytes(&self) -> PayloadLengthExtraBytes[src]

Returns the payload length extra bytes.

Trait Implementations

impl Clone for Public[src]

impl Debug for Public[src]

impl Display for Public[src]

impl Eq for Public[src]

impl From<&'_ Private> for Public[src]

impl Hash for Public[src]

impl PartialEq<Public> for Public[src]

impl StructuralEq for Public[src]

impl StructuralPartialEq for Public[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.