Enum rings_core::session::Authorizer
source · pub enum Authorizer {
Secp256k1(Did),
EIP191(Did),
BIP137(Did),
Ed25519(PublicKey),
}Expand description
We will support as many protocols/algorithms as possible. Currently, it comprises Secp256k1, EIP191, BIP137, and Ed25519. We welcome any issues and PRs for additional implementations.
Variants§
Secp256k1(Did)
ecdsa
EIP191(Did)
BIP137(Did)
bitcoin bip137 ref: https://github.com/bitcoin/bips/blob/master/bip-0137.mediawiki
Ed25519(PublicKey)
ed25519
Trait Implementations§
source§impl Clone for Authorizer
impl Clone for Authorizer
source§fn clone(&self) -> Authorizer
fn clone(&self) -> Authorizer
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 Authorizer
impl Debug for Authorizer
source§impl<'de> Deserialize<'de> for Authorizer
impl<'de> Deserialize<'de> for Authorizer
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 PartialEq<Authorizer> for Authorizer
impl PartialEq<Authorizer> for Authorizer
source§fn eq(&self, other: &Authorizer) -> bool
fn eq(&self, other: &Authorizer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Authorizer
impl Serialize for Authorizer
impl Eq for Authorizer
impl StructuralEq for Authorizer
impl StructuralPartialEq for Authorizer
Auto Trait Implementations§
impl RefUnwindSafe for Authorizer
impl Send for Authorizer
impl Sync for Authorizer
impl Unpin for Authorizer
impl UnwindSafe for Authorizer
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§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> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.