• Allows creating derivative proofs from a Verifiable Credential, for the purpose of disclosing only a subset of the credential's claims to a verifier.

    Parameters

    • params: {
          credential: VerifiableCredential;
          proofOptions?: {
              excludeClaims?: string[];
              includeClaims?: string[];
          };
      }

      Holds all named parameters.

      • credential: VerifiableCredential

        A Verifiable Credential containing a proof.

      • Optional proofOptions?: {
            excludeClaims?: string[];
            includeClaims?: string[];
        }

        Options for creating the derived proof.

        • Optional excludeClaims?: string[]
        • Optional includeClaims?: string[]

    Returns Promise<VerifiableCredential>

    A copy of the original credential and proof, altered according to the derivation rules and proofOptions.