[−][src]Struct koibumi_core::identity::Public
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]
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>
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]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Public> for Public
[src]
impl StructuralEq for Public
[src]
impl StructuralPartialEq for Public
[src]
Auto Trait Implementations
impl RefUnwindSafe for Public
[src]
impl Send for Public
[src]
impl Sync for Public
[src]
impl Unpin for Public
[src]
impl UnwindSafe for Public
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,