pub struct AuthorPublicKey(/* private fields */);
Expand description
Identifier for an Author
This is the corresponding [VerifyingKey
] for an author. It is used as an identifier, and can
be used to verify [Signature
]s.
Implementations§
Source§impl AuthorPublicKey
impl AuthorPublicKey
Sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>
pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>
Create from a slice of bytes.
Will return an error if the input bytes do not represent a valid [ed25519_dalek
]
curve point. Will never fail for a byte array returned from Self::as_bytes
.
See [VerifyingKey::from_bytes
] for details.
Trait Implementations§
Source§impl Clone for AuthorPublicKey
impl Clone for AuthorPublicKey
Source§fn clone(&self) -> AuthorPublicKey
fn clone(&self) -> AuthorPublicKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthorPublicKey
impl Debug for AuthorPublicKey
Source§impl Default for AuthorPublicKey
impl Default for AuthorPublicKey
Source§fn default() -> AuthorPublicKey
fn default() -> AuthorPublicKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorPublicKey
impl<'de> Deserialize<'de> for AuthorPublicKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AuthorPublicKey
impl Display for AuthorPublicKey
Source§impl From<&Author> for AuthorPublicKey
impl From<&Author> for AuthorPublicKey
Source§impl From<&AuthorPublicKey> for AuthorId
impl From<&AuthorPublicKey> for AuthorId
Source§fn from(value: &AuthorPublicKey) -> Self
fn from(value: &AuthorPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<Author> for AuthorPublicKey
impl From<Author> for AuthorPublicKey
Source§impl From<AuthorPublicKey> for AuthorId
impl From<AuthorPublicKey> for AuthorId
Source§fn from(value: AuthorPublicKey) -> Self
fn from(value: AuthorPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<VerifyingKey> for AuthorPublicKey
impl From<VerifyingKey> for AuthorPublicKey
Source§impl FromStr for AuthorPublicKey
impl FromStr for AuthorPublicKey
Source§impl Hash for AuthorPublicKey
impl Hash for AuthorPublicKey
Source§impl Ord for AuthorPublicKey
impl Ord for AuthorPublicKey
Source§impl PartialEq for AuthorPublicKey
impl PartialEq for AuthorPublicKey
Source§impl PartialOrd for AuthorPublicKey
impl PartialOrd for AuthorPublicKey
Source§impl Serialize for AuthorPublicKey
impl Serialize for AuthorPublicKey
Source§impl TryFrom<AuthorId> for AuthorPublicKey
impl TryFrom<AuthorId> for AuthorPublicKey
impl Copy for AuthorPublicKey
impl Eq for AuthorPublicKey
impl StructuralPartialEq for AuthorPublicKey
Auto Trait Implementations§
impl Freeze for AuthorPublicKey
impl RefUnwindSafe for AuthorPublicKey
impl Send for AuthorPublicKey
impl Sync for AuthorPublicKey
impl Unpin for AuthorPublicKey
impl UnwindSafe for AuthorPublicKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more