pub struct PublicKey(/* private fields */);Expand description
the public part of a KeyPair
Implementations§
Source§impl PublicKey
impl PublicKey
Sourcepub fn to_bytes_hex(&self) -> String
pub fn to_bytes_hex(&self) -> String
serializes to an hex-encoded string
Sourcepub fn from_bytes_hex(str: &str) -> Result<PublicKey, Format>
pub fn from_bytes_hex(str: &str) -> Result<PublicKey, Format>
deserializes from an hex-encoded string
pub fn from_proto(key: &PublicKey) -> Result<PublicKey, Format>
pub fn to_proto(&self) -> PublicKey
pub fn print(&self) -> String
Trait Implementations§
Source§impl RootKeyProvider for &PublicKey
impl RootKeyProvider for &PublicKey
Source§impl RootKeyProvider for PublicKey
impl RootKeyProvider for PublicKey
Source§impl ToAnyParam for PublicKey
Available on crate feature datalog-macro only.
impl ToAnyParam for PublicKey
Available on crate feature
datalog-macro only.fn to_any_param(&self) -> AnyParam
impl Copy for PublicKey
impl Eq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnsafeUnpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.