[][src]Struct koibumi_core::identity::Private

pub struct Private { /* fields omitted */ }

A private identity of a Bitmessage message sender.

Implementations

impl Private[src]

pub fn new(
    version: AddressVersion,
    stream: StreamNumber,
    features: Features,
    nonce_trials_per_byte: NonceTrialsPerByte,
    payload_length_extra_bytes: PayloadLengthExtraBytes,
    private_signing_key: PrivateKey,
    private_encryption_key: PrivateKey,
    chan: bool
) -> Result<Self, AddressError>
[src]

Creates a private 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 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.

pub fn private_signing_key(&self) -> &PrivateKey[src]

Returns the private signing key.

pub fn private_encryption_key(&self) -> &PrivateKey[src]

Returns the private encryption key.

pub fn chan(&self) -> bool[src]

Returns true if this is chan identity.

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 random_builder() -> RandomBuilder[src]

Returns a random identity builder.

pub fn deterministic_builder(password: Vec<u8>) -> DeterministicBuilder[src]

Returns a deterministic identity builder.

pub fn chan_builder(password: Vec<u8>) -> ChanBuilder[src]

Returns a chan identity builder.

Trait Implementations

impl Clone for Private[src]

impl Debug for Private[src]

impl Display for Private[src]

impl Eq for Private[src]

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

impl Hash for Private[src]

impl PartialEq<Private> for Private[src]

impl StructuralEq for Private[src]

impl StructuralPartialEq for Private[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.