Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "VerifiablePresentationManager"

Index

Type aliases

DSRJSON

DSRJSON: string

JSON contain a DSR

Variables

Const NESTED_PATH_DELIMITER

NESTED_PATH_DELIMITER: "." = "."
param

a JSON properties fields object

param

already calculated paths to be appended to

param

existing path for nested key in question

returns

: an array of path objects of type { {String} path {String}: type {String}: description }

Functions

Const getFlattenedPaths

  • getFlattenedPaths(objToMatch: object, pathPrepend?: string): string[]
  • for the given object, recursively return an array of all the paths inside the object, including nested paths

    Parameters

    • objToMatch: object
      • [prop: string]: any
    • Default value pathPrepend: string = ""

    Returns string[]

    an array of paths i.e. ['credential', 'credential.email']

Const matchAllObjectKeys

  • matchAllObjectKeys(flattenedPaths: string[], objToMatch: object): (Anonymous function)
  • takes an array of paths delimited with a '.' and checks that all the paths of the objToMatch and the objToCheck are equal

    Parameters

    • flattenedPaths: string[]

      paths in an object e.g. ['identifier', 'credential.id'...]

    • objToMatch: object
      • [prop: string]: any

    Returns (Anonymous function)

    : whether all the paths match or not

Generated using TypeDoc