[−][src]Struct indy_data_types::keys::EncodedVerKey
An encoded verkey appropriate for storing and transmitting
Fields
key: String
alg: KeyType
enc: KeyEncoding
Implementations
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>, ConversionError>
[src]
pub fn encoded_key_bytes(&self) -> &[u8]ⓘ
[src]
Trait Implementations
impl Clone for EncodedVerKey
[src]
pub fn clone(&self) -> EncodedVerKey
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for EncodedVerKey
[src]
impl Display for EncodedVerKey
[src]
impl Drop for EncodedVerKey
[src]
impl Eq for EncodedVerKey
[src]
impl Hash for EncodedVerKey
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for EncodedVerKey
[src]
pub fn cmp(&self, other: &EncodedVerKey) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EncodedVerKey> for EncodedVerKey
[src]
pub fn eq(&self, other: &EncodedVerKey) -> bool
[src]
pub fn ne(&self, other: &EncodedVerKey) -> bool
[src]
impl PartialOrd<EncodedVerKey> for EncodedVerKey
[src]
pub fn partial_cmp(&self, other: &EncodedVerKey) -> Option<Ordering>
[src]
pub fn lt(&self, other: &EncodedVerKey) -> bool
[src]
pub fn le(&self, other: &EncodedVerKey) -> bool
[src]
pub fn gt(&self, other: &EncodedVerKey) -> bool
[src]
pub fn ge(&self, other: &EncodedVerKey) -> bool
[src]
impl StructuralEq for EncodedVerKey
[src]
impl StructuralPartialEq for EncodedVerKey
[src]
impl Validatable for EncodedVerKey
[src]
pub fn validate(&self) -> Result<(), ValidationError>
[src]
impl Zeroize 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,