Struct concordium_base::base::CredentialRegistrationID
source · pub struct CredentialRegistrationID(_);
Expand description
A registration ID of a credential. This ID is generated from the user’s PRF
key and a sequential counter. CredentialRegistrationID
’s generated from
the same PRF key, but different counter values cannot easily be linked
together.
Implementations§
source§impl CredentialRegistrationID
impl CredentialRegistrationID
pub fn new(g: ArCurve) -> Self
sourcepub fn from_exponent(
crypto_params: &GlobalContext<ArCurve>,
cexp: <ArCurve as Curve>::Scalar
) -> Self
pub fn from_exponent( crypto_params: &GlobalContext<ArCurve>, cexp: <ArCurve as Curve>::Scalar ) -> Self
Construct the cred id from the exponent derived from the PRF key, in
the context of chain cryptographic parameters crypto_params
.
Trait Implementations§
source§impl AsRef<G1> for CredentialRegistrationID
impl AsRef<G1> for CredentialRegistrationID
source§impl Clone for CredentialRegistrationID
impl Clone for CredentialRegistrationID
source§fn clone(&self) -> CredentialRegistrationID
fn clone(&self) -> CredentialRegistrationID
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 CredentialRegistrationID
impl Debug for CredentialRegistrationID
source§impl Deserial for CredentialRegistrationID
impl Deserial for CredentialRegistrationID
fn deserial<GenericReaderType: ReadBytesExt>( source: &mut GenericReaderType ) -> ParseResult<Self>
source§impl<'de> Deserialize<'de> for CredentialRegistrationID
impl<'de> Deserialize<'de> for CredentialRegistrationID
source§fn deserialize<GenericSerializerType: SerdeDeserializer<'de>>(
deserializer: GenericSerializerType
) -> Result<Self, GenericSerializerType::Error>
fn deserialize<GenericSerializerType: SerdeDeserializer<'de>>( deserializer: GenericSerializerType ) -> Result<Self, GenericSerializerType::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CredentialRegistrationID
impl Display for CredentialRegistrationID
source§impl From<CredentialRegistrationID> for ArCurve
impl From<CredentialRegistrationID> for ArCurve
source§fn from(original: CredentialRegistrationID) -> Self
fn from(original: CredentialRegistrationID) -> Self
Converts to this type from the input type.
source§impl Serial for CredentialRegistrationID
impl Serial for CredentialRegistrationID
fn serial<GenericBufferType: Buffer>(&self, out: &mut GenericBufferType)
source§impl Serialize for CredentialRegistrationID
impl Serialize for CredentialRegistrationID
impl Copy for CredentialRegistrationID
Auto Trait Implementations§
impl RefUnwindSafe for CredentialRegistrationID
impl Send for CredentialRegistrationID
impl Sync for CredentialRegistrationID
impl Unpin for CredentialRegistrationID
impl UnwindSafe for CredentialRegistrationID
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