Enum indy_crypto::cl::CredentialValue [−][src]
pub enum CredentialValue { Known { value: BigNumber, }, Hidden { value: BigNumber, }, Commitment { value: BigNumber, blinding_factor: BigNumber, }, }
The m value for attributes, commitments also store a blinding factor
Variants
Known
Fields of Known
value: BigNumber |
Hidden
Fields of Hidden
value: BigNumber |
Commitment
Fields of Commitment
value: BigNumber | |
blinding_factor: BigNumber |
Methods
impl CredentialValue
[src]
impl CredentialValue
pub fn clone(&self) -> Result<CredentialValue, IndyCryptoError>
[src]
pub fn clone(&self) -> Result<CredentialValue, IndyCryptoError>
pub fn is_known(&self) -> bool
[src]
pub fn is_known(&self) -> bool
pub fn is_commitment(&self) -> bool
[src]
pub fn is_commitment(&self) -> bool
pub fn value(&self) -> &BigNumber
[src]
pub fn value(&self) -> &BigNumber
Trait Implementations
impl Debug for CredentialValue
[src]
impl Debug for CredentialValue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for CredentialValue
[src]
impl Eq for CredentialValue
impl PartialEq for CredentialValue
[src]
impl PartialEq for CredentialValue
fn eq(&self, other: &CredentialValue) -> bool
[src]
fn eq(&self, other: &CredentialValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CredentialValue) -> bool
[src]
fn ne(&self, other: &CredentialValue) -> bool
This method tests for !=
.
impl JsonEncodable for CredentialValue
[src]
impl JsonEncodable for CredentialValue
fn to_json(&self) -> Result<String, IndyCryptoError>
[src]
fn to_json(&self) -> Result<String, IndyCryptoError>
impl<'a> JsonDecodable<'a> for CredentialValue
[src]
impl<'a> JsonDecodable<'a> for CredentialValue
fn from_json(to_string: &'a str) -> Result<Self, IndyCryptoError>
[src]
fn from_json(to_string: &'a str) -> Result<Self, IndyCryptoError>
Auto Trait Implementations
impl Send for CredentialValue
impl Send for CredentialValue
impl Sync for CredentialValue
impl Sync for CredentialValue