pub struct PendingIssuance {
pub version: ProtocolV1,
pub issuer_id: IssuerId,
pub info: Value,
pub blind_msg: Value,
/* private fields */
}Expand description
Holder-side pending issuance state.
Fields§
§version: ProtocolV1§issuer_id: IssuerId§info: Value§blind_msg: ValueImplementations§
Source§impl PendingIssuance
impl PendingIssuance
Sourcepub fn create_request(
issuer_public_key: &PbrsaPublicKey,
issuer_id: IssuerId,
info: Value,
blind_msg: Value,
) -> Result<(IssuanceRequest, Self), CredentialsError>
pub fn create_request( issuer_public_key: &PbrsaPublicKey, issuer_id: IssuerId, info: Value, blind_msg: Value, ) -> Result<(IssuanceRequest, Self), CredentialsError>
Create a holder issuance request and local pending state.
Sourcepub fn export_state(&self) -> Result<String, CredentialsError>
pub fn export_state(&self) -> Result<String, CredentialsError>
Export app-storable holder-side pending issuance state.
The exported state is sensitive issuance material. It is needed to finalize one issuer response after a process or browser reload.
Sourcepub fn import_state(state: &str) -> Result<Self, CredentialsError>
pub fn import_state(state: &str) -> Result<Self, CredentialsError>
Import app-stored holder-side pending issuance state.
Sourcepub fn finalize(
self,
issuer_public_key: &PbrsaPublicKey,
response: &IssuanceResponse,
) -> Result<SignedCredential, CredentialsError>
pub fn finalize( self, issuer_public_key: &PbrsaPublicKey, response: &IssuanceResponse, ) -> Result<SignedCredential, CredentialsError>
Finalize an issuer response into a holder credential.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PendingIssuance
impl<'de> Deserialize<'de> for PendingIssuance
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
Auto Trait Implementations§
impl Freeze for PendingIssuance
impl RefUnwindSafe for PendingIssuance
impl Send for PendingIssuance
impl Sync for PendingIssuance
impl Unpin for PendingIssuance
impl UnsafeUnpin for PendingIssuance
impl UnwindSafe for PendingIssuance
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