Skip to main content

confirm_and_issue_code

Function confirm_and_issue_code 

Source
pub fn confirm_and_issue_code(
    consent_store: &dyn ConsentStore,
    code_store: &dyn AuthorizationCodeStore,
    reference: &ConsentReference,
    stamped_did: &str,
) -> Result<String, ConsentError>
Expand description

Confirms a consent reference and, on success, issues the authorization code — the combined operation a future stamped tool call reaches, so that wiring it in is a single call rather than two.

Runs consent::confirm’s two checks first; a code is minted only if both pass.