prolog-vc-tools
    Preparing search index...

    Function extractPrologStatement

    • Extracts a prolog statement string from a verifiable credential that is of a supported schema.

      Parameters

      • verifiableCredential: any

        A verifiable credential object containing a credentialSubject with a claimType.

      • OptionalupdateView: UpdateView

        Optional. An UpdateView value that specifies how to wrap the Prolog fact (e.g., assert, retract). This takes precedence over any updateView specified in the verifiable credential.

      Returns PrologExtractionResult

      An object containing either a Prolog fact string and its claim type, or an error message.