• Produces salted hashes of individual statements comprising a (partial) IClaim to enable selective disclosure of contents. Can also be used to reproduce hashes for the purpose of validation.

    Parameters

    • claim: PartialClaim

      Full or partial IClaim to produce statement hashes from.

    • options: HashingOptions & {
          canonicalisation?: ((claim) => string[]);
      } = {}

      Object containing optional parameters.

    Returns {
        hashes: HexString[];
        nonceMap: Record<string, string>;
    }

    An array of salted hashes and a nonceMap where keys correspond to unsalted statement hashes.

    • hashes: HexString[]
    • nonceMap: Record<string, string>