Skip to main content

mandateDraftDigest

@mandaitor/sdk


@mandaitor/sdk / mandateDraftDigest

Function: mandateDraftDigest()

mandateDraftDigest(draft): Promise<string>

Defined in: @mandaitor/sdk/dist/eudi.d.ts:11

sha-256: and the base64url SHA-256 of the RFC 8785 form of { contract: "mandaitor.mandate-draft/v1", draft }, where draft is the POST /mandates body without eudi_session_id, as JSON carries it: a member set to undefined is left out, as createMandate leaves it out of the request. Send it as mandate_draft_digest with purpose: "mandate" when starting the session, then send the same body, with the session's id, to POST /mandates.

Parameters​

draft​

object

Returns​

Promise<string>