pub struct KeyId(/* private fields */);Expand description
Wrapper type for public key’s ID.
§Calculating
A KeyId is calculated as the hex digest of the SHA-256 hash of the
canonical form of the public key, or hexdigest(sha256(cjson(public_key))).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyId
impl<'de> Deserialize<'de> for KeyId
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for KeyId
impl Ord for KeyId
Source§impl PartialOrd for KeyId
impl PartialOrd for KeyId
impl Eq for KeyId
impl StructuralPartialEq for KeyId
Auto Trait Implementations§
impl Freeze for KeyId
impl RefUnwindSafe for KeyId
impl Send for KeyId
impl Sync for KeyId
impl Unpin for KeyId
impl UnsafeUnpin for KeyId
impl UnwindSafe for KeyId
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