pub struct KeySet { /* private fields */ }Expand description
The issuer’s published Ed25519 verification keys, indexed by key id.
Implementations§
Source§impl KeySet
impl KeySet
Sourcepub fn from_json(json: &str) -> Result<Self, Error>
pub fn from_json(json: &str) -> Result<Self, Error>
Replace the cache only after the whole published keyset validates.
§Errors
Refuses unreadable JSON or key encoding, a key with the wrong type, algorithm, use or operations, an empty or control-bearing key id, an invalid or weak Ed25519 point, or a repeated key id.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeySet
impl RefUnwindSafe for KeySet
impl Send for KeySet
impl Sync for KeySet
impl Unpin for KeySet
impl UnsafeUnpin for KeySet
impl UnwindSafe for KeySet
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