• Creates a verification request and anchors it to the Concordium blockchain.

    This function creates a presentation request with the specified context and credential statements, then stores an anchor of the request on the blockchain as a data registration transaction. The blockchain anchor provides a tamper-evident timestamp and immutable record of the request.

    Returns

    Promise resolving to the created presentation request

    Throws

    Error if the transaction fails or network issues occur

    Parameters

    • grpc: ConcordiumGRPCClient

      The Concordium GRPC client for blockchain interaction

    • anchorTransactionMetadata: AnchorTransactionMetadata

      The metadata used for registering the anchor transaction on chain.

    • context: Omit<VerificationRequestV1.Context, "type">

      The context information for the request (without type field)

    • credentialStatements: VerificationRequestV1.IdentityClaims[]

      The credential statements being requested

    • Optional anchorPublicInfo: Record<string, any>

      Optional public information to include in the anchor

    Returns Promise<VerificationRequestV1>

Generated using TypeDoc