Struct indy_vdr::utils::keys::EncodedVerKey [−][src]
pub struct EncodedVerKey { pub key: String, pub alg: KeyType, pub enc: KeyEncoding, }
An encoded verkey appropriate for storing and transmitting
Fields
key: String
alg: KeyType
enc: KeyEncoding
Implementations
impl EncodedVerKey
[src]
impl EncodedVerKey
[src]pub fn new<K>(
key: K,
alg: Option<KeyType>,
enc: Option<KeyEncoding>
) -> EncodedVerKey where
K: AsRef<str>,
[src]
key: K,
alg: Option<KeyType>,
enc: Option<KeyEncoding>
) -> EncodedVerKey where
K: AsRef<str>,
pub fn from_did_and_verkey(
did: &str,
key: &str
) -> Result<EncodedVerKey, ConversionError>
[src]
did: &str,
key: &str
) -> Result<EncodedVerKey, ConversionError>
pub fn abbreviated_for_did(&self, did: &str) -> Result<String, ConversionError>
[src]
pub fn decode(&self) -> Result<VerKey, ConversionError>
[src]
pub fn from_slice<K>(key: K) -> Result<EncodedVerKey, ConversionError> where
K: AsRef<[u8]>,
[src]
K: AsRef<[u8]>,
pub fn from_str(key: &str) -> Result<EncodedVerKey, ConversionError>
[src]
pub fn from_str_qualified(
key: &str,
dest: Option<&str>,
alg: Option<KeyType>,
enc: Option<KeyEncoding>
) -> Result<EncodedVerKey, ConversionError>
[src]
key: &str,
dest: Option<&str>,
alg: Option<KeyType>,
enc: Option<KeyEncoding>
) -> Result<EncodedVerKey, ConversionError>
pub fn long_form(&self) -> String
[src]
pub fn as_base58(self) -> Result<EncodedVerKey, ConversionError>
[src]
pub fn key_bytes(&self) -> Result<Vec<u8, Global>, ConversionError>
[src]
pub fn encoded_key_bytes(&self) -> &[u8]
[src]
pub fn key_exchange(&self) -> Result<VerKey, ConversionError>
[src]
pub fn key_exchange_encoded(&self) -> Result<EncodedVerKey, ConversionError>
[src]
pub fn verify_signature<M, S>(
&self,
message: M,
signature: S
) -> Result<bool, ConversionError> where
M: AsRef<[u8]>,
S: AsRef<[u8]>,
[src]
&self,
message: M,
signature: S
) -> Result<bool, ConversionError> where
M: AsRef<[u8]>,
S: AsRef<[u8]>,
Trait Implementations
impl Clone for EncodedVerKey
[src]
impl Clone for EncodedVerKey
[src]pub fn clone(&self) -> EncodedVerKey
[src]
pub fn clone(&self) -> EncodedVerKey
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for EncodedVerKey
[src]
impl Debug for EncodedVerKey
[src]impl Display for EncodedVerKey
[src]
impl Display for EncodedVerKey
[src]impl Drop for EncodedVerKey
[src]
impl Drop for EncodedVerKey
[src]impl Hash for EncodedVerKey
[src]
impl Hash for EncodedVerKey
[src]impl Ord for EncodedVerKey
[src]
impl Ord for EncodedVerKey
[src]impl PartialEq<EncodedVerKey> for EncodedVerKey
[src]
impl PartialEq<EncodedVerKey> for EncodedVerKey
[src]pub fn eq(&self, other: &EncodedVerKey) -> bool
[src]
pub fn eq(&self, other: &EncodedVerKey) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &EncodedVerKey) -> bool
[src]
pub fn ne(&self, other: &EncodedVerKey) -> bool
[src]This method tests for !=
.
impl PartialOrd<EncodedVerKey> for EncodedVerKey
[src]
impl PartialOrd<EncodedVerKey> for EncodedVerKey
[src]pub fn partial_cmp(&self, other: &EncodedVerKey) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &EncodedVerKey) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Validatable for EncodedVerKey
[src]
impl Validatable for EncodedVerKey
[src]pub fn validate(&self) -> Result<(), ValidationError>
[src]
impl Zeroize for EncodedVerKey
[src]
impl Zeroize for EncodedVerKey
[src]impl Eq for EncodedVerKey
[src]
impl StructuralEq for EncodedVerKey
[src]
impl StructuralPartialEq for EncodedVerKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for EncodedVerKey
impl Send for EncodedVerKey
impl Sync for EncodedVerKey
impl Unpin for EncodedVerKey
impl UnwindSafe for EncodedVerKey
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,