pub struct Key {
pub id: String,
pub public: [u8; 32],
pub valid_from: String,
pub valid_to: Option<String>,
}Expand description
One published key.
Fields§
§id: StringThe key id: first 16 hex digits of SHA-256 of public.
public: [u8; 32]The raw Ed25519 public key. Not checked to be a valid point (9.2); signatures made with an invalid one fail in step 6.
valid_from: StringStart of the validity window (inclusive).
valid_to: Option<String>End of the validity window (exclusive); None is open-ended.
Implementations§
Trait Implementations§
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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